Repository navigation
Leaner agent bundles, settings and page slices, show classes only inside their breakpoint - #245
Merged
Merged
Conversation
Flex and Grid emit a show class only under a wider hide, which already
covers the wider widths, so the base rule only did harm:
l={{ hide: true }} s={{ hide: false }} stayed hidden above l.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNHpynr3DB5GWLbBGiBSFz
…entedControl in page Breakpoint prop keys collapse families (padding*) and IconName is a plain word list, about 3% smaller per bundle. The settings bundle carries Table and NavItem, and page.md carries Switch and SegmentedControl, the slices the settings and onboarding dry-run tasks opened after the bundle. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WNHpynr3DB5GWLbBGiBSFz
In the dry run a listing of app/ before reading layout.tsx cost a turn that re-sent the 10-12k token bundle. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WNHpynr3DB5GWLbBGiBSFz
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Merged
30 tasks done
lorant-one
pushed a commit
that referenced
this pull request
Oct 20, 2026
Main's fixes are carried into 3.0's props rather than taken as written:
- Breakpoint show classes only under a wider hide (Flex, Grid), sizes take
"auto" and "fit", Text and Heading take s={{ hide }} (#226, #245).
- ThemeInit/ThemeProvider: defaultTheme and exact scheme scales beside 3.0's
density (#246). Kbar's trigger is optional.
- AI harness: main's leaner bundle writer (grouped props, word-list types)
with 3.0's mixin and key-diff compression; gotchas keep 3.0's wording and
take main's inRules flags; the app-shell task and app starter, codemodded.
- FileTree follows the state contract: onExpandChange is onExpandedIdsChange
(codemod entry), onSelectedIdChange is new, onSelect stays the action.
- Main's new native components (#224) take 3.0's props (textVariant,
aria-label, onValueChange, onPageChange) and point units: their rem
defaults are written as "Nrem". Native docs pages say points, not rem.
- Effects and Swiper fixes ported to their 3.0 homes (packages/fx,
Carousel/SnapCarousel).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
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.
Requested by Lorant · project thread
Before: after core#226, an agent still spent an extra turn on most tasks. It listed
app/before readinglayout.tsx, which re-sent a 10-12k token bundle. A settings page opened the Table and NavItem slices after the settings bundle, and an onboarding form opened Switch and SegmentedControl afterpage.md. Every bundle spelled out IconName and the breakpoint prop keys as long TypeScript unions. A breakpoint show class (s-flex-show) also carried a basedisplay: none, sol={{ hide: true }} s={{ hide: false }}stayed hidden abovel.After: AGENTS.md tells agents to open project files by path. The settings bundle carries Table and NavItem, and
page.mdcarries Switch and SegmentedControl. IconName and the breakpoint keys are plain word lists, about 3% smaller per bundle. A show class has a rule only inside its own media query.An internal dry run covered the eight pre-registered Lumen v2 tasks, 3 replicates each. It is a simulation, not a benchmark result. On this branch every task's median run took 3 model calls. Once UI's token total went from about 1.21x shadcn/ui's (after core#226) to about 0.90x. First-try gate passes were 23 of 24, and the one failure was a made-up
betweenprop on Row.How:
scripts/generate-ai-spec.js:GridBreakpointProps/FlexBreakpointPropsrender as a comment listing the keys, with families collapsed (padding*).page.mdgets its own components, and its AGENTS.md row says so.ai/tasks/settings.json: adds Table and NavItem.AGENTS.md: open project files by path, because a folder listing costs a turn.packages/foundations/scripts/generate-utilities.mjs: no base rule for-flex-show/-grid-show. The JS guard from core#226 still emits them only where a wider breakpoint hides the element. Generated SCSS regenerated, with a foundations test.Checks:
lint:gatepasses.check:docspasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01WNHpynr3DB5GWLbBGiBSFz