Skip to content

fix: render an empty dashboard when no projects exist - #6

Merged
Mike-7777777 merged 2 commits into
mainfrom
fix/empty-project-dashboard
Sep 10, 2026
Merged

fix: render an empty dashboard when no projects exist#6
Mike-7777777 merged 2 commits into
mainfrom
fix/empty-project-dashboard

Conversation

@Mike-7777777

Copy link
Copy Markdown
Collaborator

What changes

python src/generate_project_dashboard.py --all now generates the existing overview with 0 projects when data/projects/ does not exist. It does not create an unused projects directory.

Why

A fresh checkout has no projects directory. Unconditionally iterating over that path raised FileNotFoundError before the existing empty-overview renderer could run. The fix handles the missing directory at the enumeration boundary. A non-directory path still raises an error, and --only still rejects unknown project names.

Validation

  • Added four regression cases covering missing and empty project directories, an unknown filter with no projects directory, and a projects path that is a regular file. The two missing-directory cases failed before the fix; all four now pass.
  • Ran the documented command on a checkout with no projects directory: it exits successfully and reports 0 projects. Inspected the generated page in a browser and confirmed its empty overview renders correctly.
  • The full offline Python suite, Ruff, compilation, model-reference checks, configuration projection, secret scan, release-tree check, and public-knowledge check pass locally.
  • Code review found no actionable defects. No model credentials or paid calls were needed.

Scope check

  • One issue and one independently reviewable change.
  • Existing populated-project, filtering, and path-boundary tests remain green.
  • No unrelated changes, generated pages, or credentials are committed.
  • Checked open PRs before implementation; no overlapping PR was present.

Fixes #2

@Mike-7777777 Mike-7777777 added the bug Something isn't working label Sep 10, 2026
@cursor

cursor Bot commented Sep 10, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@cursor

cursor Bot commented Sep 10, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@Mike-7777777
Mike-7777777 merged commit 0fa9a93 into main Sep 10, 2026
8 checks passed
@Mike-7777777
Mike-7777777 deleted the fix/empty-project-dashboard branch September 10, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate_project_dashboard.py --all fails with FileNotFoundError when no projects exist

1 participant