Repository navigation
feat: per-component className allowances for DS046 - #541
Merged
Merged
Conversation
Also give the AGENTS block an MCP fallback. Refs #530
3 of 4 tasks
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
This fixes the two design-system-side defects that Nexo's first run of the #530 flow exposed (egdev6/nexo#92).
classNamecontracts. For example,SelectTiledocuments that its rootclassNamemay set width and column count (select-tile/types.ts:122), but DS046 flagged both properties (see Consumer request (nexo): two-option SelectTile in a single column on narrow panels #536). Those contracts existed only as prose.Changes:
9a61656(ui, system and prop-naming registry)@classNameAllows <css-property> …on a component's props type declares the CSS properties, beyond the base placement list, that itsclassNamemay set.components[].classNameAllowsindesign-system.json. The field is additive, soschemaVersionstays 1.0.0.SelectTileaddsgrid-template-columnsandTopBaraddsz-index. 23 ambiguous contracts are left untagged for owner review.types.tsfiles: stripping comments leaves the code unchanged. Following the registry rule ("even unrelated edits in an evidence file require renewed source review and explicit JSON revision updates"), 216source.revisionfields inskills/_shared/prop-naming.jsonwere refreshed. Nothing else changed: conventions, approvals, exceptions and usages are untouched.scripts/prop-naming.test.mjs:1597. No receipt file changed.4497e68(cli)classNameAllowsfrom the project's vendored@egdev/systemartifact. When the field is missing, or the artifact is missing or invalid, the base list applies and output is unchanged.@egdev/mcpover stdio, ordesign/system.md.06dacedrecords the verification in the ODD document.Validation
pnpm test:cli241/241pnpm test:props131/131pnpm test:system36/36pnpm props:check,pnpm artifact --check,pnpm system:check,pnpm typecheckandpnpm lintall passinit, and registry evidence) passed every contract and the risk:source.revision, and each value equals the current file hash.2e74b33: DS046 drops 8 → 6. Only the two false positives (SelectTilegrid-template-columns,Buttonwidth) disappear; the remaining six are real.pnpm test:mcphas one failure that also exists on the base: the@egdev/mcpREADME still says 0.2.0. It is untouched here.Delivery: apps get this after a release with minor bumps of
@egdev/systemand@egdev/cli. The new DS046 behavior needs the new artifact vendored.Linked issue
Refs #530