From 03ecda9ef5d5c7ab9fcc32573acbd4037e6b9db5 Mon Sep 17 00:00:00 2001 From: ZTatman Date: Sat, 18 Jul 2026 14:20:04 -0400 Subject: [PATCH] chore(web): checkpoint in-progress backend and tooling work MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parks uncommitted work off the now-merged design branch: router/service tweaks (dashboard, settings, forgejo), dev.sh, dependency bumps, agents.md notes, editor settings, a .playwright-mcp ignore, and the .claude/launch.json dev-server config. Checkpoint only — not yet reviewed. Co-Authored-By: Claude Opus 4.8 --- .claude/launch.json | 17 ++++++++++ .gitignore | 3 ++ .vscode/settings.json | 15 +++++++- agents.md | 66 ++++++++++++++++++++++++++++++++++++ package.json | 3 +- pnpm-lock.yaml | 11 ++++-- web/app/routers/dashboard.py | 46 ++++++++++++++++++++----- web/app/routers/settings.py | 1 + web/app/services/forgejo.py | 24 +++++++++++-- web/dev.sh | 58 ++++++++++++++++++++----------- 10 files changed, 210 insertions(+), 34 deletions(-) create mode 100644 .claude/launch.json diff --git a/.claude/launch.json b/.claude/launch.json new file mode 100644 index 0000000..13a8c5c --- /dev/null +++ b/.claude/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.0.1", + "configurations": [ + { + "name": "firebreak", + "runtimeExecutable": "bash", + "runtimeArgs": ["web/dev.sh"], + "port": 8000 + }, + { + "name": "firebreak-watch", + "runtimeExecutable": "bash", + "runtimeArgs": ["web/dev.sh", "--watch"], + "port": 8000 + } + ] +} diff --git a/.gitignore b/.gitignore index d88b3ae..3585faa 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ web/*.py[cod] # Tailwind standalone CLI web/tailwindcss web/app/static/css/output.css + +# Playwright/preview MCP scratch output +.playwright-mcp/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 60ce007..d5a73c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,18 @@ { "css.lint.unknownAtRules": "ignore", + "files.associations": { + "*.css": "tailwindcss" + }, + "tailwindCSS.experimental.configFile": { + "web/app/static/css/input.css": "web/app/templates/**/*.html" + }, + "tailwindCSS.includeLanguages": { + "jinja-html": "html", + "django-html": "html" + }, + "editor.quickSuggestions": { + "strings": "on" + }, "python.defaultInterpreterPath": "${workspaceFolder}/web/.venv/bin/python", "python.analysis.typeCheckingMode": "off", "mypy-type-checker.importStrategy": "fromEnvironment", @@ -10,4 +23,4 @@ "pyproject.toml", "--show-error-codes" ] -} +} \ No newline at end of file diff --git a/agents.md b/agents.md index 2089ba3..bb2fb10 100644 --- a/agents.md +++ b/agents.md @@ -128,6 +128,12 @@ This file is the single source of truth for codebase obstacles, oddities, and th **Solution/Workaround:** Give the header brand link a stable `brand-link` class, prevent inherited SVG strokes on `.brand-link svg`, and override only the hardcoded wordmark fill in dark contexts or forced-dark page headers. **Preference:** Scope icon stroke rules to nav icons; do not apply broad `header svg` stroke styles. +### Header navigation uses logo-only brand and account menu +**Area:** web/app/templates/base.html, web/app/static/css/input.css +**Obstacle:** The desktop header crowded narrow screens when the Firebreak wordmark, Dashboard, Settings, and Logout all competed for the same row. +**Solution/Workaround:** Keep the header logo-only, expose Dashboard as the lone primary nav item, and put account actions in an Alpine-controlled avatar dropdown. Use a real `