diff --git a/modules/rcal/mod.ts b/modules/rcal/mod.ts index c67b482..7c87e65 100644 --- a/modules/rcal/mod.ts +++ b/modules/rcal/mod.ts @@ -842,6 +842,8 @@ routes.get("/api/context/:tool", async (c) => { routes.get("/", (c) => { const space = c.req.param("space") || "demo"; const dataSpace = c.get("effectiveSpace") || space; + // Seed sample data for any space that has no events yet + seedDemoIfEmpty(dataSpace); return c.html(renderShell({ title: `${space} — Calendar | rSpace`, moduleId: "rcal", diff --git a/server/spaces.ts b/server/spaces.ts index e3001e3..d7e7301 100644 --- a/server/spaces.ts +++ b/server/spaces.ts @@ -176,6 +176,17 @@ export async function createSpace(opts: CreateSpaceOpts): Promise