@canonical/design-system 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/data/apps/pattern/data_views.ttl +85 -0
  2. package/data/apps/pattern/datatable.ttl +3 -73
  3. package/data/apps/pattern/page_header.ttl +50 -5
  4. package/data/apps/subcomponent/data_table-action_bar.ttl +2 -2
  5. package/data/apps/subcomponent/data_table-pagination_bar.ttl +2 -2
  6. package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
  7. package/data/apps/subcomponent/data_views-filters.ttl +13 -0
  8. package/data/apps/subcomponent/data_views-saved_views.ttl +13 -0
  9. package/data/apps/subcomponent/data_views-sort_panel.ttl +13 -0
  10. package/data/apps/subcomponent/side_panel-footer.ttl +1 -1
  11. package/data/apps_launchpad/component/modal.ttl +2 -2
  12. package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
  13. package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +4 -4
  14. package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -2
  15. package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -2
  16. package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -2
  17. package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -2
  18. package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +2 -2
  19. package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
  20. package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -2
  21. package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -2
  22. package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
  23. package/data/concept/Accessibility.ttl +9 -0
  24. package/data/concept/Breakpoints.ttl +9 -0
  25. package/data/concept/Design-tokens-Overview.ttl +10 -0
  26. package/data/concept/Filtering-patterns.ttl +0 -1
  27. package/data/concept/Foundations-Baseline.ttl +0 -1
  28. package/data/concept/Foundations-Color.ttl +10 -0
  29. package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
  30. package/data/concept/Foundations-Grid--Layout.ttl +1 -2
  31. package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
  32. package/data/concept/Foundations-Spacing.ttl +0 -1
  33. package/data/concept/Foundations-Surfaces.ttl +0 -1
  34. package/data/concept/Foundations-Typography.ttl +1 -2
  35. package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
  36. package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
  37. package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
  38. package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
  39. package/data/concept/Intentional-friction.ttl +0 -1
  40. package/data/concept/Overflow.ttl +0 -1
  41. package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
  42. package/data/documentation/pattern/library_side_navigation.ttl +2 -2
  43. package/data/global/component/accordion.ttl +2 -2
  44. package/data/global/component/announcement.ttl +2 -1
  45. package/data/global/component/avatar.ttl +1 -1
  46. package/data/global/component/badge.ttl +2 -2
  47. package/data/global/component/breadcrumbs.ttl +3 -3
  48. package/data/global/component/button.ttl +3 -3
  49. package/data/global/component/button_link.ttl +1 -1
  50. package/data/global/component/card.ttl +3 -7
  51. package/data/global/component/chip.ttl +1 -0
  52. package/data/global/component/code_snippet.ttl +1 -1
  53. package/data/global/component/drag_and_drop_list.ttl +1 -1
  54. package/data/global/component/dropdown_button.ttl +2 -2
  55. package/data/global/component/file_upload_field.ttl +509 -60
  56. package/data/global/component/icon.ttl +1 -1
  57. package/data/global/component/icon_button.ttl +26 -4
  58. package/data/{apps → global}/component/key_value_pair.ttl +2 -2
  59. package/data/global/{subcomponent/markdown_input.ttl → component/markdown_editor_field.ttl} +3 -3
  60. package/data/global/component/mode_switcher.ttl +1 -1
  61. package/data/global/component/number_field.ttl +1 -1
  62. package/data/global/component/range_field.ttl +0 -80
  63. package/data/global/component/table.ttl +2 -2
  64. package/data/global/component/tile.ttl +1 -1
  65. package/data/global/component/tooltip.ttl +51 -91
  66. package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
  67. package/data/global/component/tooltip_wrapper.ttl +70 -14
  68. package/data/global/group/cards.ttl +1 -1
  69. package/data/{apps → global}/group/key_value_pairs.ttl +2 -2
  70. package/data/global/modifier/constructive.ttl +1 -1
  71. package/data/global/modifier/elevated.ttl +1 -1
  72. package/data/global/modifier_family/_emphasis.ttl +1 -2
  73. package/data/global/modifier_family/_other.ttl +1 -2
  74. package/data/global/modifier_family/surface.ttl +1 -1
  75. package/data/global/pattern/description_list.ttl +1 -1
  76. package/data/global/pattern/modal.ttl +1 -1
  77. package/data/global/pattern/timeline.ttl +1 -1
  78. package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -2
  79. package/data/global/subcomponent/chart_legend.ttl +1 -1
  80. package/data/global/subcomponent/chart_legend_item.ttl +1 -1
  81. package/data/global/subcomponent/file_upload_input.ttl +503 -50
  82. package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
  83. package/data/global/subcomponent/modal-footer.ttl +1 -1
  84. package/data/global/subcomponent/number_input.ttl +1 -1
  85. package/data/global/subcomponent/range_input.ttl +3 -84
  86. package/data/global/{component/markdown_field.ttl → subcomponent/text_editor_input.ttl} +3 -3
  87. package/data/global/variant/tooltip_dense.ttl +86 -5
  88. package/data/global_dataviews/component/filter_button.ttl +487 -0
  89. package/data/global_dataviews/component/query_bar.ttl +1639 -0
  90. package/data/global_dataviews/component/query_chip.ttl +605 -0
  91. package/data/global_dataviews/group/query_chips.ttl +565 -0
  92. package/data/global_dataviews/modifier/exclusion.ttl +8 -0
  93. package/data/global_dataviews/modifier/inclusion.ttl +8 -0
  94. package/data/global_dataviews/modifier/match.ttl +8 -0
  95. package/data/global_dataviews/modifier/presence.ttl +8 -0
  96. package/data/global_dataviews/modifier/range.ttl +8 -0
  97. package/data/global_dataviews/modifier_family/condition.ttl +9 -0
  98. package/data/global_dataviews/subcomponent/query_chip-entry.ttl +186 -0
  99. package/data/global_dataviews/subcomponent/query_chip-segment.ttl +241 -0
  100. package/data/global_dataviews/subcomponent/query_input.ttl +1287 -0
  101. package/data/global_dataviews.ttl +6 -0
  102. package/data/sites/component/store_card.ttl +1 -1
  103. package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
  104. package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
  105. package/definitions/ontology.ttl +8 -2
  106. package/package.json +6 -6
  107. package/skills/adoption-a1-styles/SKILL.md +11 -0
  108. package/skills/adoption-a2-components/SKILL.md +82 -2
  109. package/skills/anatomy-author/SKILL.md +278 -95
  110. package/skills/anatomy-author/clarification-guidelines.md +150 -0
  111. package/skills/anatomy-author/completeness-checklist.md +224 -0
  112. package/skills/implement-component/SKILL.md +2 -2
  113. package/skills/map-journeys/SKILL.md +395 -0
  114. package/skills/map-journeys/journey-graph.example.html +298 -0
  115. package/skills/model-domains/SKILL.md +502 -0
  116. package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
  117. package/data/global/modifier/editable.ttl +0 -8
  118. package/data/global/modifier/focused.ttl +0 -8
  119. package/data/global/modifier/highlighted.ttl +0 -8
  120. package/data/global/modifier/loading.ttl +0 -8
  121. package/data/global/modifier/muted.ttl +0 -8
  122. package/data/global/modifier/wireframe.ttl +0 -8
@@ -0,0 +1,150 @@
1
+ # Clarification Guidelines for Anatomy Authoring
2
+
3
+ ## Purpose
4
+
5
+ Use these guidelines during **Stage 3 — Gather Structural Requirements** of the `anatomy-author` workflow. Resolve missing or ambiguous **visual anatomy and structural** requirements identified by the completeness audit before generating Anatomy DSL.
6
+
7
+ The person using the skill is the **design authority** for the current task unless the conversation identifies another responsible decision-maker. Present uncertain structural choices as a **recommendation plus a question**, not as a finished decision. Preserve the existing skill's decision gates for node boundaries, slot names, cardinality, and what the anatomy fixes versus leaves configurable.
8
+
9
+ This is a conversational clarification process, **not a separate form, fixed questionnaire, or design approval process**. Do not ask questions when the required decisions are already established.
10
+
11
+ ## 1. Determine the authoring scenario
12
+
13
+ Use one of the following contexts to guide evidence priority and question volume:
14
+
15
+ | Scenario | Evidence and questioning approach |
16
+ | --- | --- |
17
+ | **Create from design** | Examine Figma components, variants, properties, constraints, annotations, and Pragma context. The design plus designer-confirmed decisions are authoritative for structural intent. Ask when Figma is silent or ambiguous. |
18
+ | **Document existing implementation** | Examine the implementation and Pragma graph/standards when no Figma design exists. Ask when structural intent is unclear. |
19
+ | **Document design and implementation** | Examine both sources. When they conflict, ask the design authority to resolve or explicitly defer each discrepancy. Record confirmed decisions, explicitly deferred discrepancies, and any differences from the implementation. |
20
+ | **Create from scratch** | Use any existing component definition, requirements, graph context, and Pragma conventions. If there is no design or implementation, skip unavailable source analysis and ask the minimum foundational questions needed to define anatomy. Do not fabricate a structure. |
21
+
22
+ **Always consult the applicable Pragma semantic context before inventing reusable component identities, slot names, symbols, or tier assignments.** Respect the skill's existing discovery and decision-gate instructions. Distinguish documentation of visual anatomy from the broader component-definition work handled elsewhere.
23
+
24
+ ## 2. Classify the evidence before asking
25
+
26
+ For each applicable consideration in `completeness-checklist.md`, maintain a short internal record:
27
+
28
+ - **Consideration:** What visual or structural decision is at issue?
29
+ - **Source/evidence:** Where is it shown or defined (design, implementation, existing Pragma specification, approved convention, or user answer)?
30
+ - **Status:** `confirmed`, `inferred/ambiguous`, `missing`, `conflicting`, or `not applicable`.
31
+ - **Impact:** Would the missing answer change nodes, hierarchy, slot structure, cardinality, layout, state presentation, or other implementable visual structure?
32
+ - **Question:** Ask only when resolution requires a decision from the design authority.
33
+
34
+ Do **not** equate technical properties with design intent unless the intent is clear. Examples:
35
+
36
+ - Figma **Clip content** establishes a frame setting, not necessarily the intended truncation/overflow rule.
37
+ - A short sample label does not establish a maximum label length or single-line policy.
38
+ - A hidden Figma layer, even when hidden in every variant, does not establish whether it is a supported optional part, an unused layer, or an obsolete design artifact. Check component properties, annotations, other available evidence, and designer-confirmed decisions before classifying it. If its intended role remains unclear, ask the design authority. Do not treat hidden layers as visually verified configurations.
39
+ - An observed implementation layout is evidence of current behaviour, but may conflict with design intent.
40
+ - Do not assume that Figma parts and Pragma properties are equivalent or different based on their names alone. Before asking about their relationship, inspect the available Figma component properties, layer structure, and relevant Pragma graph definitions or documentation. Compare their roles, structure, and supported configurations. If the relationship remains unclear, explain what the evidence establishes, what is still unknown, and what specific decision is needed from the design authority. Do not offer answer options based on unsupported assumptions.
41
+ - Before proposing which Figma wrappers to preserve or remove, evaluate each wrapper's structural purpose, including grouping, layout, spacing, and conditional content. Do not preserve a wrapper solely because it exists in Figma or remove one solely because its children can be represented without it. Verify that the proposed hierarchy retains all meaningful structural relationships and visual requirements. Ask the design authority about any unresolved boundaries.
42
+ - When a Figma element appears to correspond to a named Pragma component, verify its identity using available component-instance metadata, Pragma definitions, or other reliable evidence. Do not treat matching names or visual roles alone as confirmation. If the identity remains uncertain and affects the anatomy, ask the design authority before assigning a named component URI.
43
+ - When additional component documentation is available, compare its requirements and component relationships with Figma, implementation, and Pragma definitions. Identify conflicting requirements and resolve material discrepancies with the design authority. For documented subcomponents missing from the Pragma graph, do not assume their identities are invalid or invent URIs. Confirm their intended identity, structural role, and relationship to the parent before authoring.
44
+
45
+ If a convention explicitly settles the issue and applies to this component, use it without asking again; do not generalise from another component's one-off decision.
46
+
47
+ ## 3. Decide which questions to ask
48
+
49
+ **Ask a question when all are true:**
50
+
51
+ 1. The consideration is relevant to the component.
52
+ 2. The required visual/structural outcome is missing, ambiguous, or conflicting.
53
+ 3. Available sources and applicable approved Pragma conventions do not resolve it reliably.
54
+ 4. Its answer could materially change the generated anatomy or result in an undocumented design decision.
55
+
56
+ Before asking a clarification question, check the proposed configuration against available Figma evidence, Pragma graph constraints, approved conventions, and decisions already confirmed in the conversation. If reliable evidence establishes the answer, record it without asking. Do not offer choices that established requirements rule out. If the sources conflict or do not reliably establish the visual requirement, ask about the specific ambiguity instead of treating unsupported configurations as equally plausible.
57
+
58
+ **Prioritise blocking questions** before authoring the final DSL: component identity/boundaries, required versus optional parts, supported variants, cardinality, conditional structures, constraints that materially alter composition, and conflicting sources of truth.
59
+
60
+ Skip questions about irrelevant or already answered considerations. When the component specification explicitly leaves a detail configurable, record that as an intentional design choice rather than an unresolved gap. Do not independently defer material missing or ambiguous requirements; ask the design authority to resolve or explicitly defer them.
61
+
62
+ Questions on **UX behaviour** (what click/keyboard action changes a state, focus movement, validation algorithms, business rules, state machines) are out of scope. You may ask what a particular *visual state looks like*; do not ask how the application enters that state.
63
+
64
+ ## 4. Ask concisely and in context
65
+
66
+ - First state the relevant evidence or gap in one sentence.
67
+ - Ask **one clear decision question**, ideally with a small number of plausible options when that reduces effort.
68
+ - Each question must address one independent design decision. Do not combine multiple decisions into a single confirmation, even when they concern the same component part. For example, slot names for different parts, structural wrappers, and optional-part appearance must be decided separately. Multiple-choice options must be mutually exclusive and address only that decision.
69
+ - Offer a suggested answer only when grounded in a relevant Pragma convention or the available design; mark it as a proposal.
70
+ - Group related questions into small batches when useful, but give each independent decision its own question and answer field. A batch must not use one shared confirmation for multiple decisions.
71
+ - Always allow the design authority to provide an answer outside the suggested choices. When the question interface supports free-text input, enable it and do not add a separate **Other / specify** option. When free-text input is unavailable, explicitly invite a custom answer.
72
+ - Do not offer **Defer to the designer** or equivalent options when the person answering is already the design authority. The design authority may explicitly choose to leave a decision unresolved, but do not present deferral as a substitute for answering the question or claim that an unresolved gap will be encoded in the DSL.
73
+ - Accept partial answers; ask only the follow-up needed to resolve a still-blocking ambiguity.
74
+ - Never ask for information explicitly present in the conversation, approved specification, or source evidence.
75
+ - Do not ask the user to confirm every item in the checklist; it is a diagnostic framework.
76
+ - Respect the existing skill's collaboration and narration conventions without adding long process explanations.
77
+
78
+ ### Examples
79
+
80
+ **Ambiguous overflow (create from design)**
81
+
82
+ > Figma has `Clip content` enabled, but it does not establish what should happen to a long label. Should the label wrap, truncate with an ellipsis, or follow another rule?
83
+
84
+ **Optional-part combination (any scenario)**
85
+
86
+ > The leading icon and trailing action are shown separately. Can both appear together?
87
+
88
+ **Conflict (document design and implementation)**
89
+
90
+ > The implementation keeps the description visible at narrow widths, while the design hides it. Should the Anatomy DSL specify that the description remains visible, is hidden, or follows another rule?
91
+
92
+ **Foundational anatomy (create from scratch)**
93
+
94
+ > What are the component's essential visual parts, and which of them should be optional? For example, should this notification always have a message and optionally include an icon and close action?
95
+
96
+ **Visual state, not interaction logic**
97
+
98
+ > In the loading presentation, should the spinner replace the label, sit beside it, or preserve the label's space while hiding it?
99
+
100
+ **Structural edge case**
101
+
102
+ > When the tabs no longer fit in one row, should they wrap, scroll horizontally, or use an overflow region?
103
+
104
+ ## 5. Record decisions and avoid re-asking
105
+
106
+ After an answer:
107
+
108
+ 1. Record the **confirmed structural decision**, including applicable state/variant/condition and any exceptions.
109
+ 2. Update related checklist statuses; resolve contradictory interpretations before proceeding.
110
+ 3. Check only directly affected considerations for newly revealed gaps (for example, deciding to truncate may raise a question about the truncation boundary).
111
+ 4. Do not repeat answered or explicitly deferred questions, even if the same decision is relevant to several checklist categories. Revisit a deferred question only when new evidence materially changes what needs to be decided.
112
+ 5. Distinguish **component-specific decisions** from **approved Pragma-wide conventions**. Never promote one component's rule to a universal convention automatically.
113
+
114
+ If the design authority explicitly chooses to leave a decision open, record it as **unresolved** and report its effect on DSL completeness. Do not invent an answer. If the user requests full autonomous authoring, follow the existing skill's autonomy exception and clearly identify unilateral judgments rather than presenting them as confirmed.
115
+
116
+ ## 6. Hand off to DSL generation
117
+
118
+ Once all material requirements satisfy the exit criteria in Section 7, generate Anatomy DSL from the consolidated Stage 3 specification using:
119
+
120
+ 1. Confirmed design/implementation evidence appropriate to the authoring scenario.
121
+ 2. Applicable and verified Pragma standards, graph definitions, and conventions.
122
+ 3. Explicit decisions obtained through clarification.
123
+
124
+ Follow the existing `SKILL.md` authoring rules and the unchanged normative `ANATOMY_DSL_SPEC.md` for valid notation. This file does **not** expand the DSL grammar or modify formal prop/modifier definitions.
125
+
126
+ ### When a confirmed requirement cannot be expressed
127
+
128
+ - First check whether an existing DSL construct actually expresses the requirement (for example, cardinality, `switch`, or a state-scoped style). Do not assume that a general limitation rules out all related constructs.
129
+ - Write every supported part of the specification using **valid existing DSL**.
130
+ - **Report the unrepresentable requirement separately in the response, outside the YAML**, explaining why the current DSL cannot express it.
131
+ - Do not invent keys, switches, states, or other unsupported syntax; do not silently omit confirmed requirements.
132
+
133
+ Keep **source references and URLs out of YAML comments**, as required by the existing commenting guidelines. If sources or outstanding decisions must be reported, put them in accompanying prose instead of comments.
134
+
135
+ ## 7. Scope and exit criteria
136
+
137
+ Before declaring Stage 3 complete, reconcile every missing, ambiguous, or conflicting requirement identified during the completeness audit or subsequent clarification. For each requirement, establish one of the following outcomes:
138
+
139
+ 1. **Confirmed by evidence:** Cite the reliable evidence that resolves it.
140
+ 2. **Confirmed by the design authority:** Record the explicit decision.
141
+ 3. **Explicitly deferred by the design authority:** Record the unresolved requirement and its impact on DSL completeness.
142
+ 4. **Not applicable or outside scope:** Explain why it does not require a design decision.
143
+
144
+ Do not independently classify a material requirement as deferred, resolved, or non-applicable without justification. In particular, do not assume that optional parts automatically establish their supported combinations, placement, or behaviour under constraints. If a material requirement remains unaddressed, Stage 3 is incomplete; ask the outstanding question before proceeding.
145
+
146
+ Proceed to DSL generation only after every material requirement has one of the outcomes above. **Validation remains a later stage** using the existing skill's validation instructions; these guidelines do not introduce a separate scenario-testing or approval step.
147
+
148
+ At the end of Stage 3, consolidate the confirmed visual and structural requirements into a component-specific specification. Include the intended anatomy, supported configurations, dimensions, spacing, visual states, colours, content constraints, and responsive behaviour where applicable. Record requirements with their conditions and exceptions, not just the answers to clarification questions. Keep the specification independent of the current DSL's capabilities.
149
+
150
+ Before handing the consolidated specification to Stage 4, cross-check it against the completed completeness checklist. Confirm that every core and applicable conditional consideration has a documented outcome, and that all confirmed requirements, conditions, exceptions, and constraints are preserved. If a material requirement was omitted or its outcome remains unclear, return to clarification before proceeding. Do not leave missing design decisions for Stage 4 to resolve implicitly.
@@ -0,0 +1,224 @@
1
+ # Visual Anatomy and Structural Completeness Checklist
2
+
3
+ ## Purpose and scope
4
+
5
+ Use this checklist during **Stage 2 — Audit completeness** of the `anatomy-author` workflow. Its purpose is to identify visual and structural information required for a reliable Anatomy DSL, including details that Figma may omit, imply, or be unable to encode as structured component data.
6
+
7
+ This checklist applies to all four authoring scenarios:
8
+
9
+ - **Create from design:** Use the design and designer-confirmed decisions as the structural source of truth.
10
+ - **Document existing implementation:** Use the existing implementation and Pragma context when no Figma design exists.
11
+ - **Document design and implementation:** Analyse both sources. When they conflict, ask the design authority to resolve or explicitly defer each discrepancy. Record confirmed decisions, explicitly deferred discrepancies, and any differences from the implementation.
12
+ - **Create from scratch:** Use available requirements and ask the design authority to establish missing structural decisions.
13
+
14
+ **In scope:** Visual parts, hierarchy, variants, optional/conditional parts, representation of visual states, content presentation, sizing, overflow, responsive composition, layout, and structural edge cases.
15
+
16
+ **Out of scope:** UX interaction rules, keyboard behaviour, event triggers, state transitions, validation/business logic, formal prop-surface or modifier definitions, implementation algorithms, and approval of the design. Appearance associated with a state is in scope; the process that produces the state is not.
17
+
18
+ **Do not restrict this audit to the current DSL syntax.** The purpose is to establish what the specification needs, then determine what the current notation can represent.
19
+
20
+ ### How to assess each consideration
21
+
22
+ - **[Core]** — Consider for every component, even if the documented outcome is *not applicable*.
23
+ - **[Conditional]** — Consider when the component or its supported configurations make the item relevant.
24
+ - For each applicable item, classify the available evidence as **confirmed**, **inferred/ambiguous**, **missing**, or **conflicting**. Record *not applicable* when justified.
25
+ - A Figma setting is evidence of a design decision only when its intended meaning is clear. For example, `Clip content` does not necessarily establish the intended treatment of long text in implementation.
26
+ - Do not ask about information already confirmed by reliable evidence or approved Pragma conventions. Refer unresolved design decisions to `clarification-guidelines.md`.
27
+ - **Do not turn this checklist into a mandatory fixed questionnaire.** Assess applicability first and ask only necessary questions.
28
+
29
+ ---
30
+
31
+ ## 1. Component anatomy and hierarchy
32
+
33
+ - [ ] **[Core] Root element.** Identify the component's main structural container.
34
+ - [ ] **[Core] Constituent parts.** Identify visual and structural parts: labels, icons, containers, backgrounds, dividers, indicators, and other relevant elements.
35
+ - [ ] **[Core] Parent-child relationships.** Identify which elements contain others.
36
+ - [ ] **[Core] Hierarchy and nesting.** Specify the structure of nested groups and containers.
37
+ - [ ] **[Core] Element ordering.** Define the order of parts within the component.
38
+ - [ ] **[Core] Required and optional parts.** Distinguish always-present parts from optional ones; Section 3 covers their conditional combinations.
39
+ - [ ] **[Conditional] Hidden or unused design layers.** Identify layers hidden across the inspected configurations and establish whether they represent supported optional anatomy, unused elements, or obsolete artifacts. Do not infer their intended status from visibility alone.
40
+ - [ ] **[Conditional] Repeated elements.** Describe the structural pattern of tabs, list items, table rows, etc., including meaningful count constraints.
41
+ - [ ] **[Conditional] Decorative or implicit parts.** Include structural decorations even if they are not separate Figma layers or DOM nodes (for example, separators or pseudo-elements).
42
+ - [ ] **[Conditional] Nested components.** Identify documented parent-child component relationships, including named subcomponents not yet registered in Pragma. Distinguish reusable components and subcomponents from anonymous structural nodes. Verify existing identities against the Pragma graph and flag missing or ambiguous definitions for clarification.
43
+
44
+ *Example:* A text field may contain a label, input region, leading icon, trailing action, helper text, and status indicator. Identify their hierarchy before describing variations.
45
+
46
+ ## 2. Variants and structural configurations
47
+
48
+ - [ ] **[Core] Default configuration.** Identify the component's intended default visual presentation, including which optional parts are visible. Compare defaults defined in Figma, the Pragma graph, and other applicable sources. If they conflict, ask the design authority to establish the intended default, even when the underlying anatomy remains unchanged. Record discrepancies without assuming that either source is correct.
49
+ - [ ] **[Core] Supported variants.** Identify named or formally supported variants without treating every optional-content configuration as a variant.
50
+ - [ ] **[Conditional] Size variants.** Define structural differences among supported sizes.
51
+ - [ ] **[Conditional] Structural alternatives.** Describe orientation or arrangement differences when they are explicitly supported variants (for example, horizontal vs. vertical tabs).
52
+ - [ ] **[Conditional] Variant-specific parts and hierarchy.** Identify parts that exist only in particular variants and changes to nesting, ordering, or grouping.
53
+ - [ ] **[Conditional] Variant restrictions and source-only configurations.** Identify unsupported structural combinations and variants or states documented in the Pragma graph or other specifications but absent from Figma. Investigate whether they are supported and affect visual anatomy. If their status or intended presentation remains unclear, ask the design authority rather than silently excluding them. Record purely behavioural restrictions as outside the Anatomy DSL's scope.
54
+
55
+ *Boundary:* Optional content combinations belong to Section 3; responsive rearrangements caused by available space belong to Section 8.
56
+
57
+ ## 3. Conditional anatomy and composition
58
+
59
+ - [ ] **[Core] Conditional parts.** Identify which optional elements can be included or omitted based on content or component configuration.
60
+ - [ ] **[Conditional] Content configurations.** Describe supported combinations such as icon-only, label-only, and icon-with-label.
61
+ - [ ] **[Conditional] Optional-element combinations.** Establish which combinations of optional parts are supported and define their resulting layout when parts coexist or are absent. Do not assume that independently optional parts can appear in every combination. Verify relevant combinations using reliable evidence or designer-confirmed decisions, without re-asking questions already resolved by existing constraints.
62
+ - [ ] **[Conditional] Visibility conditions.** Define the *visual condition* under which each optional part is rendered; do not define the UX event that creates it.
63
+ - [ ] **[Conditional] Hidden-element treatment.** Specify whether an absent/hidden part is removed from layout, retains its space, or is only visually concealed.
64
+ - [ ] **[Conditional] Hidden-part appearance.** For supported optional parts that are never shown in the inspected variants, establish their intended appearance, placement, styling, and state-dependent presentation from other reliable evidence or designer-confirmed decisions. Do not treat hidden-layer properties alone as verification of their rendered appearance.
65
+ - [ ] **[Conditional] Conditional replacement.** Define when one visual part replaces another due to configuration.
66
+ - [ ] **[Conditional] Layout redistribution.** Define how siblings resize, move, or realign when optional parts are added or removed.
67
+ - [ ] **[Conditional] Slot composition.** Define permitted content and structural constraints for configurable slots; do not redefine the component's formal prop surface.
68
+ - [ ] **[Conditional] Simultaneous conditions.** Establish the resulting anatomy and visual presentation when multiple conditions apply together. Record relevant combinations explicitly, including differences in layout, spacing, sizing, and visibility. Do not assume that independently confirmed rules produce the intended result when combined.
69
+ - [ ] **[Conditional] Unsupported optional combinations.** Identify unsupported combinations of optional parts (distinct from variant restrictions in Section 2).
70
+
71
+
72
+ *Example:* A field may support a leading icon, a trailing action, both, or neither. Record the placement of the input region in every supported combination.
73
+
74
+ ## 4. State-dependent visual structure
75
+
76
+ - [ ] **[Conditional] State-specific anatomy.** Identify parts present in each supported visual state (such as selected, checked, expanded, or disabled).
77
+ - [ ] **[Conditional] State-specific visibility.** Define parts shown or hidden in each state.
78
+ - [ ] **[Conditional] State-specific arrangement.** Specify structural changes in positioning, order, or layout across states.
79
+ - [ ] **[Conditional] State targets across configurations.** Identify which elements receive each visual state and whether the target changes with component configuration. Record both the elements that change and those that remain unchanged.
80
+ - [ ] **[Conditional] State-specific indicators.** Specify presence and placement of checkmarks, chevrons, and similar indicators.
81
+ - [ ] **[Conditional] Colours across variants and states.** Establish the intended background, border, text, icon, and nested-part colours for applicable combinations of semantic variants and visual states. Include customisable colour configurations when supported. Record the visual requirements without requiring token mapping or DSL representation at this stage.
82
+ - [ ] **[Conditional] State combinations.** Identify supported simultaneous states that alter structure, and the resulting presentation.
83
+ - [ ] **[Conditional] Structural stability.** Identify elements and dimensions that should remain unchanged across states.
84
+
85
+ *Example:* A checkbox uses an empty indicator, checkmark, or indeterminate mark. Record the visual differences; do not define the interaction that changes its state. Loading and other exceptional presentations are in Section 11.
86
+
87
+ ## 5. Content structure and presentation
88
+
89
+ - [ ] **[Conditional] Content regions.** Identify where text, icons, images, and other content appear.
90
+ - [ ] **[Conditional] Content arrangement.** Define the order and grouping of content within a region.
91
+ - [ ] **[Conditional] Content-dependent geometry.** Describe how changing content affects the component's size or the sizes of its parts.
92
+ - [ ] **[Conditional] Absent content.** Define the structure when an individual content field is empty or omitted.
93
+ - [ ] **[Conditional] Placeholder presentation.** Specify the position and layout effect of placeholders.
94
+ - [ ] **[Conditional] Content priority.** Identify content or parts that retain space, shrink, or disappear when constrained.
95
+ - [ ] **[Conditional] Mixed content.** Define the arrangement of text, images, icons, and nested content in the same region.
96
+
97
+ *Boundary:* Text wrapping, line limits, truncation, and clipping belong to Section 7; empty datasets and no-results presentations belong to Section 11.
98
+
99
+ ## 6. Dimensions and resizing
100
+
101
+ - [ ] **[Core] Width model.** Specify fixed, intrinsic, flexible, or container-dependent width.
102
+ - [ ] **[Core] Height model.** Specify fixed, content-driven, flexible, or constrained height.
103
+ - [ ] **[Core] Minimum and maximum dimensions.** Establish meaningful size limits or confirm that no explicit limits apply. Do not infer the absence of minimum or maximum dimensions solely from content-hugging, flexible sizing, or truncation behaviour. Resolve missing constraints through reliable evidence or designer-confirmed decisions.
104
+ - [ ] **[Core] Growth and shrinkage.** Define which regions grow or shrink as available space changes.
105
+ - [ ] **[Conditional] Child sizing.** Identify fixed-size versus flexible children and their size relationships.
106
+ - [ ] **[Conditional] Aspect ratios.** Define proportional constraints of relevant parts.
107
+ - [ ] **[Conditional] Dimension relationships.** Specify matching or dependent widths/heights between parts.
108
+ - [ ] **[Conditional] Configuration-dependent dimensions and spacing.** Record differences in sizes, padding, gaps, and other dimensional constraints across supported variants and optional-part combinations.
109
+ - [ ] **[Conditional] Resizable components.** Describe supported resized geometries and hard boundaries, not resize-event behaviour.
110
+
111
+ *Example:* A textarea may grow with text up to a maximum height, while a trailing icon stays fixed-size.
112
+
113
+ ## 7. Overflow, wrapping, and truncation
114
+
115
+ - [ ] **[Core] Horizontal overflow.** Define the visual outcome when content exceeds available width.
116
+ - [ ] **[Core] Vertical overflow.** Define the visual outcome when content exceeds available height.
117
+ - [ ] **[Conditional] Text wrapping.** Define single-line/multiline presentation and where wrapping is permitted or prohibited.
118
+ - [ ] **[Conditional] Truncation.** Specify whether text truncates, and at the start, middle, or end.
119
+ - [ ] **[Conditional] Line limits.** Specify maximum visible lines and resulting presentation.
120
+ - [ ] **[Conditional] Unbreakable strings.** Address long URLs, identifiers, paths, or other content lacking natural breakpoints.
121
+ - [ ] **[Conditional] Clipping.** Identify clipping boundaries and which parts, decorations, or effects may be clipped.
122
+ - [ ] **[Conditional] Scrollable regions.** Identify the scrolling container(s) and non-scrolling parts; not the interaction mechanics.
123
+ - [ ] **[Conditional] Overflow indicators.** Define ellipses, fades, scroll cues, or other visual indicators.
124
+ - [ ] **[Conditional] Overflow reorganisation.** Define alternate structural presentations such as wrapping items to a new row or placing them in an overflow container.
125
+
126
+ *Example:* A tab bar may show a scrollable tab region plus fixed controls. Do not infer this solely from Figma's `Clip content` property.
127
+
128
+ ## 8. Responsive and adaptive structure
129
+
130
+ - [ ] **[Core] Container responsiveness.** Define structural adaptation as available width or height changes.
131
+ - [ ] **[Conditional] Breakpoint-specific structure.** Identify changes at specified viewport thresholds.
132
+ - [ ] **[Conditional] Container-dependent adaptations.** Identify changes governed by the component's own container rather than the viewport.
133
+ - [ ] **[Conditional] Orientation changes.** Describe reorientation caused by available space (distinct from the explicit variants in Section 2).
134
+ - [ ] **[Conditional] Element reordering.** Record changes in visual order at supported sizes.
135
+ - [ ] **[Conditional] Responsive visibility.** Define parts that appear or disappear under size constraints.
136
+ - [ ] **[Conditional] Compact presentation.** Specify alternate compositions for constrained spaces.
137
+ - [ ] **[Conditional] Short-viewport constraints.** Define the presentation when vertical space is limited.
138
+ - [ ] **[Conditional] Responsive child constraints.** Define how nested regions adapt together.
139
+
140
+ *Example:* A toolbar may expose all actions at wide widths and move secondary actions into an overflow area at narrow widths.
141
+
142
+ ## 9. Alignment, positioning, and layout
143
+
144
+ - [ ] **[Core] Layout direction.** Identify horizontal, vertical, grid, or other baseline arrangement.
145
+ - [ ] **[Core] Alignment.** Define positioning of parts relative to their container and one another.
146
+ - [ ] **[Core] Distribution.** Define how space is distributed between children.
147
+ - [ ] **[Conditional] Baseline alignment.** Specify alignment of text, icons, and inline elements.
148
+ - [ ] **[Conditional] Child wrapping.** Define whether groups of children form additional rows or columns.
149
+ - [ ] **[Conditional] Relative positioning.** Describe how badges, handles, indicators, and counters are anchored.
150
+ - [ ] **[Conditional] Fixed or sticky positioning.** Identify fixed/sticky elements and their structural containing context.
151
+ - [ ] **[Conditional] Structural separators.** Specify where dividers occur in groups or repeated items.
152
+ - [ ] **[Conditional] Nested layout constraints.** Specify how parent and child layout rules interact.
153
+ - [ ] **[Conditional] Alignment to surroundings.** Record relationships to adjacent content when part of the component contract.
154
+
155
+ *Boundary:* Identify relevant visual and layout requirements here; map supported styles to valid DSL style keys using verified Pragma tokens or permitted literals during Stage 4 (`Apply Styles`).
156
+
157
+ ## 10. Floating and layered components
158
+
159
+ - [ ] **[Conditional] Overlay anatomy.** Define the parts of popovers, menus, tooltips, dialogs, and floating panels.
160
+ - [ ] **[Conditional] Anchor relationship.** Identify the anchor for positioned content.
161
+ - [ ] **[Conditional] Preferred placement.** Specify the intended placement relative to the anchor.
162
+ - [ ] **[Conditional] Alternative placement.** Specify alternative visual placements if the preferred one does not fit.
163
+ - [ ] **[Conditional] Viewport/container constraints.** Define dimensions and clipping boundaries of floating regions.
164
+ - [ ] **[Conditional] Internal scrolling structure.** Identify fixed headers, scrollable bodies, or fixed footers.
165
+ - [ ] **[Conditional] Layer order.** Define the relative visual order of backdrop, surface, indicators, and other layers.
166
+ - [ ] **[Conditional] Nested overlays.** Define relevant structural relationships among overlapping floating elements.
167
+
168
+ *Example:* A popover can appear above or below its trigger depending on available space. Do not specify triggers, dismissal, or focus management here.
169
+
170
+ ## 11. Loading, empty, and exceptional presentations
171
+
172
+ - [ ] **[Conditional] Loading structure.** Define parts rendered during loading.
173
+ - [ ] **[Conditional] Skeleton presentation.** Define placeholders and their relationship to final content.
174
+ - [ ] **[Conditional] Empty collection/dataset.** Describe the presentation when a collection has no items (distinct from missing optional content in Section 5).
175
+ - [ ] **[Conditional] No-results presentation.** Specify a distinct visual structure when search/filter yields no matches.
176
+ - [ ] **[Conditional] Error presentation.** Define placement and structure of status text, icons, and indicators.
177
+ - [ ] **[Conditional] Success and warning presentations.** Define added or replaced visual parts.
178
+ - [ ] **[Conditional] Unavailable media/data.** Specify visual placeholders or fallback parts for missing resources.
179
+ - [ ] **[Conditional] Placeholder-to-content geometry.** Specify whether placeholders reserve the final content's space.
180
+
181
+ *Example:* A data table may present skeleton rows, regular rows, or an empty-state region. Specify each visible structure but not the loading/error logic.
182
+
183
+ ## 12. Internationalisation and text scaling
184
+
185
+ - [ ] **[Conditional] Text expansion.** Allow for translation length changes and relevant constraints.
186
+ - [ ] **[Conditional] Right-to-left layout.** Define mirroring of order, placement, and alignment.
187
+ - [ ] **[Conditional] Direction-independent parts.** Identify elements that must not mirror.
188
+ - [ ] **[Conditional] Bidirectional text.** Define layout when mixed writing directions occur.
189
+ - [ ] **[Conditional] Font metrics.** Account for relevant writing-system metrics that change geometry.
190
+ - [ ] **[Conditional] Text zoom and scaling.** Define reflow and containment with enlarged text.
191
+ - [ ] **[Conditional] Alternative writing orientations.** Specify structural changes if vertical writing is supported.
192
+
193
+ *Example:* A leading icon may move to the opposite inline side in RTL, while a brand mark retains its orientation.
194
+
195
+ ## 13. Media, graphics, and specialised structures
196
+
197
+ - [ ] **[Conditional] Media containers.** Define image/video positioning and geometric boundaries.
198
+ - [ ] **[Conditional] Media fitting.** Specify crop, contain, fill, and aspect-ratio rules.
199
+ - [ ] **[Conditional] Fallback graphics.** Define visual replacements for missing media.
200
+ - [ ] **[Conditional] Icon containers.** Define the relationship of icons to surrounding content.
201
+ - [ ] **[Conditional] Masks and shapes.** Specify structural clipping or nonrectangular boundaries.
202
+ - [ ] **[Conditional] Chart anatomy.** Identify plot, axes, gridlines, labels, legend, and data-mark regions.
203
+ - [ ] **[Conditional] Specialised parts.** Identify tracks, handles, segments, connectors, markers, etc.
204
+ - [ ] **[Conditional] Structural decorations.** Include meaningful parts rendered through backgrounds, pseudo-elements, or other mechanisms.
205
+
206
+ *Example:* A slider's anatomy may include a track, filled region, thumb, and optional ticks/labels.
207
+
208
+ ## 14. Completeness and consistency review
209
+
210
+ - [ ] **[Core] Parts accounted for.** Every meaningful visual or structural part has an intentional representation.
211
+ - [ ] **[Core] Supported configurations accounted for.** Variants, sizes, optional parts, and content configurations are understood.
212
+ - [ ] **[Core] Visibility rules accounted for.** Relevant conditions for showing, hiding, or replacing parts are known.
213
+ - [ ] **[Core] Structural changes accounted for.** Changes caused by content, state, or available space have intended outcomes.
214
+ - [ ] **[Core] Boundary cases considered.** Assess short/long content, constrained/large containers, and minimum/maximum meaningful item counts.
215
+ - [ ] **[Core] Structural conflicts identified.** Check combinations likely to overlap, clip, misalign, or lose content.
216
+ - [ ] **[Conditional] Source anomalies and outliers.** Investigate unexpected differences in properties, token bindings, or layout values across otherwise equivalent configurations. Establish whether they represent intentional design decisions, source errors, or irrelevant artifacts. Do not dismiss them solely because the current examples appear visually unchanged. Record relevant discrepancies and ask the design authority only when their intended visual or structural outcome remains materially uncertain.
217
+ - [ ] **[Core] Intentional omissions identified.** Distinguish deliberately unsupported configurations from unconsidered ones.
218
+ - [ ] **[Core] Outstanding decisions collected.** Route unresolved or contradictory structural decisions to the clarification stage rather than guessing.
219
+
220
+ ### Completion of the audit
221
+
222
+ The audit is complete when all **applicable considerations have a documented status**, and all unresolved points have been identified for targeted questions. This is **not** approval of the component design and is **not** the final DSL validation stage.
223
+
224
+ Ask whether an engineer can understand *what parts exist, how they are arranged, how they appear in each supported configuration, and what happens structurally at relevant boundaries*—without needing the skill to define UX behaviour.
@@ -221,8 +221,8 @@ Then, and only then, the breakdown.
221
221
  for the `global` tier, `@canonical/<framework>-ds-app` for the shared `apps` tier,
222
222
  and `@canonical/<framework>-ds-app-<app>` for an app-specific tier
223
223
  (`apps_lxd` → `@canonical/react-ds-app-lxd`). The `<app>` segment is the package's
224
- own short name, not always the tier suffix (the `apps_workplaceengineering` tier's
225
- package is `@canonical/svelte-ds-app-wpe`) — confirm the derived package actually
224
+ own short name, not always the tier suffix (the `apps_workplace` tier's
225
+ package is `@canonical/svelte-ds-app-workplace`) — confirm the derived package actually
226
226
  resolves in the workspace before installing or scaffolding into it. Tiers outside
227
227
  `global`/`apps*` have no package convention today: there the target package is a
228
228
  decision to raise, not to derive.