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.
75 lines
2.8 KiB
TypeScript
75 lines
2.8 KiB
TypeScript
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
interface ConnectionField {
|
|
label: string;
|
|
value: string;
|
|
hint: string;
|
|
masked?: boolean;
|
|
}
|
|
|
|
interface CenterFeature {
|
|
id: string;
|
|
icon: string;
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
/**
|
|
* Symbolic demonstration page for the call-center integration. No backend
|
|
* connection exists yet: every value shown is illustrative and the controls
|
|
* are disabled placeholders.
|
|
*/
|
|
@Component({
|
|
selector: 'app-call-center',
|
|
standalone: true,
|
|
imports: [CommonModule],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
templateUrl: './call-center.page.html',
|
|
styleUrls: ['./call-center.page.css', '../../shared/styles/demo-page.css'],
|
|
})
|
|
export class CallCenterPage {
|
|
readonly connectionFields: ConnectionField[] = [
|
|
{
|
|
label: 'آدرس سرویس کال سنتر',
|
|
value: 'https://callcenter.raymandcti.com/api/v1',
|
|
hint: 'مقدار نمونه — آدرس واقعی پس از راهاندازی ثبت میشود.',
|
|
},
|
|
{
|
|
label: 'کلید API',
|
|
value: '••••••••••••••••••••',
|
|
hint: 'کلید بهصورت رمزنگاریشده نگهداری میشود.',
|
|
masked: true,
|
|
},
|
|
{
|
|
label: 'صف پیشفرض',
|
|
value: 'پشتیبانی',
|
|
hint: 'تماسهای ارجاعشده به این صف وصل میشوند.',
|
|
},
|
|
];
|
|
|
|
readonly features: CenterFeature[] = [
|
|
{
|
|
id: 'live',
|
|
icon: 'M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z',
|
|
title: 'تماسهای در جریان',
|
|
description:
|
|
'فهرست تماسهای فعال و وضعیت لحظهای هر کارشناس بهصورت بلادرنگ نمایش داده میشود.',
|
|
},
|
|
{
|
|
id: 'transfer',
|
|
icon: 'M8 3 4 7l4 4M4 7h16M16 21l4-4-4-4M20 17H4',
|
|
title: 'انتقال از هوش مصنوعی به کارشناس',
|
|
description:
|
|
'تماسهایی که هوش مصنوعی نتوانسته پاسخ دهد، به همراه سابقه گفتگو به کارشناس ارجاع میشود.',
|
|
},
|
|
{
|
|
id: 'sync',
|
|
icon: 'M21 12A9 9 0 0 0 6.6 7.5l-3 3m0 0 3 3-3-3Z',
|
|
title: 'همگامسازی وضعیت کارشناسان',
|
|
description:
|
|
'حاضر بودن، مرخصی و خارجشدن کارشناسان بین برنامه و سامانه کال سنتر همگام میشود.',
|
|
},
|
|
];
|
|
}
|