Skip to content

Give "position requires fixed dimensions" its own code (MEDUI-E054) - #20

Merged
AM-L merged 1 commit into
mainfrom
spec/e054-position-fixed-dims
Sep 7, 2026
Merged

AM-L merged 1 commit into
mainfrom
spec/e054-position-fixed-dims

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Contributor

Closes #2.

conformance/layout/position-requires-fixed/case.json asserted MEDUI-E051, registered as layout overflow. Its source is a Fill-width Label under position: — nothing overflows; the node's dimensions are not fixed. MEDUI-DEC-005 fixes a code's meaning, so an implementation reading the registry and one reading the case disagreed on what E051 means.

Registers MEDUI-E054 (layout) — positioned node without fixed dimensions — and repoints the case. spec/component-model.md now states the rule with its code and distinguishes it from E051.

This adds a conformance outcome → part of the 0.2.0 candidate line (#24).

Validation: python3 tools/validate.py → OK (18 cases, 25 diagnostics). Column verified against the fixture.

Stacked on #19.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The new diagnostic code is consistently registered and referenced across the spec and the conformance case, with pinned positions remaining coherent.

Pull request overview

Registers a dedicated diagnostic code for the “position requires fixed dimensions” rule to prevent conflating it with true layout overflow, aligning the spec registry, the normative rule text, and the conformance case.

Changes:

  • Add MEDUI-E054 to the diagnostic registry as “positioned node without fixed dimensions”.
  • Update the component model rule text to specify MEDUI-E054 for positioned nodes with Fill width/height and distinguish it from MEDUI-E051.
  • Repoint the position-requires-fixed conformance case to assert MEDUI-E054 instead of MEDUI-E051.
File summaries
File Description
spec/diagnostics.md Registers new diagnostic code MEDUI-E054 and its meaning in the canonical table.
spec/component-model.md States the normative rule with MEDUI-E054 and clarifies the distinction from MEDUI-E051.
conformance/layout/position-requires-fixed/case.json Updates the expected diagnostic code for the existing conformance case to MEDUI-E054.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AM-L
AM-L force-pushed the spec/e054-position-fixed-dims branch from 8d0d62c to e35782c Compare September 7, 2026 07:21
@ambroise-leclerc
ambroise-leclerc force-pushed the spec/e054-position-fixed-dims branch from e35782c to 6f056b4 Compare September 7, 2026 07:27
@AM-L
AM-L force-pushed the spec/e054-position-fixed-dims branch from 6f056b4 to a68962d Compare September 7, 2026 07:32
Base automatically changed from tooling/version-schema-id to main September 7, 2026 07:36
conformance/layout/position-requires-fixed asserted MEDUI-E051, registered as
layout overflow. Its source is a Fill-width Label under position: - nothing
overflows; the node's dimensions are not fixed. MEDUI-DEC-005 fixes a code's
meaning, so an implementation reading the registry and one reading the case
disagreed on what E051 means.

Register MEDUI-E054 (layout) for a positioned node without fixed dimensions and
repoint the case. spec/component-model.md now states the rule with its code and
distinguishes it from E051.
@AM-L
AM-L force-pushed the spec/e054-position-fixed-dims branch from a68962d to 1236216 Compare September 7, 2026 07:36
@AM-L
AM-L merged commit dc897a7 into main Sep 7, 2026
2 checks passed
@AM-L
AM-L deleted the spec/e054-position-fixed-dims branch September 7, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

position-requires-fixed has no code of its own and its case asserts E051 (layout overflow)

3 participants