Add packages/pretui with the Pret UI pilot components - #6208
Open
richardhjtan wants to merge 3 commits into
Open
richardhjtan wants to merge 3 commits into
richardhjtan wants to merge 3 commits into
Conversation
Pret UI is consumed from one monorepo directory by two consumers through one import spelling, `@cardstack/pretui/components/button`: the host as a pnpm workspace dependency whose package.json#exports maps every subpath to its .gts source, and cards through the realm the realm-server serves from the same directory. This first batch carries Button, IconButton, Switch, Checkbox and the shared pretui-primitives module, with each component's write-up and Spec instance. The usage and example pages depend on the kit-wide freestyle scaffolding and move with it in a later batch. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
Host Test Results 1 files ±0 1 suites ±0 2h 10m 20s ⏱️ + 3m 31s Results for commit 881715c. ± Comparison against earlier commit f1d467a. Realm Server Test Results 1 files ±0 244 suites ±0 1h 20m 11s ⏱️ - 4m 26s Results for commit 881715c. ± Comparison against earlier commit f1d467a. |
Spec cards for Pret UI components live in the catalog realm only, so the package carries none. The component headers and inline notes now state the current contract without the kit-wide context they were written in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comments and test names in packages/pretui state what an alias does for the component's own contract rather than which library's vocabulary it mirrors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
richardhjtan
marked this pull request as ready for review
September 21, 2026 05:48
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Adds
packages/pretui, a directory that is both a pnpm workspace package and a realm, holding the first batch of Pret UI components: Button, IconButton, Switch, Checkbox and the sharedpretui-primitivesmodule, each with its write-up.Both consumers resolve one spelling,
@cardstack/pretui/components/button. The host takes it as a workspace dependency:package.json#exportsmaps every subpath to its.gtssource, so Vite compiles imported components into the bundle per file and nothing else ships. Cards take it through the realm the realm-server serves from this same directory, so the index tracks the dependency and importers reindex when a component changes. There is no build step, no dist and no externals shim.The package follows boxel-ui's dev shape (v2 addon metadata, addon-main shim) and experiments-realm's realm shape (
realm.json,index.json,*.test.gtsalongside the source). Spec cards live in the catalog realm only, so none are here. Usage and example pages are not in this batch; they depend on the kit-wide freestyle scaffolding and move with it.Host consumption, realm-server wiring, the experiments-realm proof card, catalog Specs and the touch-gated CI job follow in their own PRs.
Verified:
pnpm lintinpackages/pretui(ember-template-lint + ember-tsc, test file included) passes, andpnpm install --frozen-lockfilesucceeds.🤖 Generated with Claude Code