feat(cli): move XLE app components to experimental.xle.components config#3275
Merged
ejhammond merged 1 commit intoJun 30, 2026
Merged
Conversation
Register app-local XLE components through the validated config under
experimental.xle.components (object form: { from, description?, default? })
instead of the previous unvalidated layout.components read. The raw-read
shim and its special cwd-first config lookup are removed; XLE now resolves
the config via loadConfig, consistent with the rest of the CLI.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
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.
Summary
Moves XLE app-component registration into the validated Astryx config under a new
experimental.xle.componentsfield, replacing the previous unvalidated raw-read oflayout.components.Authors register app-local components so XLE layout expressions can reference them by name via
{hint}:{kpi-card}then expands toimport {KpiCard} from '@/components/KpiCard'and<KpiCard />.What changed
experimental.xle.components(Record<string, XleComponent>) toAstryxConfig, plus an exportedXleComponentinterface ({ from, description?, default? }).XleComponentSchemaand theexperimental.xle.componentsbranch to the strict config schema. Unknown keys still error; the component shape is object-only (the old string shorthand now throws).loadConfigpassesexperimentalthrough.loadConfig, using the same standard sibling-of-nearest-package.jsonresolution as the rest of the CLI.layout grammarhelp text to document the new config shape.Tests
experimental.xle.componentsobject shape.experimental/experimental.xle/ a component; and the string shorthand now throwing.Full CLI suite green (1560 tests).