Repository navigation
feat(cli): build starts a plain page from its family's default - #7276
Closed
josephfarina wants to merge 3 commits into
Closed
josephfarina wants to merge 3 commits into
josephfarina wants to merge 3 commits into
Conversation
A page template can now say it's the default start for its family with `isFamilyDefault`. The family is the category text before " - ". The filterable table and the analytics dashboard declare it. When build would start from a page in a family that has a default, it starts from the default, unless the idea names what that page is built for. That means a word from its own variant or display name, or a keyword no other page in the family has, or two words of the idea the page matches and the default doesn't. The page that got displaced leads the alternatives. Parts, edits, and app-shell starts don't change. Integrations can declare a default for their own family or stand in for ours. An integration page that sets the field needs CLI 0.6.8. AST-048 gets FR23, FR24 and DEC-10 (proposed).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report
No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression44 of 448 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 24 more. Generated by PR Enrichment workflow | View full report |
0.6.8 and 0.7.0 shipped without this change, and both still reject `isFamilyDefault` and drop that page. So the floor moves to 0.7.1, the next release after the 0.7 cut. The floor table row, the tests and the docs move with it.
This was referenced Oct 14, 2026
Contributor
Author
|
Superseded by the build refactor (#7752); family defaults can return as a build tree branch. |
This branch was successfully deployed
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.
User need
When someone asks
astryx buildfor a plain table, like "orders table with customer, total and status", they should start from the table page that already does what most tables need. That's the filterable table. It has search, filter chips, saved views, bulk actions and a detail panel. Right now the start for an idea like that depends on incidental words. The same kind of ask lands on the grouped table, the searchable table or the collapsible multi-table page. Each of those is built for one specific job, and if you didn't ask for that job you have to strip it out.Problem and solution fit
Table - Filtering,Dashboard - Monitoring). Build reads the text before the spaced hyphen as the family.isFamilyDefault. The filterable table and the analytics dashboard declare it. There's no list of defaults in build.Current specification
spec:AST-048owns what build starts from. I added FR23 (family first), FR24 (one default per family, declared by the template) and DEC-10, with the decider markedjosephfarina (proposed). The field is also inarchitecture:template-authoring's field table.Public delta and caller burden
isFamilyDefault: boolean. It needs acategory. An integration page that sets it needs@astryxdesign/cli0.7.1 or later, andintegration verifyreportsfamily_default_needs_cliif the package's CLI range lets in an older one. Published 0.6.8 and 0.7.0 drop a page that sets the field and keep the rest of the package.astryx buildkeeps its JSON shape. For a plain idea in a family with a default,startis the default,start.reasonsays why ("The Table family's default page: the idea names nothingtable-pageis built for."), and the displaced page isstart.alternatives[0].Some made-up ideas, before and after:
One existing build test expected
dashboard-scorecardfor "a weekly report of sales by region". It now expectsdashboard, since a plain report doesn't name anything the scorecard is built for.Compatibility
Compatible, so the changeset is a patch
[feat]. No released consumer has to change.astryx buildkeeps its JSON shape. Which template is the start and which are the alternatives are ranking values, andspec:AST-048FR11 and DEC-5 let a ranking change move them. Catalog values aren't stable identifiers either (spec:AST-017FR10, FR11).isFamilyDefaultis a new optional field, so it only widens what a page template doc accepts (spec:AST-017FR5).template --list --jsondoesn't change.integration verifyreportsfamily_default_needs_clionly for a package that sets the new field, so no existing package starts failing. No package's CLI range changes.check:changesetspasses. The CLI floor is 0.7.1, the next release after 0.7.0, since 0.7.0 shipped without this change.Design and alternatives
See DEC-10. I didn't go with a default picked by ranking or kept in build's own code, because it drifts from the templates and an integration can't change it. I also didn't move the start to another family just because the idea's first words name it.
Evidence
integration verifyand CLI floor tests for the new field.Scope
Testing
pnpm vitest run --project node packages/clion this branch merged with current main. 392 files and 6284 tests pass, with the 2 expected failures. The same run on main on the same box passes too.typecheck:json-api,typecheck:authoring,typecheck:template-docs,check:knowledge,check:changesets,check:cli-structure,readme:check, eslint on the changed paths andcli-api-types-verifyall pass.isFamilyDefaultand keep the rest of the package. I checked both with a fixture integration.Writing rubric results
Rejected:line covering a default kept outside the templates and moving the start to another family by its first words.