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.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#46
No description provided.