build(ui): expand application shell and implement administrative dashboard pages
This commit significantly expands the application's routing, navigation, and administrative capabilities. It introduces several new functional modules and refines the core layout for a more professional, dashboard-oriented experience. - **Routing & Navigation**: - Added routes for `wallboard`, `call-center`, `call-center/calls`, and `chat-questions`. - Updated `SidebarComponent` to include all new navigation items. - Enhanced `LayoutComponent` with dynamic navigation based on user roles (admin vs. user). - **New Administrative Pages**: - `WallboardPage`: Implements a real-time KPI dashboard with call activity trends and outcome distributions. - `CallCenterPage`: Provides a symbolic interface for managing call center connectivity and synchronization. - `CallCenterCallsPage`: Implements a call history retrieval interface with filtering capabilities. - `ChatQuestionsPage`: Adds a module for reviewing user questions from web and mobile channels. - **Core Infrastructure & Refinement**: - Updated `AppConfig` to include an `APP_INITIALIZER` for validating user identity via `AuthService` on startup. - Refined `HomeComponent` layout to a "Claude-style" continuous chat column. - Implemented global themed scrollbars and integrated the 'Lahze' font family. - Added `proxy.conf.json` and updated `angular.json` to support local backend development. - **Documentation**: - Added comprehensive API handoff guides for frontend-backend connection and MVP API catalog.
This commit is contained in:
@@ -1,27 +1,46 @@
|
||||
:host {
|
||||
display: block;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.stream-panel {
|
||||
direction: rtl;
|
||||
--footer-h: 3.5rem;
|
||||
--orb-zone: 7.25rem;
|
||||
--orb-gap: 0.75rem;
|
||||
--reserve: calc(var(--footer-h) + var(--orb-gap) + var(--orb-zone) + var(--orb-gap));
|
||||
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
direction: rtl;
|
||||
background: transparent; /* was surface card */
|
||||
border: none; /* removed card border */
|
||||
border-radius: 0;
|
||||
box-shadow: none; /* removed card shadow */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ---------- Orb layer (behind the transcript) ---------- */
|
||||
.stream-orb-layer {
|
||||
position: absolute;
|
||||
bottom: calc(var(--footer-h) + var(--orb-gap));
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem 1.25rem 1.25rem;
|
||||
background: var(--surface-bg);
|
||||
border: 1px solid var(--surface-border);
|
||||
border-radius: 1.5rem;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
|
||||
gap: 0.5rem;
|
||||
transition: opacity 0.45s ease, transform 0.45s ease;
|
||||
}
|
||||
|
||||
/* ---------- Orb ---------- */
|
||||
.orb-container {
|
||||
width: 170px;
|
||||
height: 170px;
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
max-width: 100%;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
@@ -35,6 +54,7 @@
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
/* Shown only when WebGL is unavailable */
|
||||
.orb-fallback {
|
||||
width: 70%;
|
||||
height: 70%;
|
||||
@@ -59,12 +79,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-text {
|
||||
margin: 0;
|
||||
font-size: 0.9375rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
@@ -109,126 +128,41 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- Transcript ---------- */
|
||||
/* ---------- Transcript (overlaid on top of the orb) ---------- */
|
||||
.stream-transcript {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
width: 100%;
|
||||
max-width: 640px;
|
||||
max-width: 680px;
|
||||
margin: 0 auto;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 0.25rem 0.25rem;
|
||||
/* Hide the scrollbar, keep wheel / trackpad / touch scrolling */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* legacy Edge */
|
||||
padding: 1rem 0.75rem var(--reserve);
|
||||
scroll-behavior: smooth;
|
||||
transition: padding-bottom 0.45s ease;
|
||||
}
|
||||
|
||||
.stream-transcript::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
.stream-transcript::-webkit-scrollbar-thumb {
|
||||
background: var(--muted);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.transcript-empty {
|
||||
margin: auto;
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* RTL: user bubbles sit on the right (start), assistant bubbles on the left (end). */
|
||||
.bubble-row {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.bubble-row.is-user {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.bubble {
|
||||
max-width: 85%;
|
||||
padding: 0.5rem 0.875rem;
|
||||
border-radius: 1.125rem;
|
||||
background: var(--sidebar-hover);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.7;
|
||||
text-align: right;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
border-end-end-radius: 0.375rem;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.bubble.is-user {
|
||||
background: var(--color-primary);
|
||||
color: #ffffff;
|
||||
border-end-end-radius: 1.125rem;
|
||||
border-end-start-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.bubble.is-partial {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.bubble.is-interrupted .bubble-text {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.bubble-tag {
|
||||
margin-inline-start: 0.375rem;
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* ---------- Sources (retrieved documents) ---------- */
|
||||
.source-list {
|
||||
list-style: none;
|
||||
margin: 0.375rem 0 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.source-chip {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.375rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border: 1px solid var(--surface-border);
|
||||
border-radius: 0.625rem;
|
||||
background: var(--surface-bg);
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.source-chip.is-unavailable {
|
||||
opacity: 0.55;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.source-ref {
|
||||
flex-shrink: 0;
|
||||
padding: 0 0.375rem;
|
||||
border-radius: 9999px;
|
||||
background: var(--color-primary);
|
||||
color: #ffffff;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
display: none; /* Chrome, Safari, Edge */
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* ---------- Retryable server error ---------- */
|
||||
.stream-error {
|
||||
position: absolute;
|
||||
bottom: calc(var(--footer-h) + 0.5rem);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
max-width: 640px;
|
||||
width: min(100% - 1.5rem, 640px);
|
||||
box-sizing: border-box;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid rgba(239, 68, 68, 0.45);
|
||||
@@ -236,7 +170,6 @@
|
||||
color: #dc2626;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.6;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stream-error span {
|
||||
@@ -263,14 +196,26 @@
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
/* ---------- Actions ---------- */
|
||||
/* ---------- Controls ---------- */
|
||||
.stream-footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-bottom: 0.25rem;
|
||||
transition: opacity 0.45s ease, transform 0.45s ease;
|
||||
}
|
||||
|
||||
.stream-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.625rem;
|
||||
flex-wrap: wrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stream-btn {
|
||||
@@ -328,6 +273,32 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* ---------- Ended: orb + controls fade out, transcript stays ---------- */
|
||||
|
||||
/* The orb + footer reserve only exists while the call is live; collapsing it stops the
|
||||
bottom padding from forcing the panel (and the chat column) taller than the viewport. */
|
||||
.stream-panel.is-ended {
|
||||
--reserve: 0rem;
|
||||
}
|
||||
|
||||
.stream-panel.is-ended .stream-orb-layer {
|
||||
opacity: 0;
|
||||
transform: translateX(-50%) translateY(14px) scale(0.9);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.stream-panel.is-ended .stream-footer {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* The transcript keeps the full height of the chat column: no max-height, so it never
|
||||
collapses into a short nested scroll box — scrolling stays on the full-height area. */
|
||||
.stream-panel.is-ended .stream-transcript {
|
||||
padding: 1rem 0.75rem;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
@@ -344,7 +315,8 @@
|
||||
.status-dot,
|
||||
.orb-fallback,
|
||||
.stream-btn,
|
||||
.bubble,
|
||||
.stream-orb-layer,
|
||||
.stream-footer,
|
||||
.stream-transcript {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
@@ -354,21 +326,17 @@
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.stream-panel {
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 0.75rem 1rem;
|
||||
--footer-h: 3.25rem;
|
||||
--orb-zone: 6rem;
|
||||
--orb-gap: 0.5rem;
|
||||
}
|
||||
|
||||
.orb-container {
|
||||
width: 130px;
|
||||
height: 130px;
|
||||
}
|
||||
|
||||
.bubble {
|
||||
max-width: 92%;
|
||||
font-size: 0.875rem;
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
}
|
||||
|
||||
.stream-btn {
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user