Feat/desktop starter templates#272
Merged
Merged
Conversation
Desktop starts with an empty DB, so the dashboard picker fell back to hardcoded placeholder cards that all created a blank dashboard (templates are otherwise a cloud-only, user-submitted feature). Seed three real starter templates — Agentic Coding (Claude Code terminal + intro note), Automation (shell + note), Documentation (note + todo) — from /init-db. Gated to desktop (SURFACE_TOKEN is set only by the desktop app) and seeded once per DB via a schema_migrations marker, so it's a no-op on cloud and a user who deletes them isn't re-seeded. Verified live: GET /templates returns the three and creating a dashboard from one populates the real blocks (not blank). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014t8Ukp4NPWtqJ55X261wMZ
Replace the hand-made starter templates with verbatim copies of the curated prod templates — Council of Experts, Code and Review, Agents Chess — pulled from the production D1. Their blocks/edges/viewport live in starter-templates.json; seedStarterTemplates now inserts from it (bumped to the v2 marker, which also drops the old hand-made starter ids so an already-seeded desktop DB is upgraded). Verified live: /init-db seeds the three; creating a dashboard from Council of Experts populates the real prompt→multi-LLM layout with edges + viewport. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014t8Ukp4NPWtqJ55X261wMZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.