Move sub-surfaces into their sections: billing views get a pill row, org types a header button. Replace inline IdP handoff copy with an SVG icon and tooltip, add help icons to dense form rows, and delete the registry-driven sidebar nav plumbing. Update specs and tests.
221 lines
10 KiB
HTML
221 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>{{ deploymentName }}</title>
|
|
<meta name="description" content="Console for {{ deploymentName }} members">
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta property="og:title" content="{{ deploymentName }}">
|
|
<meta property="og:description" content="Console for {{ deploymentName }} members">
|
|
<meta property="og:image" content="/static/apple-touch-icon.png">
|
|
<meta property="og:url" content="/index.html">
|
|
<meta property="og:site_name" content="{{ deploymentName }}">
|
|
|
|
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'>
|
|
<link href="/static/bootstrap.css" rel="stylesheet">
|
|
<script defer src="/static/bootstrap.bundle.js"></script>
|
|
<script defer src="/static/htmx.min.js"></script>
|
|
<script defer src="/static/error-handler.js"></script>
|
|
<script defer src="/static/success-toast.js"></script>
|
|
<script defer src="/static/workspace-slug.js"></script>
|
|
{{/* Integration dashboard-card scripts: page-level deferred external
|
|
tags only — CSP forbids inline scripts, and script tags inside
|
|
HTMX-swapped fragments have unreliable execution order. */}}
|
|
{{ range .DashboardCards }}{{ range .Scripts }}
|
|
<script defer src="{{ . }}"></script>{{ end }}{{ end }}
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
|
|
<link rel="manifest" href="/static/site.webmanifest">
|
|
|
|
<link href="/static/app.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body class="d-flex flex-column vh-100" hx-headers='{"X-CSRF-Token": "{{ .CSRFToken }}"}'>
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="#">{{ deploymentName }}</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav ms-auto d-lg-none">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/">Dashboard</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/products">Products</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/billing">Billing</a>
|
|
</li>
|
|
{{ if .IsOperator }}
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/operator">Operator</a>
|
|
</li>
|
|
{{ end }}
|
|
<!-- Session/account controls (chrome-conventions, ux-ia-naming D8):
|
|
visually separated from the task entries above via the same
|
|
border-top-plus-spacing idiom used elsewhere for grouping
|
|
(app.css .operator-ia-group-start), applied here with
|
|
Bootstrap's own utility classes since this list is plain and
|
|
ungrouped otherwise. -->
|
|
<li class="nav-item mt-2 pt-2 border-top">
|
|
<a class="nav-link" href="{{ .KeycloakAccountURL }}" target="_blank" title="Manage your account and sign-in. Opens in a new tab.">Identity and <span class="text-nowrap">Access<svg class="external-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg></span></a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link text-danger" href="/logout">Logout</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="d-flex flex-column flex-lg-row flex-grow-1">
|
|
<!-- Sidebar - only visible on lg screens and up -->
|
|
<aside class="app-sidebar bg-light d-none d-lg-flex flex-column flex-shrink-0 h-lg-100 border-end">
|
|
<ul class="nav flex-column p-3">
|
|
<li class="nav-item"><a class="nav-link active" href="/">Dashboard</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/products">Products</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/billing">Billing</a></li>
|
|
{{ if .IsOperator }}
|
|
<li class="nav-item"><a class="nav-link" href="/operator">Operator</a></li>
|
|
{{ end }}
|
|
<!-- Session/account controls, separated from the task entries above
|
|
(chrome-conventions, ux-ia-naming D8) — see the matching comment
|
|
on the mobile nav list above. -->
|
|
<li class="nav-item mt-2 pt-2 border-top">
|
|
<a class="nav-link" href="{{ .KeycloakAccountURL }}" target="_blank" title="Manage your account and sign-in. Opens in a new tab.">Identity and <span class="text-nowrap">Access<svg class="external-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg></span></a>
|
|
</li>
|
|
<li class="nav-item"><a class="nav-link text-danger" href="/logout">Logout</a></li>
|
|
</ul>
|
|
</aside>
|
|
|
|
<!-- Main Content -->
|
|
<div class="flex-fill p-4">
|
|
<div class="container-xxl px-0">
|
|
<h1>Dashboard</h1>
|
|
{{ if eq .CheckoutStatus "success" }}
|
|
<div class="alert alert-success" role="alert">
|
|
<strong>Thanks!</strong> We're finalizing your upgrade — this can take a moment.
|
|
<a href="/products">View your plan on the Plans page</a>.
|
|
</div>
|
|
{{ else if eq .CheckoutStatus "cancel" }}
|
|
<div class="alert alert-secondary" role="alert">
|
|
Checkout canceled. Your current plan is unchanged.
|
|
</div>
|
|
{{ end }}
|
|
{{/* Pending domain claims (dissolve-member-domains): the durable
|
|
re-entry point for an in-flight DNS verification now that the
|
|
standalone Domains page is gone. Server-side conditional — no
|
|
empty chrome when there is nothing pending. Opening a claim swaps
|
|
the claim-status partial into this same .domains-surface wrapper;
|
|
reopening mints nothing (pure read). */}}
|
|
{{ if .PendingDomainClaims }}
|
|
<div class="alert alert-info mt-3 domains-surface" role="status">
|
|
<strong>Domain verification in progress.</strong>
|
|
{{ range .PendingDomainClaims }}
|
|
<div class="d-flex align-items-center gap-2 mt-1">
|
|
<code class="text-break">{{ .Root }}</code>
|
|
<button type="button" class="btn btn-link btn-sm p-0 align-baseline"
|
|
hx-get="{{ routeURL "/partials/domains/claims/{claimID}" .ClaimID }}"
|
|
hx-target="closest .domains-surface" hx-swap="innerHTML">View DNS records</button>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Account Overview</div>
|
|
<div class="card-body">
|
|
<p><strong>Name:</strong> {{ .Name }}</p>
|
|
<p><strong>Username:</strong> {{ .Username }}</p>
|
|
<p><strong>Email:</strong> {{ .Email }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Workspace Management Section (progressive disclosure) -->
|
|
{{ if .HasMultipleWorkspaces }}
|
|
<div class="row mt-4" id="workspace-management">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">Workspaces</div>
|
|
<div class="card-body">
|
|
<div id="workspaceContent" hx-get="/partials/workspaces" hx-trigger="load" hx-swap="innerHTML">
|
|
<div class="text-center py-4">
|
|
<div class="spinner-border text-primary" role="status">
|
|
<span class="visually-hidden">Loading...</span>
|
|
</div>
|
|
<p class="mt-2 text-muted">Loading workspaces...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{/* Integration dashboard cards: one generic shell per declaration
|
|
collected from the integration registry (registry order). The
|
|
body is integration-owned — it self-loads via HTMX from the
|
|
declared partial route; core renders no integration markup. */}}
|
|
{{ range .DashboardCards }}
|
|
<div class="row mt-4">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<span>{{ .Title }}</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<div hx-get="{{ .PartialPath }}" hx-trigger="{{ .Trigger }}" hx-swap="innerHTML">
|
|
<div class="text-center py-4">
|
|
<div class="spinner-border text-primary" role="status">
|
|
<span class="visually-hidden">Loading...</span>
|
|
</div>
|
|
<p class="mt-2 text-muted">Loading...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Toast Container -->
|
|
<div class="toast-container">
|
|
<div id="errorToast" class="toast align-items-center text-bg-danger border-0" role="alert" aria-live="assertive"
|
|
aria-atomic="true">
|
|
<div class="d-flex">
|
|
<div class="toast-body" id="errorToastBody">
|
|
An error occurred. Please try again.
|
|
</div>
|
|
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
</div>
|
|
<div id="successToast" class="toast align-items-center text-bg-success border-0" role="status" aria-live="polite"
|
|
aria-atomic="true">
|
|
<div class="d-flex">
|
|
<div class="toast-body" id="successToastBody">
|
|
Done.
|
|
</div>
|
|
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |