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 @@ - -
- - -Welcome, {{ user.display_name or user.email }}!
- -Register a read:repository-scoped PAT to enable share link viewing.
You haven't created any share links yet.
- -Control plane
+Welcome, {{ user.display_name or user.email }}.
+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.
+
+ Register a read:repository-scoped PAT
+ to enable share link viewing.
+
Repository snapshots published from this account.
+| Repository | +Commit | +Status | +Views | +Expires | +
|---|---|---|---|---|
| You have not created any share links yet. | +||||
- Share self-hosted repository snapshots via time-limited, view-only links. -
- {% if not user %} - - Sign in with Forgejo - - {% endif %} -+ Secure repository sharing +
++ Share pinned Forgejo repository snapshots through view-only links with expiration, + revocation, and audit visibility built in. +
+Vault activity
+infra/deployment
+Pinned commit 9f2a1c8 · expires in 7 days
+platform/secrets
+Pinned commit a81dc40 · 14 views
+audit/policies
+Pinned commit 31e0b77 · revoked yesterday
+