Repository navigation
feat(contracts,core-ts): collection registry (RFC-0040 step 1) - #84
Merged
Merged
Conversation
…-0040 step 1) CollectionSettings gains optional labels (singular/plural per locale), icon, feed, sitemap and sort; Site.collections allows at most 50 keys. SiteGraphStore.listCollections returns declared collections, those inferred from entries, and posts, with counts per status (one grouped query). @cloudhal/core-ts/collections adds collectionRegistry, isRegistered, collectionLabel and collectionSettings. No behaviour change; no migration. Refs #71 (RFC-0040, ADR-0042) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
Madraka
enabled auto-merge
October 22, 2026 19:05
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
This was referenced Oct 22, 2026
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.
RFC-0040 / ADR-0042, step 1 of 4: the contract and the read-only registry. No behaviour change.
CollectionSettingsgains optional fieldslabels(per locale,{singular, plural, description?}),icon(a name slug, ≤ 40 chars),feed,sitemapandsort(newest|oldest|title).Site.collectionsallows at most 50 keys. Fixtures added: 1 valid, 4 invalid. Ranpnpm genfor TS and Rust;cargo testpasses.SiteGraphStore.listCollections(siteId)returns the declared keys, collections inferred from entries, andposts, each with counts per status, from one grouped query.store.tskeeps its size baseline: the menu dry-run return was compacted.@cloudhal/core-ts/collections(Worker-safe) addscollectionRegistry,isRegistered,collectionLabelandcollectionSettings.test/collections.test.ts. The store suitetesting-collections.tsruns on sqlite, D1 and DO. Results:EADDRNOTAVAILbecause the local machine ran out of ephemeral ports (about 16k sockets in TIME_WAIT). Not related to this change; CI runs them.Next: step 2 (store invariants, API routes, renderer feed/sitemap).
Refs #71
🤖 Generated with Claude Code