Serve dashboard independently of process working directory #46

Closed
opened 2026-08-05 22:16:41 +00:00 by rockachopa · 0 comments
Member

Reproduction

  1. Import src.views.
  2. Change the process working directory outside the repository.
  3. Call dashboard().

The route raises FileNotFoundError because it opens frontend/index.html relative to the caller's current directory. Production launchers should not need a repository-root working directory merely to render the dashboard.

Acceptance criteria

  • Resolve the frontend file relative to the application module/repository, not process CWD.
  • Add a behavioral regression test that renders the dashboard after changing CWD.
  • Full test suite and Gitea Actions pass.
## Reproduction 1. Import `src.views`. 2. Change the process working directory outside the repository. 3. Call `dashboard()`. The route raises `FileNotFoundError` because it opens `frontend/index.html` relative to the caller's current directory. Production launchers should not need a repository-root working directory merely to render the dashboard. ## Acceptance criteria - Resolve the frontend file relative to the application module/repository, not process CWD. - Add a behavioral regression test that renders the dashboard after changing CWD. - Full test suite and Gitea Actions pass.
timmy was assigned by rockachopa 2026-08-05 22:16:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#46