402 lines
18 KiB
HTML
402 lines
18 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: mock.va-p26b.interim.title</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/upload" data-ui-mock-status="ready">
|
|
<div class="mock-shell" data-ui-mock-page="va-p26b-customer-portal-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/upload">mock.va-p26b.interim.nav.upload</a>
|
|
<a class="mock-link" data-active="false" href="/:tenant/settings">mock.va-p26b.interim.nav.settings</a>
|
|
<a class="mock-link" data-active="false" href="/:tenant/settings/customer-portal">mock.va-p26b.interim.nav.admin</a>
|
|
</nav>
|
|
<main class="mock-main">
|
|
<div class="mock-breadcrumbs"><span>mock.va-p26a.interim.nav.dashboard</span><span>/</span><span>mock.va-p26b.interim.nav.upload</span></div>
|
|
<header class="mock-header">
|
|
<div>
|
|
<h1 class="mock-title">mock.va-p26b.interim.title</h1>
|
|
<p class="mock-description">mock.va-p26b.interim.description</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">mock.va-p26b.interim.metrics.routes</p>
|
|
<p class="mock-card-value">5</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">mock.va-p26b.interim.metrics.viewModels</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">mock.va-p26b.interim.metrics.inbox</p>
|
|
<p class="mock-card-value">2</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
</section>
|
|
<section class="mock-card" aria-label="Mock activity">
|
|
<ul class="mock-activity">
|
|
<li><span>mock.va-p26b.interim.activity.upload</span><span>multi-file + AV</span></li>
|
|
<li><span>mock.va-p26b.interim.activity.complaint</span><span>portal_form</span></li>
|
|
<li><span>mock.va-p26b.interim.activity.subcontractor</span><span>project-isolated</span></li>
|
|
<li><span>mock.va-p26b.interim.activity.inbox</span><span>7-day persistent</span></li>
|
|
<li><span>mock.va-p26b.interim.activity.lifecycle</span><span>export + delete</span></li>
|
|
</ul>
|
|
</section>
|
|
<section class="mock-state" aria-label="Mock state payload">
|
|
<strong>Serialized state</strong>
|
|
<pre>{
|
|
"activity": 5,
|
|
"cards": 3,
|
|
"status": "Ready"
|
|
}</pre>
|
|
</section>
|
|
<script type="application/json" id="mock-page-state">{
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.activity.upload",
|
|
"meta": "multi-file + AV"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.activity.complaint",
|
|
"meta": "portal_form"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.activity.subcontractor",
|
|
"meta": "project-isolated"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.activity.inbox",
|
|
"meta": "7-day persistent"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.activity.lifecycle",
|
|
"meta": "export + delete"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.metrics.routes",
|
|
"trend": "flat",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.metrics.viewModels",
|
|
"trend": "flat",
|
|
"value": "3"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p26b.interim.metrics.inbox",
|
|
"trend": "flat",
|
|
"value": "2"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoutes": [
|
|
"/:tenant/upload",
|
|
"/:tenant/projects/:projectId",
|
|
"/:tenant/settings",
|
|
"/:tenant/settings/customer-portal",
|
|
"/:tenant/customer-portal/inbox"
|
|
],
|
|
"surfaces": [
|
|
"interactions",
|
|
"lifecycle",
|
|
"admin"
|
|
],
|
|
"viewModels": {
|
|
"admin": {
|
|
"data": {
|
|
"accessRows": [
|
|
{
|
|
"active": true,
|
|
"canSeeOtherSubcontractors": false,
|
|
"canUpload": true,
|
|
"companyName": "Subbau GmbH",
|
|
"id": "access-1",
|
|
"portalUserId": "portal-subcontractor",
|
|
"portalUserLabel": "Sven Subunternehmen",
|
|
"projectId": "project-1",
|
|
"projectLabel": "P-1001 · Heizung Familie Kunde",
|
|
"roleLabel": "Elektrik",
|
|
"validUntil": "2026-08-16T23:59:59.999Z",
|
|
"viewerKind": "subcontractor",
|
|
"visibleDocumentTypes": [
|
|
"installation_plan"
|
|
],
|
|
"visibleStageIds": [
|
|
"stage-installation"
|
|
]
|
|
}
|
|
],
|
|
"autoReleaseRules": [
|
|
{
|
|
"documentType": "invoice",
|
|
"enabled": true,
|
|
"id": "rule-1",
|
|
"projectType": "installation"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"autoReleaseRuleCount": 1,
|
|
"brandingLogoConfigured": false,
|
|
"brandingLogoPreviewHref": null,
|
|
"emailTemplateHref": "/acme/settings/customer-portal/email-templates",
|
|
"enabledProjectTypes": [
|
|
"installation"
|
|
],
|
|
"imprintUrl": "https://example.test/impressum",
|
|
"inactivityDisableMonths": 24,
|
|
"legalLinksComplete": true,
|
|
"lifecycleMode": "project",
|
|
"privacyUrl": "https://example.test/datenschutz",
|
|
"projectAutoCloseMonths": 12,
|
|
"published": true,
|
|
"statusEmailsEnabled": true,
|
|
"termsUrl": "https://example.test/agb",
|
|
"uploadMaxFiles": 10,
|
|
"uploadMaxFileSizeBytes": 52428800,
|
|
"visibleStageCount": 1
|
|
},
|
|
"frozen": false,
|
|
"inbox": [
|
|
{
|
|
"bundledCount": 1,
|
|
"expiresAt": "2026-07-23T09:45:00.000Z",
|
|
"id": "inbox-complaint",
|
|
"kind": "complaint",
|
|
"occurredAt": "2026-07-16T09:45:00.000Z",
|
|
"ownerLabel": "Projektleitung",
|
|
"portalUserLabel": "Karla Kunde",
|
|
"priority": 400,
|
|
"projectLabel": "P-1001 · Heizung Familie Kunde",
|
|
"status": "open",
|
|
"titleKey": "customerPortal.admin.inbox.kinds.complaint"
|
|
},
|
|
{
|
|
"bundledCount": 3,
|
|
"expiresAt": "2026-07-23T09:30:00.000Z",
|
|
"id": "inbox-upload",
|
|
"kind": "upload",
|
|
"occurredAt": "2026-07-16T09:30:00.000Z",
|
|
"ownerLabel": null,
|
|
"portalUserLabel": "Karla Kunde",
|
|
"priority": 300,
|
|
"projectLabel": "P-1001 · Heizung Familie Kunde",
|
|
"status": "open",
|
|
"titleKey": "customerPortal.admin.inbox.kinds.upload"
|
|
}
|
|
],
|
|
"permissions": {
|
|
"canAdminister": true,
|
|
"canDeleteUsers": true,
|
|
"canManageAccess": true,
|
|
"canManageActivity": true,
|
|
"canManageUsers": true,
|
|
"canRead": true,
|
|
"canReadActivity": true
|
|
},
|
|
"projectOptions": [
|
|
{
|
|
"id": "project-1",
|
|
"label": "P-1001 · Heizung Familie Kunde",
|
|
"projectType": "installation"
|
|
}
|
|
],
|
|
"stages": [
|
|
{
|
|
"customerLabel": "Montage vor Ort",
|
|
"stageId": "stage-installation",
|
|
"stageLabel": "Montage",
|
|
"visible": true
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"canResendInvitation": false,
|
|
"email": "sven@example.test",
|
|
"id": "portal-subcontractor",
|
|
"kind": "subcontractor",
|
|
"lastActivityAt": "2026-07-16T09:15:00.000Z",
|
|
"name": "Sven Subunternehmen",
|
|
"projectCount": 1,
|
|
"status": "active"
|
|
}
|
|
]
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"interactions": {
|
|
"data": {
|
|
"acceptedMimeTypes": [
|
|
"image/jpeg",
|
|
"application/pdf",
|
|
"audio/mpeg"
|
|
],
|
|
"canSubmitComplaint": true,
|
|
"canUpload": true,
|
|
"complaintForm": {
|
|
"fields": [
|
|
{
|
|
"key": "subject",
|
|
"label": "Betreff",
|
|
"options": [],
|
|
"required": true,
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "description",
|
|
"label": "Beschreibung",
|
|
"options": [],
|
|
"required": true,
|
|
"type": "textarea"
|
|
}
|
|
],
|
|
"formId": "form-complaint",
|
|
"formName": "Reklamation melden",
|
|
"formSlug": "reklamation",
|
|
"gdprConsentLabel": "Ich stimme der Verarbeitung zur Bearbeitung zu.",
|
|
"submitAction": "/acme/projects/project-1/complaints/form-complaint",
|
|
"submitLabel": "Reklamation senden"
|
|
},
|
|
"frozen": false,
|
|
"maxFiles": 10,
|
|
"maxFileSizeBytes": 52428800,
|
|
"projectId": "project-1",
|
|
"projectLabel": "P-1001 · Heizung Familie Kunde",
|
|
"uploadAction": "/acme/projects/project-1/upload",
|
|
"uploads": [
|
|
{
|
|
"category": "photo",
|
|
"createdAt": "2026-07-16T09:30:00.000Z",
|
|
"errorMessageKey": null,
|
|
"filename": "baustelle.jpg",
|
|
"id": "upload-1",
|
|
"sizeBytes": 1572864,
|
|
"status": "clean"
|
|
}
|
|
],
|
|
"viewerKind": "customer"
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"lifecycle": {
|
|
"data": {
|
|
"actions": {
|
|
"canCancelDeletion": false,
|
|
"canRequestDeletion": true,
|
|
"canRequestExport": true,
|
|
"canUpdatePreferences": true
|
|
},
|
|
"deletionRequest": null,
|
|
"exportJobs": [
|
|
{
|
|
"downloadHref": "/acme/exports/export-1",
|
|
"expiresAt": "2026-07-17T08:00:00.000Z",
|
|
"id": "export-1",
|
|
"progressPercent": 100,
|
|
"requestedAt": "2026-07-16T08:00:00.000Z",
|
|
"status": "ready"
|
|
}
|
|
],
|
|
"frozen": false,
|
|
"notificationPreferences": [
|
|
{
|
|
"emailEnabled": true,
|
|
"eventType": "status_mail",
|
|
"mutedUntil": null
|
|
},
|
|
{
|
|
"emailEnabled": true,
|
|
"eventType": "lifecycle",
|
|
"mutedUntil": null
|
|
}
|
|
],
|
|
"profile": {
|
|
"email": "karla@example.test",
|
|
"locale": "de-DE",
|
|
"name": "Karla Kunde",
|
|
"phone": "+49 30 1234567"
|
|
}
|
|
},
|
|
"status": "ready"
|
|
}
|
|
}
|
|
},
|
|
"status": "ready"
|
|
}</script>
|
|
<script type="application/json" id="mock-page-registries">{
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/:tenant",
|
|
"id": "portal",
|
|
"labelKey": "mock.va-p26a.interim.nav.dashboard"
|
|
},
|
|
{
|
|
"href": "/:tenant/upload",
|
|
"id": "upload",
|
|
"labelKey": "mock.va-p26b.interim.nav.upload"
|
|
}
|
|
],
|
|
"portals": [
|
|
{
|
|
"id": "customer-portal-p26b",
|
|
"labelKey": "mock.va-p26b.interim.title",
|
|
"order": 1,
|
|
"slot": "customer-portal"
|
|
}
|
|
],
|
|
"sidebar": [
|
|
{
|
|
"href": "/:tenant/upload",
|
|
"id": "va-p26b-upload",
|
|
"labelKey": "mock.va-p26b.interim.nav.upload"
|
|
},
|
|
{
|
|
"href": "/:tenant/settings",
|
|
"id": "va-p26b-settings",
|
|
"labelKey": "mock.va-p26b.interim.nav.settings"
|
|
},
|
|
{
|
|
"href": "/:tenant/settings/customer-portal",
|
|
"id": "va-p26b-admin",
|
|
"labelKey": "mock.va-p26b.interim.nav.admin"
|
|
}
|
|
]
|
|
}</script>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|