Files
faq_chatbot_frontend/src/app/pages/call-center/call-center-calls.page.ts
T
Peyman Honarjoo ff7fcbc4bb 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.
2026-10-10 00:20:00 +03:30

86 lines
2.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { CommonModule } from '@angular/common';
interface ExampleCall {
phone: string;
duration: string;
status: string;
statusKind: 'answered' | 'pending' | 'missed';
date: string;
}
interface CallFilter {
label: string;
value: string;
hint: string;
type: 'text' | 'select';
options?: string[];
}
/**
* Symbolic demonstration page for retrieving call records from the call
* center. The rows are example data and every control is a placeholder.
*/
@Component({
selector: 'app-call-center-calls',
standalone: true,
imports: [CommonModule],
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './call-center-calls.page.html',
styleUrls: ['./call-center-calls.page.css', '../../shared/styles/demo-page.css'],
})
export class CallCenterCallsPage {
readonly filters: CallFilter[] = [
{
label: 'از تاریخ',
value: '۱۴۰۴/۰۷/۰۱',
hint: 'نمونه — بازه تاریخ قابل انتخاب است.',
type: 'text',
},
{
label: 'تا تاریخ',
value: '۱۴۰۴/۰۷/۳۰',
hint: 'نمونه — بازه تاریخ قابل انتخاب است.',
type: 'text',
},
{
label: 'وضعیت تماس',
value: 'همه وضعیت‌ها',
hint: 'فیلتر نمونه.',
type: 'select',
options: ['همه وضعیت‌ها', 'پاسخ‌داده شده', 'بدون پاسخ', 'در انتظار بازبینی'],
},
];
readonly exampleCalls: ExampleCall[] = [
{
phone: '۰۹۱۲۱۲۳۴۵۶۷',
duration: '۲:۴۵',
status: 'پاسخ‌داده شده',
statusKind: 'answered',
date: '۱۴ مهر ۱۴۰۴',
},
{
phone: '۰۹۳۵۱۱۲۲۳۳۴۴',
duration: '۰:۳۸',
status: 'بدون پاسخ',
statusKind: 'missed',
date: '۱۴ مهر ۱۴۰۴',
},
{
phone: '۰۹۱۲۹۸۷۶۵۴۳۲',
duration: '۵:۱۲',
status: 'پاسخ‌داده شده',
statusKind: 'answered',
date: '۱۳ مهر ۱۴۰۴',
},
{
phone: '۰۹۱۵۵۵۱۲۳۴۵',
duration: '۱:۰۳',
status: 'در انتظار بازبینی',
statusKind: 'pending',
date: '۱۳ مهر ۱۴۰۴',
},
];
}