Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/ui-mock/visual-baseline/ak-p15a-telephony-interim.html
T

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>{
&quot;activity&quot;: 4,
&quot;cards&quot;: 3,
&quot;status&quot;: &quot;Ready&quot;
}</pre>
</section>
<script type="application/json" id="mock-page-state">{
&quot;data&quot;: {
&quot;activity&quot;: [
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.activity.settings&quot;,
&quot;meta&quot;: &quot;/:tenant/settings/integrations/telephony&quot;
},
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.activity.calls&quot;,
&quot;meta&quot;: &quot;/:tenant/calls&quot;
},
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.activity.callDetail&quot;,
&quot;meta&quot;: &quot;/:tenant/calls/:id&quot;
},
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.activity.clickToCall&quot;,
&quot;meta&quot;: &quot;contact | lead | project detail&quot;
}
],
&quot;cards&quot;: [
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.metrics.screens&quot;,
&quot;trend&quot;: &quot;flat&quot;,
&quot;value&quot;: &quot;3&quot;
},
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.metrics.surfaces&quot;,
&quot;trend&quot;: &quot;flat&quot;,
&quot;value&quot;: &quot;4&quot;
},
{
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.metrics.designStatus&quot;,
&quot;trend&quot;: &quot;flat&quot;,
&quot;value&quot;: &quot;interim&quot;
}
],
&quot;designStatus&quot;: &quot;interim&quot;,
&quot;screenRoutes&quot;: [
&quot;/:tenant/settings/integrations/telephony&quot;,
&quot;/:tenant/calls&quot;,
&quot;/:tenant/calls/:id&quot;
],
&quot;surfaces&quot;: [
&quot;settings&quot;,
&quot;calls&quot;,
&quot;callDetail&quot;,
&quot;clickToCall&quot;
],
&quot;viewModels&quot;: {
&quot;callDetail&quot;: {
&quot;data&quot;: {
&quot;answeredAt&quot;: &quot;2026-07-15T09:00:04.000Z&quot;,
&quot;boundUserId&quot;: &quot;user-1&quot;,
&quot;boundUserLabel&quot;: &quot;Lena Werk&quot;,
&quot;canCallBack&quot;: true,
&quot;canEditNote&quot;: true,
&quot;canOverrideMatch&quot;: true,
&quot;direction&quot;: &quot;inbound&quot;,
&quot;durationSeconds&quot;: 125,
&quot;endedAt&quot;: &quot;2026-07-15T09:02:05.000Z&quot;,
&quot;fromNumber&quot;: &quot;+49301234567&quot;,
&quot;id&quot;: &quot;call-1&quot;,
&quot;listHref&quot;: &quot;/acme/calls&quot;,
&quot;matchConfidence&quot;: &quot;exact&quot;,
&quot;matchedEntityId&quot;: &quot;contact-1&quot;,
&quot;matchedEntityLabel&quot;: &quot;Musterbau GmbH&quot;,
&quot;matchedEntityType&quot;: &quot;contact&quot;,
&quot;matchOptions&quot;: [
{
&quot;id&quot;: &quot;contact-1&quot;,
&quot;label&quot;: &quot;Musterbau GmbH&quot;,
&quot;type&quot;: &quot;contact&quot;
},
{
&quot;id&quot;: &quot;project-1&quot;,
&quot;label&quot;: &quot;Heizungstausch&quot;,
&quot;type&quot;: &quot;project&quot;
}
],
&quot;noteMarkdown&quot;: &quot;**Termin** vereinbart. Rückruf am Freitag.&quot;,
&quot;provider&quot;: &quot;aircall&quot;,
&quot;recordingUrl&quot;: &quot;https://dashboard.aircall.io/calls/call-1&quot;,
&quot;startedAt&quot;: &quot;2026-07-15T09:00:00.000Z&quot;,
&quot;status&quot;: &quot;completed&quot;,
&quot;toNumber&quot;: &quot;+49309999999&quot;
},
&quot;status&quot;: &quot;ready&quot;
},
&quot;calls&quot;: {
&quot;data&quot;: {
&quot;canReadAll&quot;: true,
&quot;emptyBodyKey&quot;: &quot;telephony.calls.empty.body&quot;,
&quot;emptyHeadlineKey&quot;: &quot;telephony.calls.empty.headline&quot;,
&quot;rows&quot;: [
{
&quot;boundUserId&quot;: &quot;user-1&quot;,
&quot;boundUserLabel&quot;: &quot;Lena Werk&quot;,
&quot;counterpartLabel&quot;: &quot;Musterbau GmbH&quot;,
&quot;detailHref&quot;: &quot;/acme/calls/call-1&quot;,
&quot;direction&quot;: &quot;inbound&quot;,
&quot;durationSeconds&quot;: 125,
&quot;hasRecording&quot;: true,
&quot;id&quot;: &quot;call-1&quot;,
&quot;matchConfidence&quot;: &quot;exact&quot;,
&quot;matchedEntityId&quot;: &quot;contact-1&quot;,
&quot;matchedEntityLabel&quot;: &quot;Musterbau GmbH&quot;,
&quot;matchedEntityType&quot;: &quot;contact&quot;,
&quot;noteSnippet&quot;: &quot;Rückruf am Freitag&quot;,
&quot;phoneNumber&quot;: &quot;+49301234567&quot;,
&quot;startedAt&quot;: &quot;2026-07-15T09:00:00.000Z&quot;,
&quot;status&quot;: &quot;completed&quot;
},
{
&quot;boundUserId&quot;: &quot;user-1&quot;,
&quot;boundUserLabel&quot;: &quot;Lena Werk&quot;,
&quot;counterpartLabel&quot;: null,
&quot;detailHref&quot;: &quot;/acme/calls/call-2&quot;,
&quot;direction&quot;: &quot;outbound&quot;,
&quot;durationSeconds&quot;: null,
&quot;hasRecording&quot;: false,
&quot;id&quot;: &quot;call-2&quot;,
&quot;matchConfidence&quot;: &quot;none&quot;,
&quot;matchedEntityId&quot;: null,
&quot;matchedEntityLabel&quot;: null,
&quot;matchedEntityType&quot;: null,
&quot;noteSnippet&quot;: null,
&quot;phoneNumber&quot;: &quot;+49401234567&quot;,
&quot;startedAt&quot;: &quot;2026-07-15T08:15:00.000Z&quot;,
&quot;status&quot;: &quot;missed&quot;
}
]
},
&quot;status&quot;: &quot;ready&quot;
},
&quot;clickToCall&quot;: {
&quot;mode&quot;: &quot;provider&quot;,
&quot;numbers&quot;: [
{
&quot;e164&quot;: &quot;+491701234567&quot;,
&quot;id&quot;: &quot;phone-1&quot;,
&quot;label&quot;: &quot;Mobil&quot;,
&quot;primary&quot;: true
},
{
&quot;e164&quot;: &quot;+49301234567&quot;,
&quot;id&quot;: &quot;phone-2&quot;,
&quot;label&quot;: &quot;Büro&quot;,
&quot;primary&quot;: false
}
],
&quot;reasonKey&quot;: null,
&quot;requiresSelection&quot;: true
},
&quot;settings&quot;: {
&quot;data&quot;: {
&quot;canManage&quot;: true,
&quot;connectHref&quot;: &quot;/integrations/aircall/oauth/install?tenant=acme&quot;,
&quot;connection&quot;: {
&quot;bindings&quot;: [
{
&quot;hivegridUserId&quot;: &quot;user-1&quot;,
&quot;hivegridUserLabel&quot;: &quot;Lena Werk&quot;,
&quot;id&quot;: &quot;binding-1&quot;,
&quot;match&quot;: &quot;email&quot;,
&quot;providerEmail&quot;: &quot;lena@example.test&quot;,
&quot;providerName&quot;: &quot;Lena Werk&quot;,
&quot;providerUserId&quot;: &quot;aircall-user-1&quot;
},
{
&quot;hivegridUserId&quot;: null,
&quot;hivegridUserLabel&quot;: null,
&quot;id&quot;: &quot;binding-2&quot;,
&quot;match&quot;: &quot;unmatched&quot;,
&quot;providerEmail&quot;: &quot;miro@example.test&quot;,
&quot;providerName&quot;: &quot;Miro Feld&quot;,
&quot;providerUserId&quot;: &quot;aircall-user-2&quot;
}
],
&quot;errorKey&quot;: null,
&quot;externalCompanyName&quot;: &quot;Werkstatt Berlin&quot;,
&quot;id&quot;: &quot;connection-1&quot;,
&quot;label&quot;: &quot;Aircall Berlin&quot;,
&quot;lastHealthCheckAt&quot;: &quot;2026-07-15T08:30:00.000Z&quot;,
&quot;provider&quot;: &quot;aircall&quot;,
&quot;status&quot;: &quot;active&quot;
},
&quot;emptyBodyKey&quot;: &quot;telephony.settings.empty.body&quot;,
&quot;emptyHeadlineKey&quot;: &quot;telephony.settings.empty.headline&quot;,
&quot;notConfiguredKey&quot;: &quot;telephony.settings.notConfigured&quot;,
&quot;providerConfigured&quot;: true,
&quot;providerOptions&quot;: [],
&quot;statusKey&quot;: &quot;telephony.connection.status.active&quot;,
&quot;userOptions&quot;: [
{
&quot;email&quot;: &quot;lena@example.test&quot;,
&quot;id&quot;: &quot;user-1&quot;,
&quot;label&quot;: &quot;Lena Werk&quot;
},
{
&quot;email&quot;: &quot;miro@example.test&quot;,
&quot;id&quot;: &quot;user-2&quot;,
&quot;label&quot;: &quot;Miro Feld&quot;
}
]
},
&quot;status&quot;: &quot;ready&quot;
}
}
},
&quot;status&quot;: &quot;ready&quot;
}</script>
<script type="application/json" id="mock-page-registries">{
&quot;breadcrumbs&quot;: [
{
&quot;href&quot;: &quot;/:tenant/calls&quot;,
&quot;id&quot;: &quot;calls&quot;,
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.nav.calls&quot;
},
{
&quot;href&quot;: &quot;/:tenant/calls/:id&quot;,
&quot;id&quot;: &quot;call-detail&quot;,
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.breadcrumb.detail&quot;
}
],
&quot;sidebar&quot;: [
{
&quot;href&quot;: &quot;/:tenant/calls&quot;,
&quot;id&quot;: &quot;ak-p15a-calls&quot;,
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.nav.calls&quot;,
&quot;permission&quot;: &quot;telephony.read_own&quot;
},
{
&quot;href&quot;: &quot;/:tenant/settings/integrations/telephony&quot;,
&quot;id&quot;: &quot;ak-p15a-settings&quot;,
&quot;labelKey&quot;: &quot;mock.ak-p15a.telephony.nav.settings&quot;,
&quot;permission&quot;: &quot;telephony.manage&quot;
}
]
}</script>
</main>
</div>
</body>
</html>