Repository navigation
feat(api): add read-only Web Dashboard & Portal Overlay (fixes #21) - #112
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the read-only Web Dashboard & Portal Overlay (fixes #21), providing browser-based exploration of Project Workspaces, interactive Tech Tree DAGs, Kanban boards, and Table Matrix views while enforcing Discord server RBAC and deep-linking directly back into Discord for mutations.
Key Changes
src/domain/models.py):discord_jump_url(https://discord.com/channels/...) anddiscord_app_url(discord://-/channels/...) helpers onProjectandTask(linking directly to the Thread Workspace and starter Task Action Card, with graceful fallback to the Project Forum Channel).src/adapters/api/session.py,src/adapters/api/auth_routes.py,src/adapters/api/dependencies.py):/auth/login,/auth/callback,/auth/logout, and/api/meusing Discord OAuth2 (identifyscope) and HMAC-SHA256 signed HTTP-only cookies (dgg_pm_session), with liveActorPrincipalhydration viaDiscordMemberDirectoryand a zero-config local development fallback.AuthService.can_view_project(src/services/auth_service.py) to authorize designatedGuildLeadUserandGuildLeadRoleprincipals alongside Server Managers, Project Leads, and Squad members.src/adapters/api/dashboard_routes.py):GET /api/projects: RBAC-filtered project roster with completion, active, and overdue metrics.GET /api/projects/{project_id}/workspace: Enriched tasks, readiness states, prerequisites/dependents, squads, filters, permissions envelope, and Discord deep-links.GET /api/projects/{project_id}/tech-tree: Full DAG payload (nodes,edges,critical_path,bottlenecks,metrics) powered bydomain.tech_tree.analyze_tech_tree().src/adapters/api/static/):LR/TBorientation toggle, critical path highlight, bottleneck banner, and slide-out Node Inspector).Discord App/Web Browsertoggle: Persisted inlocalStorage, dynamically switching all project and task deep-links betweendiscord://andhttps://discord.com.Verification
make check(ruff check,ruff format --check, and536 passedunit/integration/architectural tests includingtests/test_web_dashboard_api.pyandtests/test_auth_service.py)openspec validate --specs(5 passed, 0 failed)http://localhost:8000/dashboard