Skip to content

Commit be82d8a

Browse files
gatewayclaude
andcommitted
Generate the starting dashboard during setup so a fresh clone never 404s
A fresh clone had no index.html or outputs/, so the first `npm run serve` showed "Not found" at /. Setup now runs plan:list-dashboard at the end, and the zero-plans overview tells new users how to create their first plan. Verified end-to-end with a clean clone: setup, serve, HTTP 200, empty state with the create-first-plan hint. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9ee57d7 commit be82d8a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎scripts/setup-local.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ run(venvPython, ["-m", "pip", "install", "-r", requirements]);
8080

8181
await writeEnv();
8282

83+
// Generate the plan-list dashboard and app index so a fresh clone's first
84+
// `npm run serve` shows the empty-state page instead of a 404.
85+
console.log("Generating the starting dashboard...");
86+
run("node", [path.join("src", "cli.js"), "plan:list-dashboard"]);
87+
8388
console.log("");
8489
console.log("Local setup complete.");
8590
console.log("Next steps:");

‎src/plan-list-overview.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import { renderPriceTrendFragment } from "./dashboard-price-history.js";
1212
// Owns plan-list overview analysis and its compact decision/date-scan presentation.
1313
export function renderOverview(activePlans, dashboardPrefix) {
1414
if (!activePlans.length) {
15-
return `<section id="overview"><h2>Overview</h2><p class="sub">No active plans right now. Archived or past-date plans stay available below.</p></section>`;
15+
return `<section id="overview"><h2>Overview</h2>
16+
<p class="sub">No active plans right now. Archived or past-date plans stay available below.</p>
17+
<p class="sub">Create your first plan from the project folder with <code>npm run plan:new -- "One-way from Seattle to Tokyo around October 10, plus or minus 2 days"</code>, or ask your assistant with the flight-plan-riffer skill. Then refresh it and this page fills in.</p>
18+
</section>`;
1619
}
1720
return `<section id="overview">
1821
<h2>Overview</h2>

0 commit comments

Comments
 (0)