Files
faq_chatbot_frontend/src/app/pages/call-center/call-center-calls.page.html
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

149 lines
4.9 KiB
HTML

<div class="demo-page">
<header class="demo-header">
<div class="demo-title-group">
<span class="demo-title-icon">
<svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3" />
</svg>
</span>
<div>
<h1 class="demo-title">بازخوانی تماس‌ها از کال سنتر</h1>
<p class="demo-subtitle">دریافت و بازخوانی سابقه تماس‌ها از سامانه کال سنتر</p>
</div>
</div>
<span class="demo-chip">نمایشی</span>
</header>
<section class="demo-card demo-notice">
<span class="demo-notice-icon">
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="9" />
<path d="M12 8v4M12 16h.01" />
</svg>
</span>
<div>
<h2>این بخش هنوز فعال نیست</h2>
<p>
این صفحه مکانیزم بازخوانی سابقه تماس‌ها از کال سنتر را نمایش می‌دهد. رکوردهای زیر داده نمونه
هستند و از سرور واقعی دریافت نشده‌اند؛ پس از اتصال به کال سنتر، بازخوانی بر اساس بازه تاریخ و
وضعیت تماس انجام می‌شود.
</p>
</div>
</section>
<section class="demo-card">
<div class="demo-card-header">
<div>
<h2 class="demo-card-title">فیلتر بازخوانی</h2>
<p class="demo-card-description">
بازه تاریخ و وضعیت مورد نظر را انتخاب کنید تا گزارش تماس‌ها دریافت شود.
</p>
</div>
</div>
<div class="demo-filters">
@for (filter of filters; track filter.label) {
<label class="demo-field">
<span class="demo-field-label">{{ filter.label }}</span>
@if (filter.type === 'select') {
<select class="demo-field-input" disabled>
@for (option of filter.options ?? []; track option) {
<option [value]="option">{{ option }}</option>
}
</select>
} @else {
<input class="demo-field-input" type="text" [value]="filter.value" readonly />
}
<span class="demo-field-hint">{{ filter.hint }}</span>
</label>
}
<button type="button" class="demo-btn demo-btn--primary" disabled>بازخوانی تماس‌ها</button>
</div>
<div class="demo-actions">
<span class="demo-hint">
این کنترل‌ها در فاز جاری فعال نیستند و هیچ درخواستی به کال سنتر ارسال نمی‌شود.
</span>
</div>
</section>
<section class="demo-card">
<div class="demo-card-header">
<div>
<h2 class="demo-card-title">سابقه تماس‌ها</h2>
<p class="demo-card-description">
نمونه‌ای از رکوردهایی که پس از اتصال، از کال سنتر بازخوانی می‌شود.
</p>
</div>
<span class="demo-badge">داده نمونه</span>
</div>
<div class="demo-table-wrapper">
<table class="demo-table">
<thead>
<tr>
<th>شماره تماس</th>
<th>مدت تماس</th>
<th>وضعیت</th>
<th>تاریخ</th>
</tr>
</thead>
<tbody>
@for (call of exampleCalls; track call.phone) {
<tr>
<td>{{ call.phone }}</td>
<td>{{ call.duration }}</td>
<td>
<span class="demo-tag demo-tag--{{ call.statusKind }}">{{ call.status }}</span>
</td>
<td>{{ call.date }}</td>
</tr>
}
</tbody>
</table>
</div>
</section>
<section class="demo-card">
<div class="demo-empty">
<svg
width="40"
height="40"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M3 3v18h18" />
<path d="M7 15l4-6 4 4 4-7" />
</svg>
<h3>هنوز گزارشی بازخوانی نشده است</h3>
<p>
پس از اتصال به سامانه کال سنتر، گزارش‌های تماس بر اساس بازه زمانی انتخاب‌شده در این صفحه
نمایش داده می‌شود.
</p>
</div>
</section>
</div>