feat: add demo subcommand with seeded test data #12

Merged
lerko merged 1 commits from feat/demo-command into develop 2026-05-16 17:15:17 +00:00
Owner

Summary

  • Adds nib demo subcommand that starts server with pre-populated temp DB
  • testdata/demo.json fixture covers all glyphs, all card types, tags, pins, completions, soft-deletes, and ${...} template fill placeholders
  • Real DB untouched — uses temp dir, printed on start

Test plan

  • go run . demo seeds 20 entities and serves on :4444
  • Stream view shows fluid entities
  • Cards view shows all 5 card types across grab/read/fill tabs
  • Fill tab shows 3 template cards
  • Tags sidebar populated
  • Pinned items appear pinned
  • Deleted item hidden from default list
## Summary - Adds `nib demo` subcommand that starts server with pre-populated temp DB - `testdata/demo.json` fixture covers all glyphs, all card types, tags, pins, completions, soft-deletes, and ${...} template fill placeholders - Real DB untouched — uses temp dir, printed on start ## Test plan - [ ] `go run . demo` seeds 20 entities and serves on :4444 - [ ] Stream view shows fluid entities - [ ] Cards view shows all 5 card types across grab/read/fill tabs - [ ] Fill tab shows 3 template cards - [ ] Tags sidebar populated - [ ] Pinned items appear pinned - [ ] Deleted item hidden from default list
lerko added 1 commit 2026-05-16 17:14:25 +00:00
nib demo starts server with temp DB populated from testdata/demo.json.
Covers all glyphs, card types, tags, pins, completions, deletes, and
template fill placeholders.
lerko merged commit 13cb7b420e into develop 2026-05-16 17:15:17 +00:00
lerko deleted branch feat/demo-command 2026-05-16 17:15:17 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lerko/nib-v1#12