From 746472d532d5c0b9e4d70091ad8683d3c1de52a4 Mon Sep 17 00:00:00 2001 From: ZTatman Date: Sat, 16 May 2026 13:54:46 -0400 Subject: [PATCH] Update boilerplate UI design system --- agents.md | 8 ++- web/app/static/css/input.css | 67 ++++++++++++++++---- web/app/templates/base.html | 75 +++++++++++++++-------- web/app/templates/dashboard.html | 101 ++++++++++++++++++++++++++----- web/app/templates/index.html | 83 ++++++++++++++++++++----- 5 files changed, 264 insertions(+), 70 deletions(-) diff --git a/agents.md b/agents.md index 24f67b2..7f6c8b4 100644 --- a/agents.md +++ b/agents.md @@ -90,4 +90,10 @@ This file is the single source of truth for codebase obstacles, oddities, and th **Area:** web/app/models/user.py **Obstacle:** `Session` was imported directly (`from .session import Session`) while `Grant` used `TYPE_CHECKING`. Inconsistent and risked circular imports. **Solution:** Moved `Session` import under `TYPE_CHECKING`, changed relationship to string ref `"Session"`. -**Preference:** Always use `TYPE_CHECKING` for model references within models to avoid circular imports. \ No newline at end of file +**Preference:** Always use `TYPE_CHECKING` for model references within models to avoid circular imports. + +### Boilerplate UI must follow attached light vault system +**Area:** web/app/static/css/input.css, web/app/templates/*.html +**Obstacle:** Existing boilerplate used dark-mode pink tokens that conflicted with the attached "Mystique Minimalist Security" design system. +**Solution/Workaround:** Use light Geist/JetBrains Mono typography, glacier-blue primary actions, white/off-white tonal surfaces, hairline slate borders, compact labels, mono technical strings, and pill status badges. +**Preference:** Keep visual changes in Tailwind tokens and boilerplate templates; avoid backend route changes for design-only updates. diff --git a/web/app/static/css/input.css b/web/app/static/css/input.css index d7a54ef..93bf221 100644 --- a/web/app/static/css/input.css +++ b/web/app/static/css/input.css @@ -1,17 +1,58 @@ @import "tailwindcss"; @theme { - --color-surface: #0f0f1a; - --color-surface-alt: #1a1a2e; - --color-surface-raised: #24243e; - --color-primary: #ec4899; - --color-primary-hover: #db2777; - --color-primary-muted: rgba(236, 72, 153, 0.15); - --color-text: #e2e8f0; - --color-text-muted: #94a3b8; - --color-border: #334155; - --color-border-light: #1e293b; - --color-success: #22c55e; - --color-warning: #f59e0b; - --color-danger: #ef4444; + --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif; + --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; + + --color-background: #f8f9ff; + --color-surface: #f8f9ff; + --color-surface-bright: #ffffff; + --color-surface-alt: #eff4ff; + --color-surface-raised: #e5eeff; + --color-surface-muted: #f8fafc; + --color-surface-hover: #f1f5f9; + --color-primary: #006591; + --color-primary-hover: #004c6e; + --color-primary-container: #0ea5e9; + --color-primary-muted: rgba(0, 101, 145, 0.12); + --color-text: #0b1c30; + --color-text-muted: #3e4850; + --color-text-subtle: #57657a; + --color-border: #e2e8f0; + --color-border-light: #f1f5f9; + --color-outline: #6e7881; + --color-success: #15803d; + --color-success-surface: #dcfce7; + --color-warning: #b45309; + --color-warning-surface: #fef3c7; + --color-danger: #ba1a1a; + --color-danger-surface: #ffdad6; + + --radius-sm: 0.125rem; + --radius-md: 0.25rem; + --radius-lg: 0.375rem; + --radius-xl: 0.5rem; + --radius-2xl: 0.75rem; +} + +@layer base { + html { + background: #f8f9ff; + color: #0b1c30; + font-family: var(--font-sans); + } + + body { + letter-spacing: 0; + } + + a, + button, + input { + outline-color: var(--color-primary); + } + + code { + font-family: var(--font-mono); + } } diff --git a/web/app/templates/base.html b/web/app/templates/base.html index 1f69f5b..cbe85c6 100644 --- a/web/app/templates/base.html +++ b/web/app/templates/base.html @@ -1,28 +1,51 @@ - - - - - {% block title %}Myst{% endblock %} - - - - -
-
- Myst - -
-
-
- {% block content %}{% endblock %} -
- + + + + + + {% block title %}Myst{% endblock %} + + + + + + + + +
+
+ + M + Myst + + +
+
+
+ {% block content %}{% endblock %} +
+ diff --git a/web/app/templates/dashboard.html b/web/app/templates/dashboard.html index 54fb6fe..8b17ab1 100644 --- a/web/app/templates/dashboard.html +++ b/web/app/templates/dashboard.html @@ -1,20 +1,89 @@ {% extends "base.html" %} - {% block title %}Dashboard — Myst{% endblock %} - {% block content %} -

Dashboard

-

Welcome, {{ user.display_name or user.email }}!

- -
-

Forgejo Access Token

-

Register a read:repository-scoped PAT to enable share link viewing.

- -
- -
-

Share Links

-

You haven't created any share links yet.

- -
+
+
+
+

Control plane

+

Dashboard

+

Welcome, {{ user.display_name or user.email }}.

+
+ + Create share link + +
+
+
+

Active links

+

0

+

No repository snapshots published yet.

+
+
+

Default expiry

+

7 days

+

Applied to newly created links.

+
+
+

Audit events

+

0

+

Viewer activity will appear here.

+
+
+
+
+

Forgejo access token

+

+ Register a read:repository-scoped PAT + to enable share link viewing. +

+
+
+
+ + +
+ +
+
+
+
+
+

Share links

+

Repository snapshots published from this account.

+
+ Empty +
+
+ + + + + + + + + + + + + + + +
RepositoryCommitStatusViewsExpires
You have not created any share links yet.
+
+
+
{% endblock %} diff --git a/web/app/templates/index.html b/web/app/templates/index.html index 711c0a7..c5f0f5e 100644 --- a/web/app/templates/index.html +++ b/web/app/templates/index.html @@ -1,17 +1,72 @@ {% extends "base.html" %} - -{% block title %}Myst{% endblock %} - +{% block title %}Myst — share Forgejo repositories easily{% endblock %} {% block content %} -
-

Myst

-

- Share self-hosted repository snapshots via time-limited, view-only links. -

- {% if not user %} - - Sign in with Forgejo - - {% endif %} -
+
+
+

+ Secure repository sharing +

+

+ Myst +

+

+ Share pinned Forgejo repository snapshots through view-only links with expiration, + revocation, and audit visibility built in. +

+
+ {% if user %} + + Open dashboard + + {% else %} + + + + + Sign in with Forgejo + + {% endif %} + Time-limited. Read-only. Auditable. +
+
+
+
+
+

Vault activity

+

Repository snapshots

+
+ Protected +
+
+
+
+

infra/deployment

+

Pinned commit 9f2a1c8 · expires in 7 days

+
+ Active +
+
+
+

platform/secrets

+

Pinned commit a81dc40 · 14 views

+
+ Review +
+
+
+

audit/policies

+

Pinned commit 31e0b77 · revoked yesterday

+
+ Revoked +
+
+
+
{% endblock %}