Skip to content

Add ADR for Samples catalogue - #110

Merged
emmanuelmathot merged 4 commits into
v1from
feature/sample-sources
Sep 11, 2026
Merged

Add ADR for Samples catalogue#110
emmanuelmathot merged 4 commits into
v1from
feature/sample-sources

Conversation

@danielfdsilva

Copy link
Copy Markdown
Member

Contributes to #102

@emmanuelmathot Let me know what you think of this approach.

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice ADR, thx @danielfdsilva. I like the pagination-cursor reasoning. A few things worth resolving before merge in the inline comments.

providerIds?: string[]; // registry-only: restrict fan-out to these providers
}

interface SampleSourceProvider {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Naming still says "Sample*" despite the catalogue reframe**
docs/adr/0004-catalogue-provider-architecture.md:94

I personally prefer "Sample" wording but it can be the sub granule of a sample catalog.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was meant to be an example, but will update to look more final

Comment thread docs/adr/0004-catalogue-provider-architecture.md Outdated
Comment thread docs/adr/0004-catalogue-provider-architecture.md Outdated
- Good: the registry can drop a failing provider without affecting the others.
- Good: id namespacing (below) means an editor deep-link resolves with exactly one provider call, not a fan-out over every active provider.
- Bad: the catalogue UI cannot show one combined "page 3 of 47" across all sources. It must treat each provider as an independently-paginated section instead (see below).
- Bad: existing static-list consumers (`EditorPage`, `samples.tsx`, the landing page) move from synchronous access to hooks with a loading state.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fine to leave the hook design for the implementation PR, but let's make sure it's tracked as a follow-up so it doesn't disappear.

@emmanuelmathot emmanuelmathot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two suggestions to close out the remaining threads.

Comment thread docs/adr/0004-catalogue-provider-architecture.md Outdated
Comment thread docs/adr/0004-catalogue-provider-architecture.md Outdated
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
@emmanuelmathot
emmanuelmathot merged commit 7540b39 into v1 Sep 11, 2026
3 of 5 checks passed
@emmanuelmathot
emmanuelmathot deleted the feature/sample-sources branch September 11, 2026 13:34
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