Skip to content

feat: compile default feature catalog into binary, auto-seed on startup - #6

Merged
jabbott-iii merged 2 commits into
mainfrom
copilot/replace-csv-feature-seeding
Aug 28, 2026
Merged

feat: compile default feature catalog into binary, auto-seed on startup#6
jabbott-iii merged 2 commits into
mainfrom
copilot/replace-csv-feature-seeding

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

table.csv was required at runtime for the feature catalog to populate — end users had to manually run rete features seed --file table.csv or the TUI/features list showed nothing.

Changes

  • internal/feature_catalog.go — new file with DefaultFeatureCatalog (all 23 entries as a []CatalogEntry), SeedDefaultFeatures (idempotent upsert of every entry), and EnsureDefaultFeatures (no-ops if catalog already populated).
  • main.go — calls EnsureDefaultFeatures at startup; fresh databases are seeded automatically.
  • internal/logic-cli.gofeatures seed now requires --file (no default path), re-scoped to admin/custom CSV imports. Empty-catalog message no longer references table.csv.
  • internal/database.go / ui-form.go — removed stale table.csv references from comments and help text.
  • README.md — features section updated; table.csv no longer described as a prerequisite.
  • internal/feature_catalog_test.go — new tests covering seeding, idempotency (EnsureDefaultFeatures no-ops on a populated DB), and category count.

Co-authored-by: jabbott-iii <84321953+jabbott-iii@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace runtime CSV-based feature seeding with Go-defined catalog feat: compile default feature catalog into binary, auto-seed on startup Aug 27, 2026
Copilot AI requested a review from jabbott-iii August 27, 2026 23:54

@jabbott-iii jabbott-iii left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File modifications are in-scope and efficiently implemented.

@jabbott-iii
jabbott-iii marked this pull request as ready for review August 28, 2026 00:00
@jabbott-iii
jabbott-iii merged commit 0511a03 into main Aug 28, 2026
5 checks passed
@jabbott-iii
jabbott-iii deleted the copilot/replace-csv-feature-seeding branch August 28, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants