Repository navigation
feat(TreeList): add variant prop (lineGuides | noGuides) - #4334
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
July 25, 2026 23:02
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsTreeList · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
marked this pull request as ready for review
July 26, 2026 04:15
cixzhang
requested review from
ejhammond,
imdreamrunner and
josephfarina
as code owners
July 26, 2026 04:15
AKnassa
added a commit
to AKnassa/astryx
that referenced
this pull request
Aug 27, 2026
Conflicts: TreeList.tsx, TreeListItem.tsx, TreeListTypes.ts, index.ts — resolved as a union of main's TreeListVariant / Icon-rendered chevron / flush-leaf column logic (meta#4838, meta#4540, meta#4530, meta#4334) and this branch's renderExpandIcon. A leaf that renders its own indicator no longer reserves the chevron column. The four alignment tests now read the published --_tree-indent custom property instead of the removed inline marginLeft.
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.
Adds a
variantprop toTreeListfor selecting the base hierarchy guide-line look. Resolves #4333 (API reviewed/approved).API
variant?: TreeListVariantonTreeListProps,@default 'lineGuides'.AppShellVariant):TreeListVariantMap.'lineGuides'(default) — the connector guide lines as they render today.'noGuides'— hides the connector lines; indentation is preserved (indent-only nesting).Orthogonal to
density—variantcontrols only guide-line visibility,densityowns spacing; the two compose. The guides stay themeable via the existingastryx-tree-list-guidetarget regardless of variant.Why / What / Risk / Testing
variantfromTreeListdown toTreeListItem(same direct-prop mechanism asdensity); fornoGuides, the connector element (TreeListBranches) is simply not rendered. Indentation is unaffected because it lives on the row'smarginLeft, not on the guide element.'lineGuides') is pixel-identical to current output — the guide render path is untouched.noGuidesrenders no.astryx-tree-list-guideelement while preserving rows/roles/structure and per-level indentation, andlineGuides== default. Storybook gainsVariants(side-by-side) andNoGuidesstories. Green:pnpm build,@astryxdesign/core+@astryxdesign/storybooktypecheck,pnpm vitest run TreeList themingTargets(339 passed, themingTargets guard green — no new target needed), lint clean.