Skip to content

feat: add static Next.js dashboard#369

Open
manojbajaj95 wants to merge 3 commits into
mainfrom
feature/nextjs-static-ui
Open

feat: add static Next.js dashboard#369
manojbajaj95 wants to merge 3 commits into
mainfrom
feature/nextjs-static-ui

Conversation

@manojbajaj95
Copy link
Copy Markdown
Collaborator

@manojbajaj95 manojbajaj95 commented Jun 1, 2026

Summary

  • scaffold a top-level Next.js/shadcn static-export app under ui/
  • mount the exported UI at the daemon root / and package build output under authsome.ui.web
  • use SWR against existing daemon routes (/whoami, /connections, /audit/events) instead of adding /api/dashboard
  • remove authsome ui open and the old hooked-up static JS
  • remove the legacy server-rendered dashboard routes, src/authsome/ui/templates, and src/authsome/ui/static
  • route dashboard provider login forms through /auth/providers/{provider_name}/connect
  • wire UI build/lint into CI and publish workflows

Verification

  • ./scripts/build-ui.sh
  • uv run pnpm --dir ui lint
  • uv run ruff check src/ tests/
  • uv run ty check src/
  • uv run pytest tests/server/test_ui_dashboard.py tests/server/test_ui_sessions.py tests/proxy/test_proxy.py
  • uv run pytest
  • uv run pre-commit run --all-files
  • uv build
  • git diff --check

Refs #364

Mount the exported dashboard at the daemon root, build it into the Python package, and use existing daemon endpoints for SWR data fetching.
Delete the server-rendered dashboard pages, remove the static asset mount, and route the Next dashboard provider login form through the browser-session auth path.
# Conflicts:
#	src/authsome/server/routes/audit.py
#	src/authsome/server/routes/connections.py
#	src/authsome/server/routes/health.py
#	src/authsome/server/routes/ui.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant