ZTatman
e3ead49f13
refactor(web): add Forgejo service + token encryption modules
...
Centralize all Forgejo HTTP in app/services/forgejo.py (get/post +
authorize_url/exchange_code/fetch_user, typed ForgejoError, defensive
base-URL join). Centralize credential encryption in app/auth/tokens.py
(decrypt_pat/set_pat, set_client_secret/decrypt_client_secret) so the
get_fernet()+crypto+column pattern no longer leaks into routers.
auth/settings/setup now delegate to these modules; the duplicated
client-secret encrypt block and per-call httpx clients are gone.
2026-06-10 17:03:10 -04:00
200226015e
[codex] Update boilerplate UI design system ( #12 )
...
* feat(web): Jinja2 + HTMX + Pico CSS boilerplate
- Add jinja2, aiofiles, jinja2-fragments, python-multipart deps
- Wire up Jinja2Blocks (jinja2-fragments) and static file serving
- Create base.html (Pico Jade theme, HTMX, nav with auth state)
- Create index.html (landing) and dashboard.html (user profile)
- Add get_optional_session dependency for anonymous template context
- Refactor get_current_session to share session lookup logic
* feat(web): replace Pico CSS with Tailwind standalone CLI (dark+pink theme)
- Download Tailwind v4.3.0 standalone CLI binary (gitignored)
- Define custom dark+pink theme tokens in input.css
- Add dev.sh for parallel Tailwind watcher + uvicorn
- Update Dockerfile to build Tailwind during image build
- Update templates with Tailwind utility classes
- Generate minified output.css at build time
* Update boilerplate UI design system
* Refine Forgejo sign-in button
* feat(ui): adjust starting ui template html structure and theme styling
* refactor(ui): normalize Tailwind design tokens
* refactor(ui): fix Forgejo token input styling and validation styling
* refactor(ui): move panel titles and sub titles outside panels
* refactor(ui): vendor forgejo logo svg from /web/static/img
2026-05-26 22:50:25 -04:00