416 lines
19 KiB
HTML
416 lines
19 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: Team chat detail interim UI (AK-P15b)</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/chat/:id" data-ui-mock-status="ready">
|
|
<div class="mock-shell" data-ui-mock-page="ak-p15b-chat-detail-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/chat/:id">Team chat</a>
|
|
</nav>
|
|
<main class="mock-main">
|
|
<div class="mock-breadcrumbs"><span>Team chat</span><span>/</span><span>Solar roof project</span></div>
|
|
<header class="mock-header">
|
|
<div>
|
|
<h1 class="mock-title">Team chat detail interim UI (AK-P15b)</h1>
|
|
<p class="mock-description">Static fixture for the team chat channel detail interim screen (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">Canonical messages</p>
|
|
<p class="mock-card-value">2</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Pinned messages</p>
|
|
<p class="mock-card-value">0</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>Optimistic send reconciliation</span><span>local_echo -> http_ack</span></li>
|
|
<li><span>Cursor history</span><span>cursor-message-older</span></li>
|
|
<li><span>Realtime connection</span><span>online</span></li>
|
|
</ul>
|
|
</section>
|
|
<section class="mock-state" aria-label="Mock state payload">
|
|
<strong>Serialized state</strong>
|
|
<pre>{
|
|
"activity": 3,
|
|
"cards": 3,
|
|
"status": "Ready"
|
|
}</pre>
|
|
</section>
|
|
<script type="application/json" id="mock-page-state">{
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.activity.optimisticSend",
|
|
"meta": "local_echo -> http_ack"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.activity.history",
|
|
"meta": "cursor-message-older"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.activity.connection",
|
|
"meta": "online"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.metrics.messages",
|
|
"trend": "flat",
|
|
"value": "2"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.metrics.pinned",
|
|
"trend": "flat",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-p15b.chat.detail.metrics.designStatus",
|
|
"trend": "flat",
|
|
"value": "interim"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoute": "/chat/:id",
|
|
"viewModel": {
|
|
"data": {
|
|
"composer": {
|
|
"canAttachFiles": false,
|
|
"canMarkAsTask": false,
|
|
"canMention": false,
|
|
"canRecordVoice": false,
|
|
"canSend": true,
|
|
"disabledReasonKey": null,
|
|
"draftStorageKey": "chat:draft:v1:tenant-demo:user-raffael:chat-group-montage",
|
|
"enabled": true,
|
|
"maxBodyLength": 4000,
|
|
"placeholderKey": "chat.composer.placeholder"
|
|
},
|
|
"connection": {
|
|
"canRetry": false,
|
|
"reconnectAttempt": 0,
|
|
"retryAtIso": null,
|
|
"state": "online",
|
|
"stateLabelKey": "chat.connection.online"
|
|
},
|
|
"emptyBodyKey": "chat.channel.empty.body",
|
|
"emptyHeadlineKey": "chat.channel.empty.headline",
|
|
"header": {
|
|
"avatar": {
|
|
"fallbackLabel": "MT",
|
|
"imageUrl": null
|
|
},
|
|
"canManage": false,
|
|
"dmAuditBannerKey": null,
|
|
"id": "chat-group-montage",
|
|
"isArchived": false,
|
|
"isAuditMode": false,
|
|
"isPrivate": true,
|
|
"kind": "group",
|
|
"memberCount": 4,
|
|
"pinnedHref": null,
|
|
"project": null,
|
|
"searchHref": "/:tenant/chat",
|
|
"settingsHref": null,
|
|
"subtitle": "Abstimmung für die laufenden Baustellen",
|
|
"title": "Montage-Team"
|
|
},
|
|
"history": {
|
|
"hasOlder": true,
|
|
"olderCursor": "cursor-message-older"
|
|
},
|
|
"loadOlderLabelKey": "chat.channel.loadOlder",
|
|
"messageGroups": [
|
|
{
|
|
"dateIso": "2026-07-15",
|
|
"messages": [
|
|
{
|
|
"actions": {
|
|
"canDelete": false,
|
|
"canEdit": false,
|
|
"canMarkAsTask": false,
|
|
"canPin": false,
|
|
"canReact": false,
|
|
"canReply": false
|
|
},
|
|
"attachments": [],
|
|
"author": {
|
|
"avatar": {
|
|
"fallbackLabel": "MK",
|
|
"imageUrl": null
|
|
},
|
|
"displayName": "Mara Klein",
|
|
"isCurrentUser": false,
|
|
"userId": "user-mara"
|
|
},
|
|
"bodyFormat": "markdown",
|
|
"bodyMarkdown": "Material ist bestellt.",
|
|
"clientMessageId": "client-mara-1",
|
|
"createdAtIso": "2026-07-15T09:30:00.000Z",
|
|
"deletedAtIso": null,
|
|
"deliveryState": "sent",
|
|
"deliveryStateKey": "chat.message.delivery.sent",
|
|
"editedAtIso": null,
|
|
"failureReasonKey": null,
|
|
"id": "message-mara-1",
|
|
"linkPreviews": [],
|
|
"mentions": [],
|
|
"parentMessageId": null,
|
|
"pin": null,
|
|
"reactions": [],
|
|
"readAggregate": {
|
|
"labelKey": "chat.message.read.aggregate",
|
|
"readCount": 2,
|
|
"readerLabels": [
|
|
"Raffael Sheikh",
|
|
"Lena Werk"
|
|
],
|
|
"readerUserIds": [
|
|
"user-raffael",
|
|
"user-lena"
|
|
],
|
|
"recipientCount": 3
|
|
},
|
|
"retryable": false,
|
|
"source": "persisted",
|
|
"systemEvent": null,
|
|
"thread": null,
|
|
"tombstoneKey": null,
|
|
"updatedAtIso": "2026-07-15T09:30:00.000Z"
|
|
},
|
|
{
|
|
"actions": {
|
|
"canDelete": false,
|
|
"canEdit": false,
|
|
"canMarkAsTask": false,
|
|
"canPin": false,
|
|
"canReact": false,
|
|
"canReply": false
|
|
},
|
|
"attachments": [],
|
|
"author": {
|
|
"avatar": {
|
|
"fallbackLabel": "RS",
|
|
"imageUrl": null
|
|
},
|
|
"displayName": "Raffael Sheikh",
|
|
"isCurrentUser": true,
|
|
"userId": "user-raffael"
|
|
},
|
|
"bodyFormat": "markdown",
|
|
"bodyMarkdown": "Perfekt, danke!",
|
|
"clientMessageId": "client-raffael-1",
|
|
"createdAtIso": "2026-07-15T09:31:00.000Z",
|
|
"deletedAtIso": null,
|
|
"deliveryState": "sent",
|
|
"deliveryStateKey": "chat.message.delivery.sent",
|
|
"editedAtIso": null,
|
|
"failureReasonKey": null,
|
|
"id": "message-raffael-1",
|
|
"linkPreviews": [],
|
|
"mentions": [],
|
|
"parentMessageId": null,
|
|
"pin": null,
|
|
"reactions": [],
|
|
"readAggregate": {
|
|
"labelKey": "chat.message.read.aggregate",
|
|
"readCount": 0,
|
|
"readerLabels": [],
|
|
"readerUserIds": [],
|
|
"recipientCount": 3
|
|
},
|
|
"retryable": false,
|
|
"source": "http_ack",
|
|
"systemEvent": null,
|
|
"thread": null,
|
|
"tombstoneKey": null,
|
|
"updatedAtIso": "2026-07-15T09:31:01.000Z"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"messages": [
|
|
{
|
|
"actions": {
|
|
"canDelete": false,
|
|
"canEdit": false,
|
|
"canMarkAsTask": false,
|
|
"canPin": false,
|
|
"canReact": false,
|
|
"canReply": false
|
|
},
|
|
"attachments": [],
|
|
"author": {
|
|
"avatar": {
|
|
"fallbackLabel": "MK",
|
|
"imageUrl": null
|
|
},
|
|
"displayName": "Mara Klein",
|
|
"isCurrentUser": false,
|
|
"userId": "user-mara"
|
|
},
|
|
"bodyFormat": "markdown",
|
|
"bodyMarkdown": "Material ist bestellt.",
|
|
"clientMessageId": "client-mara-1",
|
|
"createdAtIso": "2026-07-15T09:30:00.000Z",
|
|
"deletedAtIso": null,
|
|
"deliveryState": "sent",
|
|
"deliveryStateKey": "chat.message.delivery.sent",
|
|
"editedAtIso": null,
|
|
"failureReasonKey": null,
|
|
"id": "message-mara-1",
|
|
"linkPreviews": [],
|
|
"mentions": [],
|
|
"parentMessageId": null,
|
|
"pin": null,
|
|
"reactions": [],
|
|
"readAggregate": {
|
|
"labelKey": "chat.message.read.aggregate",
|
|
"readCount": 2,
|
|
"readerLabels": [
|
|
"Raffael Sheikh",
|
|
"Lena Werk"
|
|
],
|
|
"readerUserIds": [
|
|
"user-raffael",
|
|
"user-lena"
|
|
],
|
|
"recipientCount": 3
|
|
},
|
|
"retryable": false,
|
|
"source": "persisted",
|
|
"systemEvent": null,
|
|
"thread": null,
|
|
"tombstoneKey": null,
|
|
"updatedAtIso": "2026-07-15T09:30:00.000Z"
|
|
},
|
|
{
|
|
"actions": {
|
|
"canDelete": false,
|
|
"canEdit": false,
|
|
"canMarkAsTask": false,
|
|
"canPin": false,
|
|
"canReact": false,
|
|
"canReply": false
|
|
},
|
|
"attachments": [],
|
|
"author": {
|
|
"avatar": {
|
|
"fallbackLabel": "RS",
|
|
"imageUrl": null
|
|
},
|
|
"displayName": "Raffael Sheikh",
|
|
"isCurrentUser": true,
|
|
"userId": "user-raffael"
|
|
},
|
|
"bodyFormat": "markdown",
|
|
"bodyMarkdown": "Perfekt, danke!",
|
|
"clientMessageId": "client-raffael-1",
|
|
"createdAtIso": "2026-07-15T09:31:00.000Z",
|
|
"deletedAtIso": null,
|
|
"deliveryState": "sent",
|
|
"deliveryStateKey": "chat.message.delivery.sent",
|
|
"editedAtIso": null,
|
|
"failureReasonKey": null,
|
|
"id": "message-raffael-1",
|
|
"linkPreviews": [],
|
|
"mentions": [],
|
|
"parentMessageId": null,
|
|
"pin": null,
|
|
"reactions": [],
|
|
"readAggregate": {
|
|
"labelKey": "chat.message.read.aggregate",
|
|
"readCount": 0,
|
|
"readerLabels": [],
|
|
"readerUserIds": [],
|
|
"recipientCount": 3
|
|
},
|
|
"retryable": false,
|
|
"source": "http_ack",
|
|
"systemEvent": null,
|
|
"thread": null,
|
|
"tombstoneKey": null,
|
|
"updatedAtIso": "2026-07-15T09:31:01.000Z"
|
|
}
|
|
],
|
|
"newMessagesLabelKey": "chat.channel.newMessages",
|
|
"pinnedMessages": [],
|
|
"presence": [],
|
|
"typingLabels": [
|
|
"Mara Klein"
|
|
]
|
|
},
|
|
"status": "ready"
|
|
}
|
|
},
|
|
"status": "ready"
|
|
}</script>
|
|
<script type="application/json" id="mock-page-registries">{
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/:tenant/chat",
|
|
"id": "chat",
|
|
"labelKey": "mock.ak-p15b.chat.nav.title",
|
|
"permission": "chat.read_own_channels"
|
|
},
|
|
{
|
|
"href": "/:tenant/chat/:id",
|
|
"id": "chat-detail",
|
|
"labelKey": "mock.ak-p15b.chat.breadcrumb.detail",
|
|
"permission": "chat.read_own_channels"
|
|
}
|
|
],
|
|
"sidebar": [
|
|
{
|
|
"href": "/:tenant/chat/:id",
|
|
"id": "ak-p15b-chat",
|
|
"labelKey": "mock.ak-p15b.chat.nav.title",
|
|
"permission": "chat.read_own_channels"
|
|
}
|
|
]
|
|
}</script>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|