326 lines
15 KiB
HTML
326 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>UI Mock: Telephony interim UI (AK-P15a)</title>
|
|
<style>
|
|
:root { color-scheme: light; --bg: #f6f7f9; --panel: #ffffff; --ink: #1f2937; --muted: #64748b; --line: #d9e0e8; --accent: #2563eb; --ok: #0f766e; }
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
|
|
.mock-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 720px; }
|
|
.mock-nav { border-right: 1px solid var(--line); background: #eef2f7; padding: 24px 18px; }
|
|
.mock-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
|
.mock-link { display: block; margin-top: 12px; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
|
|
.mock-link[data-active='true'] { background: var(--panel); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
|
|
.mock-main { padding: 32px; }
|
|
.mock-breadcrumbs { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
|
|
.mock-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
|
|
.mock-title { margin: 0; font-size: 28px; line-height: 1.2; }
|
|
.mock-description { margin: 8px 0 0; max-width: 620px; color: var(--muted); }
|
|
.mock-status { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 10px 12px; color: var(--ok); font-weight: 700; }
|
|
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
|
|
.mock-card, .mock-state { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 16px; }
|
|
.mock-card-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
|
|
.mock-card-value { margin: 0; font-size: 24px; font-weight: 750; }
|
|
.mock-card-trend { margin-top: 10px; color: var(--ok); font-size: 12px; text-transform: uppercase; }
|
|
.mock-activity { margin: 0; padding: 0; list-style: none; }
|
|
.mock-activity li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
|
|
.mock-activity li:first-child { border-top: 0; padding-top: 0; }
|
|
.mock-state pre { margin: 12px 0 0; white-space: pre-wrap; color: #334155; }
|
|
</style>
|
|
</head>
|
|
<body data-ui-mock-route="/:tenant/calls" data-ui-mock-status="ready">
|
|
<div class="mock-shell" data-ui-mock-page="ak-p15a-telephony-interim">
|
|
<nav class="mock-nav" aria-label="Mock sidebar">
|
|
<div class="mock-brand">HiveGrid mock</div>
|
|
<a class="mock-link" data-active="true" href="/:tenant/calls">Calls</a>
|
|
<a class="mock-link" data-active="false" href="/:tenant/settings/integrations/telephony">Telephony settings</a>
|
|
</nav>
|
|
<main class="mock-main">
|
|
<div class="mock-breadcrumbs"><span>Calls</span><span>/</span><span>Call detail</span></div>
|
|
<header class="mock-header">
|
|
<div>
|
|
<h1 class="mock-title">Telephony interim UI (AK-P15a)</h1>
|
|
<p class="mock-description">Static fixture for the Aircall telephony interim screens (AD-28).</p>
|
|
</div>
|
|
<div class="mock-status">Ready</div>
|
|
</header>
|
|
<section class="mock-grid" aria-label="Mock metrics">
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Route screens</p>
|
|
<p class="mock-card-value">3</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">UI surfaces</p>
|
|
<p class="mock-card-value">4</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Design status</p>
|
|
<p class="mock-card-value">interim</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
</section>
|
|
<section class="mock-card" aria-label="Mock activity">
|
|
<ul class="mock-activity">
|
|
<li><span>Telephony settings</span><span>/:tenant/settings/integrations/telephony</span></li>
|
|
<li><span>Call list</span><span>/:tenant/calls</span></li>
|
|
<li><span>Call detail</span><span>/:tenant/calls/:id</span></li>
|
|
<li><span>Click to call</span><span>contact | lead | project detail</span></li>
|
|
</ul>
|
|
</section>
|
|
<section class="mock-state" aria-label="Mock state payload">
|
|
<strong>Serialized state</strong>
|
|
<pre>{
|
|
"activity": 4,
|
|
"cards": 3,
|
|
"status": "Ready"
|
|
}</pre>
|
|
</section>
|
|
<script type="application/json" id="mock-page-state">{
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.activity.settings",
|
|
"meta": "/:tenant/settings/integrations/telephony"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.activity.calls",
|
|
"meta": "/:tenant/calls"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.activity.callDetail",
|
|
"meta": "/:tenant/calls/:id"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.activity.clickToCall",
|
|
"meta": "contact | lead | project detail"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.metrics.screens",
|
|
"trend": "flat",
|
|
"value": "3"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.metrics.surfaces",
|
|
"trend": "flat",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15a.telephony.metrics.designStatus",
|
|
"trend": "flat",
|
|
"value": "interim"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoutes": [
|
|
"/:tenant/settings/integrations/telephony",
|
|
"/:tenant/calls",
|
|
"/:tenant/calls/:id"
|
|
],
|
|
"surfaces": [
|
|
"settings",
|
|
"calls",
|
|
"callDetail",
|
|
"clickToCall"
|
|
],
|
|
"viewModels": {
|
|
"callDetail": {
|
|
"data": {
|
|
"answeredAt": "2026-07-15T09:00:04.000Z",
|
|
"boundUserId": "user-1",
|
|
"boundUserLabel": "Lena Werk",
|
|
"canCallBack": true,
|
|
"canEditNote": true,
|
|
"canOverrideMatch": true,
|
|
"direction": "inbound",
|
|
"durationSeconds": 125,
|
|
"endedAt": "2026-07-15T09:02:05.000Z",
|
|
"fromNumber": "+49301234567",
|
|
"id": "call-1",
|
|
"listHref": "/acme/calls",
|
|
"matchConfidence": "exact",
|
|
"matchedEntityId": "contact-1",
|
|
"matchedEntityLabel": "Musterbau GmbH",
|
|
"matchedEntityType": "contact",
|
|
"matchOptions": [
|
|
{
|
|
"id": "contact-1",
|
|
"label": "Musterbau GmbH",
|
|
"type": "contact"
|
|
},
|
|
{
|
|
"id": "project-1",
|
|
"label": "Heizungstausch",
|
|
"type": "project"
|
|
}
|
|
],
|
|
"noteMarkdown": "**Termin** vereinbart. Rückruf am Freitag.",
|
|
"provider": "aircall",
|
|
"recordingUrl": "https://dashboard.aircall.io/calls/call-1",
|
|
"startedAt": "2026-07-15T09:00:00.000Z",
|
|
"status": "completed",
|
|
"toNumber": "+49309999999"
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"calls": {
|
|
"data": {
|
|
"canReadAll": true,
|
|
"emptyBodyKey": "telephony.calls.empty.body",
|
|
"emptyHeadlineKey": "telephony.calls.empty.headline",
|
|
"rows": [
|
|
{
|
|
"boundUserId": "user-1",
|
|
"boundUserLabel": "Lena Werk",
|
|
"counterpartLabel": "Musterbau GmbH",
|
|
"detailHref": "/acme/calls/call-1",
|
|
"direction": "inbound",
|
|
"durationSeconds": 125,
|
|
"hasRecording": true,
|
|
"id": "call-1",
|
|
"matchConfidence": "exact",
|
|
"matchedEntityId": "contact-1",
|
|
"matchedEntityLabel": "Musterbau GmbH",
|
|
"matchedEntityType": "contact",
|
|
"noteSnippet": "Rückruf am Freitag",
|
|
"phoneNumber": "+49301234567",
|
|
"startedAt": "2026-07-15T09:00:00.000Z",
|
|
"status": "completed"
|
|
},
|
|
{
|
|
"boundUserId": "user-1",
|
|
"boundUserLabel": "Lena Werk",
|
|
"counterpartLabel": null,
|
|
"detailHref": "/acme/calls/call-2",
|
|
"direction": "outbound",
|
|
"durationSeconds": null,
|
|
"hasRecording": false,
|
|
"id": "call-2",
|
|
"matchConfidence": "none",
|
|
"matchedEntityId": null,
|
|
"matchedEntityLabel": null,
|
|
"matchedEntityType": null,
|
|
"noteSnippet": null,
|
|
"phoneNumber": "+49401234567",
|
|
"startedAt": "2026-07-15T08:15:00.000Z",
|
|
"status": "missed"
|
|
}
|
|
]
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"clickToCall": {
|
|
"mode": "provider",
|
|
"numbers": [
|
|
{
|
|
"e164": "+491701234567",
|
|
"id": "phone-1",
|
|
"label": "Mobil",
|
|
"primary": true
|
|
},
|
|
{
|
|
"e164": "+49301234567",
|
|
"id": "phone-2",
|
|
"label": "Büro",
|
|
"primary": false
|
|
}
|
|
],
|
|
"reasonKey": null,
|
|
"requiresSelection": true
|
|
},
|
|
"settings": {
|
|
"data": {
|
|
"canManage": true,
|
|
"connectHref": "/integrations/aircall/oauth/install?tenant=acme",
|
|
"connection": {
|
|
"bindings": [
|
|
{
|
|
"hivegridUserId": "user-1",
|
|
"hivegridUserLabel": "Lena Werk",
|
|
"id": "binding-1",
|
|
"match": "email",
|
|
"providerEmail": "lena@example.test",
|
|
"providerName": "Lena Werk",
|
|
"providerUserId": "aircall-user-1"
|
|
},
|
|
{
|
|
"hivegridUserId": null,
|
|
"hivegridUserLabel": null,
|
|
"id": "binding-2",
|
|
"match": "unmatched",
|
|
"providerEmail": "miro@example.test",
|
|
"providerName": "Miro Feld",
|
|
"providerUserId": "aircall-user-2"
|
|
}
|
|
],
|
|
"errorKey": null,
|
|
"externalCompanyName": "Werkstatt Berlin",
|
|
"id": "connection-1",
|
|
"label": "Aircall Berlin",
|
|
"lastHealthCheckAt": "2026-07-15T08:30:00.000Z",
|
|
"provider": "aircall",
|
|
"status": "active"
|
|
},
|
|
"emptyBodyKey": "telephony.settings.empty.body",
|
|
"emptyHeadlineKey": "telephony.settings.empty.headline",
|
|
"notConfiguredKey": "telephony.settings.notConfigured",
|
|
"providerConfigured": true,
|
|
"providerOptions": [],
|
|
"statusKey": "telephony.connection.status.active",
|
|
"userOptions": [
|
|
{
|
|
"email": "lena@example.test",
|
|
"id": "user-1",
|
|
"label": "Lena Werk"
|
|
},
|
|
{
|
|
"email": "miro@example.test",
|
|
"id": "user-2",
|
|
"label": "Miro Feld"
|
|
}
|
|
]
|
|
},
|
|
"status": "ready"
|
|
}
|
|
}
|
|
},
|
|
"status": "ready"
|
|
}</script>
|
|
<script type="application/json" id="mock-page-registries">{
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/:tenant/calls",
|
|
"id": "calls",
|
|
"labelKey": "mock.ak-p15a.telephony.nav.calls"
|
|
},
|
|
{
|
|
"href": "/:tenant/calls/:id",
|
|
"id": "call-detail",
|
|
"labelKey": "mock.ak-p15a.telephony.breadcrumb.detail"
|
|
}
|
|
],
|
|
"sidebar": [
|
|
{
|
|
"href": "/:tenant/calls",
|
|
"id": "ak-p15a-calls",
|
|
"labelKey": "mock.ak-p15a.telephony.nav.calls",
|
|
"permission": "telephony.read_own"
|
|
},
|
|
{
|
|
"href": "/:tenant/settings/integrations/telephony",
|
|
"id": "ak-p15a-settings",
|
|
"labelKey": "mock.ak-p15a.telephony.nav.settings",
|
|
"permission": "telephony.manage"
|
|
}
|
|
]
|
|
}</script>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|