@canonical/design-system 0.1.0 → 0.1.1

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 (279) hide show
  1. package/.gemini/settings.json +14 -0
  2. package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +14 -0
  3. package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +26 -0
  4. package/.github/workflows/sync-coda-manual.yml +12 -0
  5. package/.github/workflows/sync-coda-scheduled.yml +13 -0
  6. package/.github/workflows/sync-coda.yml +38 -0
  7. package/.mcp.json +8 -2
  8. package/GEMINI.md +2 -0
  9. package/README.md +71 -51
  10. package/data/apps/component/file_tree.ttl +6 -7
  11. package/data/apps/component/key_value_pair.ttl +6 -7
  12. package/data/apps/component/navigation.ttl +6 -7
  13. package/data/apps/component/notification.ttl +7 -0
  14. package/data/apps/component/skeleton_loading.ttl +6 -7
  15. package/data/apps/component/status_bar.ttl +6 -7
  16. package/data/apps/component/toolbar.ttl +6 -7
  17. package/data/apps/group/notifications.ttl +7 -0
  18. package/data/apps/layout/application_layout.ttl +8 -7
  19. package/data/apps/layout/content_layout.ttl +9 -0
  20. package/data/apps/layout/empty_layout.ttl +6 -7
  21. package/data/apps/layout/list_page_layout.ttl +6 -7
  22. package/data/apps/layout/settings_page_layout.ttl +6 -7
  23. package/data/apps/layout/view_layout.ttl +9 -0
  24. package/data/apps/pattern/code_diff.ttl +6 -7
  25. package/data/apps/pattern/data_table.ttl +6 -7
  26. package/data/apps/pattern/destructive_modal.ttl +6 -7
  27. package/data/apps/pattern/key_value_summary.ttl +6 -7
  28. package/data/apps/pattern/keyboard_shortcuts.ttl +6 -7
  29. package/data/apps/pattern/notification_center.ttl +6 -7
  30. package/data/apps/pattern/side_panel.ttl +6 -7
  31. package/data/apps/pattern/sidepanel_stacked.ttl +6 -7
  32. package/data/apps/subcomponent/file_tree-node.ttl +7 -0
  33. package/data/apps.ttl +3 -4
  34. package/data/apps_anbox/component/copy_to_clipboard.ttl +7 -0
  35. package/data/apps_anbox/pattern/side_menu.ttl +13 -0
  36. package/data/apps_anbox.ttl +4 -0
  37. package/data/apps_juju/pattern/single_select_multi_layered.ttl +7 -0
  38. package/data/apps_juju.ttl +4 -0
  39. package/data/apps_landscape/component/password_constraints.ttl +32 -0
  40. package/data/apps_landscape.ttl +4 -0
  41. package/data/apps_launchpad/component/badge.ttl +22 -0
  42. package/data/apps_launchpad/component/breadcrumbs.ttl +14 -0
  43. package/data/apps_launchpad/component/button.ttl +34 -0
  44. package/data/apps_launchpad/component/checkbox.ttl +28 -0
  45. package/data/apps_launchpad/component/chip.ttl +42 -0
  46. package/data/apps_launchpad/component/combobox.ttl +51 -0
  47. package/data/apps_launchpad/component/description_list.ttl +13 -0
  48. package/data/apps_launchpad/component/radio.ttl +34 -0
  49. package/data/apps_launchpad/component/select.ttl +34 -0
  50. package/data/apps_launchpad/component/switch.ttl +21 -0
  51. package/data/apps_launchpad/component/text_input.ttl +35 -0
  52. package/data/apps_launchpad/component/textarea.ttl +35 -0
  53. package/data/apps_launchpad/component/tooltip.ttl +27 -0
  54. package/data/apps_launchpad/component/user_avatar.ttl +25 -0
  55. package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +29 -0
  56. package/data/apps_launchpad/subcomponent/combobox-footer.ttl +13 -0
  57. package/data/apps_launchpad/subcomponent/combobox-group.ttl +20 -0
  58. package/data/apps_launchpad/subcomponent/combobox-helper.ttl +19 -0
  59. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +13 -0
  60. package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +13 -0
  61. package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +29 -0
  62. package/data/apps_launchpad/subcomponent/combobox-search.ttl +22 -0
  63. package/data/apps_launchpad/subcomponent/description_list-item.ttl +19 -0
  64. package/data/apps_launchpad.ttl +4 -0
  65. package/data/apps_lxd/component/confirmation_checkbox.ttl +7 -0
  66. package/data/apps_lxd/component/copy_to_clipboard.ttl +7 -0
  67. package/data/apps_lxd/view/network_topology.ttl +7 -0
  68. package/data/apps_lxd.ttl +4 -0
  69. package/data/apps_portal/component/badge.ttl +7 -0
  70. package/data/apps_portal.ttl +4 -0
  71. package/data/apps_workplace/component/label-highlight.ttl +7 -0
  72. package/data/apps_workplace.ttl +4 -0
  73. package/data/apps_wpe.ttl +3 -4
  74. package/data/documentation/layout/documentation_layout.ttl +6 -7
  75. package/data/documentation/pattern/library_side_navigation.ttl +7 -0
  76. package/data/documentation.ttl +3 -4
  77. package/data/global/component/accordion.ttl +11 -12
  78. package/data/global/component/announcement.ttl +6 -7
  79. package/data/global/component/badge.ttl +7 -8
  80. package/data/global/component/breadcrumbs.ttl +13 -0
  81. package/data/global/component/button.ttl +27 -17
  82. package/data/global/component/button_link.ttl +7 -0
  83. package/data/global/component/card.ttl +6 -7
  84. package/data/global/component/chip.ttl +6 -7
  85. package/data/global/component/code.ttl +7 -0
  86. package/data/global/component/code_snippet-content.ttl +7 -0
  87. package/data/global/component/code_snippet-header.ttl +7 -0
  88. package/data/global/component/code_snippet.ttl +6 -7
  89. package/data/global/component/contextual_menu.ttl +6 -7
  90. package/data/global/component/heading.ttl +11 -12
  91. package/data/global/component/icon.ttl +12 -12
  92. package/data/global/component/icon_in_container.ttl +6 -7
  93. package/data/global/component/keyboard_key.ttl +6 -7
  94. package/data/global/component/label.ttl +12 -13
  95. package/data/global/component/notification_inline.ttl +6 -7
  96. package/data/global/component/notification_toast.ttl +6 -7
  97. package/data/global/component/pagination.ttl +6 -7
  98. package/data/global/component/popover.ttl +6 -7
  99. package/data/global/component/rich_text_editor.ttl +6 -7
  100. package/data/global/component/search_bar.ttl +6 -7
  101. package/data/global/component/table.ttl +6 -7
  102. package/data/global/component/tabs.ttl +6 -7
  103. package/data/global/component/theme_switcher.ttl +6 -7
  104. package/data/global/component/tile.ttl +11 -12
  105. package/data/global/component/tooltip.ttl +182 -7
  106. package/data/global/group/buttons.ttl +6 -7
  107. package/data/global/group/cards.ttl +6 -7
  108. package/data/global/group/code_snippets.ttl +7 -0
  109. package/data/global/group/keyboard_keys.ttl +7 -0
  110. package/data/global/group/tiles.ttl +6 -7
  111. package/data/global/layout/error_layout.ttl +6 -7
  112. package/data/global/layout/form_layout.ttl +6 -7
  113. package/data/global/layout/identity_page_form.ttl +6 -7
  114. package/data/global/modifier/alpha.ttl +5 -5
  115. package/data/global/modifier/beta.ttl +5 -5
  116. package/data/global/modifier/caution.ttl +5 -5
  117. package/data/global/modifier/comfortable.ttl +5 -5
  118. package/data/global/modifier/completed.ttl +5 -5
  119. package/data/global/modifier/constructive.ttl +5 -5
  120. package/data/global/modifier/dark.ttl +5 -5
  121. package/data/global/modifier/dense.ttl +5 -5
  122. package/data/global/modifier/destructive.ttl +5 -5
  123. package/data/global/modifier/editable.ttl +5 -5
  124. package/data/global/modifier/elevated.ttl +5 -5
  125. package/data/global/modifier/error.ttl +5 -5
  126. package/data/global/modifier/experimental.ttl +5 -5
  127. package/data/global/modifier/failed.ttl +5 -5
  128. package/data/global/modifier/focused.ttl +5 -5
  129. package/data/global/modifier/highlighted.ttl +5 -5
  130. package/data/global/modifier/in_progress.ttl +5 -5
  131. package/data/global/modifier/information.ttl +5 -5
  132. package/data/global/modifier/light.ttl +5 -5
  133. package/data/global/modifier/loading.ttl +5 -5
  134. package/data/global/modifier/muted.ttl +5 -5
  135. package/data/global/modifier/paper.ttl +5 -5
  136. package/data/global/modifier/planned.ttl +5 -5
  137. package/data/global/modifier/primary.ttl +5 -5
  138. package/data/global/modifier/secondary.ttl +5 -5
  139. package/data/global/modifier/stable.ttl +5 -5
  140. package/data/global/modifier/success.ttl +5 -5
  141. package/data/global/modifier/tertiary.ttl +5 -5
  142. package/data/global/modifier/warning.ttl +5 -5
  143. package/data/global/modifier/wireframe.ttl +5 -5
  144. package/data/global/modifier_family/_color_luminosity.ttl +5 -6
  145. package/data/global/modifier_family/_emphasis.ttl +5 -6
  146. package/data/global/modifier_family/_other.ttl +5 -6
  147. package/data/global/modifier_family/anticipation.ttl +5 -6
  148. package/data/global/modifier_family/criticality.ttl +5 -6
  149. package/data/global/modifier_family/density.ttl +5 -6
  150. package/data/global/modifier_family/importance.ttl +5 -6
  151. package/data/global/modifier_family/lifecycle.ttl +5 -6
  152. package/data/global/modifier_family/release.ttl +5 -6
  153. package/data/global/pattern/dropdown_button.ttl +7 -0
  154. package/data/global/pattern/info_table.ttl +6 -7
  155. package/data/global/pattern/modal.ttl +6 -7
  156. package/data/global/pattern/navigation.ttl +6 -7
  157. package/data/global/pattern/stepper.ttl +6 -7
  158. package/data/global/pattern/table_of_contents.ttl +6 -7
  159. package/data/global/pattern/timeline.ttl +60 -12
  160. package/data/global/subcomponent/accordion-item.ttl +15 -16
  161. package/data/global/subcomponent/breadcrumbs-item.ttl +15 -16
  162. package/data/global/subcomponent/card-content.ttl +11 -12
  163. package/data/global/subcomponent/card-header.ttl +11 -12
  164. package/data/global/subcomponent/card-image.ttl +16 -17
  165. package/data/global/subcomponent/card-thumbnail.ttl +7 -0
  166. package/data/global/subcomponent/divider.ttl +6 -7
  167. package/data/global/subcomponent/modal-content.ttl +6 -7
  168. package/data/global/subcomponent/modal-footer.ttl +6 -7
  169. package/data/global/subcomponent/modal-header.ttl +6 -7
  170. package/data/global/subcomponent/spinner.ttl +6 -7
  171. package/data/global/subcomponent/table-cell.ttl +6 -7
  172. package/data/global/subcomponent/table-row.ttl +6 -7
  173. package/data/global/subcomponent/tile-content.ttl +11 -12
  174. package/data/global/subcomponent/tile-header.ttl +11 -12
  175. package/data/global/subcomponent/timeline-content.ttl +11 -12
  176. package/data/global/subcomponent/timeline-event.ttl +42 -27
  177. package/data/global/subcomponent/timeline-expansion_indicator.ttl +7 -0
  178. package/data/global/subcomponent/timeline-header.ttl +6 -7
  179. package/data/global/view/settings_view.ttl +7 -0
  180. package/data/global.ttl +3 -4
  181. package/data/global_form/component/checkbox_input.ttl +6 -7
  182. package/data/global_form/component/choices_input.ttl +6 -7
  183. package/data/global_form/component/combobox_input.ttl +6 -7
  184. package/data/global_form/component/custom_choices_input.ttl +6 -7
  185. package/data/global_form/component/datepicker_input.ttl +6 -7
  186. package/data/global_form/component/rating_input.ttl +6 -7
  187. package/data/global_form/component/rich_text_input.ttl +7 -0
  188. package/data/global_form/component/segmented_control_input.ttl +6 -7
  189. package/data/global_form/component/slider_input.ttl +6 -7
  190. package/data/global_form/component/switch_input.ttl +6 -7
  191. package/data/global_form/component/text_input.ttl +6 -7
  192. package/data/global_form/component/textarea_input.ttl +6 -7
  193. package/data/global_form/component/wysiwginput.ttl +6 -7
  194. package/data/global_form/pattern/field.ttl +6 -7
  195. package/data/global_form/pattern/form.ttl +6 -7
  196. package/data/global_form/subcomponent/field-description.ttl +6 -7
  197. package/data/global_form/subcomponent/field-label.ttl +6 -7
  198. package/data/global_form.ttl +3 -4
  199. package/data/site/component/blog_card.ttl +7 -0
  200. package/data/site/component/quote.ttl +6 -7
  201. package/data/site/component/rule.ttl +6 -7
  202. package/data/site/component/section.ttl +6 -7
  203. package/data/site/group/blog_cards.ttl +7 -0
  204. package/data/site/layout/blog_page_layout.ttl +7 -0
  205. package/data/site/layout/case_study_layout.ttl +7 -0
  206. package/data/site/layout/site_layout.ttl +6 -7
  207. package/data/site/pattern/hero-github.ttl +6 -7
  208. package/data/site/pattern/hero.ttl +6 -7
  209. package/data/site/pattern/info_table.ttl +6 -7
  210. package/data/site/pattern/pricing_section.ttl +7 -0
  211. package/data/site/pattern/pricing_table.ttl +7 -0
  212. package/data/site/pattern/read_more_section.ttl +7 -0
  213. package/data/site/pattern/skip_link.ttl +6 -7
  214. package/data/site.ttl +3 -4
  215. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +7 -0
  216. package/data/sites_webcomponentsprototype/component/ctablock.ttl +7 -0
  217. package/data/sites_webcomponentsprototype/component/list.ttl +7 -0
  218. package/data/sites_webcomponentsprototype/component/tabs.ttl +7 -0
  219. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +8 -0
  220. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +7 -0
  221. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +7 -0
  222. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +7 -0
  223. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +7 -0
  224. package/data/sites_webcomponentsprototype/pattern/hero.ttl +7 -0
  225. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +7 -0
  226. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +7 -0
  227. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +7 -0
  228. package/data/sites_webcomponentsprototype.ttl +4 -0
  229. package/data/stores.ttl +3 -4
  230. package/definitions/ontology.ttl +39 -25
  231. package/package.json +8 -8
  232. package/skills/anatomy-author/SKILL.md +9 -9
  233. package/skills/component-specifier/SKILL.md +81 -85
  234. package/skills/design-auditor/SKILL.md +45 -45
  235. package/source.json +35 -33
  236. package/src/collect/generateTurtle.tests.ts +21 -38
  237. package/src/commands/transform.ts +27 -3
  238. package/src/config/source.schema.json +9 -0
  239. package/src/config/types.ts +7 -0
  240. package/src/constants.ts +6 -7
  241. package/src/graph/GraphStore.tests.ts +23 -23
  242. package/src/graph/GraphStore.ts +2 -2
  243. package/src/graph/PrefixMap.tests.ts +16 -16
  244. package/src/graph/PrefixMap.ts +1 -1
  245. package/src/graph/buildUri.tests.ts +26 -13
  246. package/src/graph/buildUri.ts +17 -5
  247. package/src/serializers/JSONSerializer.tests.ts +2 -5
  248. package/src/serializers/TTLSerializer.tests.ts +2 -4
  249. package/src/serializers/TTLSerializer.ts +2 -2
  250. package/src/transform/resolveReferences.tests.ts +2 -2
  251. package/src/transform/transform.tests.ts +5 -7
  252. package/src/transform/transform.ts +3 -1
  253. package/src/transform/transformRow.tests.ts +149 -50
  254. package/src/transform/transformRow.ts +27 -3
  255. package/data/global/component/link.ttl +0 -8
  256. package/data/global/pattern/breadcrumbs.ttl +0 -14
  257. package/data/global/pattern/select_button.ttl +0 -8
  258. package/data/global/subcomponent/timeline-footer.ttl +0 -8
  259. package/session/A.DSL.md +0 -429
  260. package/session/B.NOTES.md +0 -84
  261. package/session/global.component.accordion.yaml +0 -13
  262. package/session/global.component.button.yaml +0 -26
  263. package/session/global.component.card.yaml +0 -24
  264. package/session/global.component.icon.yaml +0 -7
  265. package/session/global.component.label.yaml +0 -7
  266. package/session/global.component.tile.yaml +0 -21
  267. package/session/global.component.timeline.yaml +0 -20
  268. package/session/global.pattern.breadcrumbs.yaml +0 -13
  269. package/session/global.subcomponent.accordion-item.yaml +0 -37
  270. package/session/global.subcomponent.breadcrumbs-item.yaml +0 -21
  271. package/session/global.subcomponent.card-content.yaml +0 -7
  272. package/session/global.subcomponent.card-header.yaml +0 -22
  273. package/session/global.subcomponent.card-image.yaml +0 -7
  274. package/session/global.subcomponent.tile-content.yaml +0 -7
  275. package/session/global.subcomponent.tile-header.yaml +0 -8
  276. package/session/global.subcomponent.timeline-content.yaml +0 -13
  277. package/session/global.subcomponent.timeline-event.yaml +0 -20
  278. package/session/global.subcomponent.timeline-footer.yaml +0 -9
  279. package/session/global.subcomponent.timeline-header.yaml +0 -18
@@ -22,6 +22,12 @@ ds:acceptanceCriteria
22
22
  rdfs:domain rdf:Property ;
23
23
  rdfs:range xsd:string .
24
24
 
25
+ ds:completionGuidance
26
+ a owl:AnnotationProperty ;
27
+ rdfs:label "completionGuidance" ;
28
+ skos:definition "Completion guidance for this property. This will be shown in an interface for the contributors." ;
29
+ rdfs:domain rdf:Property ;
30
+ rdfs:range xsd:string .
25
31
 
26
32
  ####
27
33
  # DATATYPES
@@ -44,7 +50,6 @@ ds:SemverString
44
50
  skos:definition "Semantic version string following semver specification (MAJOR.MINOR.PATCH)" .
45
51
 
46
52
 
47
-
48
53
  ###############################################################################
49
54
  # 1. CORE CLASSES
50
55
  ###############################################################################
@@ -148,16 +153,18 @@ ds:name
148
153
  rdfs:domain ds:UIElement ;
149
154
  rdfs:range xsd:string ;
150
155
  rdfs:label "name" ;
151
- skos:definition "" ; #TODO
152
- ds:acceptanceCriteria "" . #TODO
156
+ skos:definition "A human-readable text for the UI element. The primary identifier of the UI element, used for referencing and display purposes." ;
157
+ ds:acceptanceCriteria "Must be a concise, descriptive name that clearly identifies the UI element. Should be unique within the design system and avoid generic terms like 'button' or 'input' without context." ;
158
+ ds:completionGuidance "Provide a clear and descriptive name for the UI element that accurately reflects its purpose and functionality within the design system." .
153
159
 
154
- ds:description
160
+ ds:summary
155
161
  a owl:DatatypeProperty ;
156
162
  rdfs:domain ds:UIElement ;
157
163
  rdfs:range xsd:string ;
158
- rdfs:label "description" ;
159
- skos:definition "" ; #TODO
160
- ds:acceptanceCriteria "" . #TODO
164
+ rdfs:label "summary" ;
165
+ skos:definition "A comprehensive paragraph of text that states the singular purpose of the UI element." ;
166
+ ds:acceptanceCriteria "Concise paragraph (3-5 sentences) that clearly describes the purpose of the UI element, lists at least 2-3 use cases, and is written in a clear and accessible way. Enables readers to quickly determine if this is the right component for their needs." ;
167
+ ds:completionGuidance "Write an introduction to the component that gives a quick overview of the UI block (component or pattern). Start with the primary purpose of the UI block and list all the main use cases relating to them. Make sure to include information that can help users decide about if this is the right UI block they need." .
161
168
 
162
169
  ds:version
163
170
  a owl:DatatypeProperty, owl:FunctionalProperty ;
@@ -165,7 +172,8 @@ ds:version
165
172
  rdfs:range ds:SemverString ;
166
173
  rdfs:label "version" ;
167
174
  skos:definition "Semantic version of the UI element following semver specification" ;
168
- ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" .
175
+ ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" ;
176
+ ds:completionGuidance "Provide a semantic version number following the MAJOR.MINOR.PATCH format (e.g., 1.0.0, 2.1.3). Include optional pre-release identifiers (e.g., 1.0.0-alpha) and build metadata (e.g., 1.0.0+build.123456789)." .
169
177
 
170
178
  ds:uri
171
179
  a owl:DatatypeProperty, owl:InverseFunctionalProperty ;
@@ -173,7 +181,7 @@ ds:uri
173
181
  rdfs:range ds:URIString ;
174
182
  rdfs:label "URI" ;
175
183
  skos:definition "Unique identifier for the UI element" ;
176
- ds:acceptanceCriteria "" . #TODO
184
+ ds:acceptanceCriteria "Matches the required format: ds:[tier]:[class]:[name]:[version]. Where:[tier] is a valid tier name (core, global, global_form, apps, site, etc.); [class] is a valid UIElement class (component, pattern, layout, modifier, modifier_family, subcomponent, etc.); [name] is lowercase with underscores (e.g., button, empty_state, file_tree); [version] follows semantic versioning (MAJOR.MINOR or MAJOR.MINOR.PATCH)" .
177
185
 
178
186
  ds:decisionLog
179
187
  a owl:DatatypeProperty ;
@@ -181,10 +189,11 @@ ds:decisionLog
181
189
  rdfs:range xsd:string ;
182
190
  rdfs:label "decisionLog" ;
183
191
  skos:definition "Log of decisions with [date][author][content]" ;
184
- ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is" .
192
+ ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is" ;
193
+ ds:completionGuidance "Document any decisions made regarding the UI element, including the date of the decision, the author responsible for the decision, and a clear explanation of the change or decision made. This log helps maintain a history of changes and the rationale behind them." .
185
194
 
186
195
  ###############################################################################
187
- # 6. PROPERTIES - UIBlock Specific
196
+ # 5. PROPERTIES - UIBlock Specific
188
197
  ###############################################################################
189
198
 
190
199
  ds:tier
@@ -193,7 +202,8 @@ ds:tier
193
202
  rdfs:range ds:Tier ;
194
203
  rdfs:label "tier" ;
195
204
  skos:definition "The tier to which the UI block belongs to" ;
196
- ds:acceptanceCriteria "" . #TODO
205
+ ds:acceptanceCriteria "Has to be mandatory and singular. Must be one of the predefined tier values (core, global, global_form, apps, site, etc.)." ;
206
+ ds:completionGuidance "Assign the UI block to a specific tier within the design system. Choose from predefined tier values such as core, global, global_form, apps, site, etc. This property is mandatory and should have only one value." .
197
207
 
198
208
  ds:nextRequiredStep
199
209
  a owl:DatatypeProperty ;
@@ -208,8 +218,8 @@ ds:figmaLink
208
218
  rdfs:domain ds:UIBlock ;
209
219
  rdfs:range xsd:anyURI ;
210
220
  rdfs:label "figmaLink" ;
211
- skos:definition "" ; #TODO
212
- ds:acceptanceCriteria "" . #TODO
221
+ skos:definition "Link to the Figma design file for this UI block" ;
222
+ ds:acceptanceCriteria "Must be a valid URL pointing to the Figma design file for this UI block. The URL should be accessible and correctly formatted." .
213
223
 
214
224
  ds:wireframeLink
215
225
  a owl:DatatypeProperty ;
@@ -225,7 +235,7 @@ ds:anatomyClassic
225
235
  rdfs:range xsd:string ;
226
236
  rdfs:label "anatomyClassic" ;
227
237
  skos:definition "Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
228
- ds:acceptanceCriteria "" . #TODO
238
+ ds:acceptanceCriteria "Identifies all significant UI block parts and their relationships. Parts are decomposed only to the level where they are meaningful and reusable (e.g., if a component is made of other published components, reference those components instead of redescribing them). Each part is assigned a descriptive name, visual slot and description of its role in the overall component structure. Relationships between parts are documented: cardinality (1, 0..1, 1..*) and nesting (which parts are contained within others). Includes visual annotations or diagrams showing the anatomical structure. Both visual representation and text list align and describe the same parts. No orphaned or unnamed parts—every element in the anatomy is accounted for" .
229
239
 
230
240
  ds:anatomyDsl
231
241
  a owl:DatatypeProperty ;
@@ -240,32 +250,36 @@ ds:whenToUse
240
250
  rdfs:domain ds:UIBlock ;
241
251
  rdfs:range xsd:string ;
242
252
  rdfs:label "whenToUse" ;
243
- skos:definition "" ; #TODO
244
- ds:acceptanceCriteria "" . #TODO
253
+ skos:definition "Describes the use cases and contexts where this UI block is most appropriate. Provides guidance for deciding when to use and when not to use the component." ;
254
+ ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should be used. Should include all possible use cases where the component is appropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
255
+ ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is most appropriate. Include all possible scenarios where the component should be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
245
256
 
246
257
  ds:whenNotToUse
247
258
  a owl:DatatypeProperty ;
248
259
  rdfs:domain ds:UIBlock ;
249
260
  rdfs:range xsd:string ;
250
261
  rdfs:label "whenNotToUse" ;
251
- skos:definition "" ; #TODO
252
- ds:acceptanceCriteria "" . #TODO
262
+ skos:definition "Describes the use cases and contexts where this UI block is NOT appropriate. Provides guidance for deciding when NOT to use the component and what to use instead." ;
263
+ ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should NOT be used. Should include all possible use cases where the component is inappropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
264
+ ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is NOT appropriate. Include all reasonable possible scenarios where the component should not be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when NOT to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
253
265
 
254
266
  ds:properties
255
267
  a owl:DatatypeProperty ;
256
268
  rdfs:domain ds:UIBlock ;
257
269
  rdfs:range xsd:string ;
258
270
  rdfs:label "properties" ;
259
- skos:definition "" ; #TODO
260
- ds:acceptanceCriteria "" . #TODO
271
+ skos:definition "Formal specification of all configurable attributes (properties) that can be set on this UI block to customize its appearance, behavior, or state. Each property documents its name, data type, whether it's required, default value, and purpose within the component." ;
272
+ ds:acceptanceCriteria "Must be a complete and accurate specification of all configurable attributes for this UI block. Each property must be clearly defined with its name, data type, whether it's required, default value, and purpose. The specification should be structured in a way that is easy to understand and reference, such as a table or list format. " ;
273
+ ds:completionGuidance "Provide a formal specification of all configurable attributes for this UI block. For each property, include the name, data type, whether it's required, default value, and a clear description of its purpose within the component. This information will help users understand how to customize the UI block to fit their specific design needs." .
261
274
 
262
275
  ds:guidelines
263
276
  a owl:DatatypeProperty ;
264
277
  rdfs:domain ds:UIBlock ;
265
278
  rdfs:range xsd:string ;
266
279
  rdfs:label "guidelines" ;
267
- skos:definition "" ; #TODO
268
- ds:acceptanceCriteria "" . #TODO
280
+ skos:definition "Detailed specification for correctly using and implementing the UI block. " ; #TODO
281
+ ds:acceptanceCriteria "These guidelines should contain the best practices for accessibility, responsiveness, content handling, localization, animation and keyboard intercation of this UI block. They should be comprehensive and cover all important aspects of using and implementing the component correctly." ;
282
+ ds:completionGuidance "Provide detailed guidelines for correctly using and implementing the UI block. Include best practices for accessibility, responsiveness, content handling, localization, animation, and keyboard interaction. Ensure that the guidelines are comprehensive and cover all important aspects of using and implementing the component correctly." .
269
283
 
270
284
  ds:variants
271
285
  a owl:DatatypeProperty ;
@@ -276,7 +290,7 @@ ds:variants
276
290
  ds:acceptanceCriteria "" . #TODO
277
291
 
278
292
  ###############################################################################
279
- # 7. PROPERTIES - Relationships
293
+ # 6. PROPERTIES - Relationships
280
294
  ###############################################################################
281
295
 
282
296
  ds:usesToken
@@ -339,7 +353,7 @@ ds:labelReason # Move to reification
339
353
  skos:definition "" . #TODO
340
354
 
341
355
  ###############################################################################
342
- # 8. PROPERTIES -
356
+ # 7. PROPERTIES - Class-Specific
343
357
  ###############################################################################
344
358
 
345
359
  # Subcomponent
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "src/index.ts",
5
5
  "type": "module",
6
6
  "license": "LGPL-3.0",
7
- "version": "0.1.0",
7
+ "version": "0.1.1",
8
8
  "bin": {
9
9
  "collect-implementations": "./src/collect-implementations.ts"
10
10
  },
@@ -24,19 +24,19 @@
24
24
  "generate:coda-types": "openapi-typescript https://coda.io/apis/v1/openapi.json -o src/providers/CodaProvider.types.generated.ts"
25
25
  },
26
26
  "devDependencies": {
27
- "@biomejs/biome": "^2.3.8",
28
- "@canonical/biome-config": "^0.10.0-experimental.4",
29
- "@canonical/typescript-config-react": "^0.10.0-experimental.4",
27
+ "@biomejs/biome": "^2.3.14",
28
+ "@canonical/biome-config": "^0.12.0",
29
+ "@canonical/typescript-config-react": "^0.12.0",
30
30
  "@types/bun": "latest",
31
31
  "@types/jsonld": "^1.5.15",
32
32
  "@types/n3": "^1.26.1",
33
- "openapi-typescript": "^7.10.1",
34
- "vite-tsconfig-paths": "^5.1.4",
35
- "vitest": "^4.0.15"
33
+ "openapi-typescript": "^7.12.0",
34
+ "vite-tsconfig-paths": "^6.1.0",
35
+ "vitest": "^4.0.18"
36
36
  },
37
37
  "dependencies": {
38
38
  "ajv": "^8.17.1",
39
39
  "jsonld": "^9.0.0",
40
- "n3": "^1.26.0"
40
+ "n3": "^2.0.1"
41
41
  }
42
42
  }
@@ -25,13 +25,13 @@ This skill helps you author these specifications correctly and consistently.
25
25
  Before writing an anatomy, understand the component's context:
26
26
 
27
27
  ```
28
- 1. sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:global"})
28
+ 1. sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
29
29
  -> Find existing components in the target tier
30
30
 
31
31
  2. sem_context(node: "ds:global.component.button")
32
32
  -> See modifier families and relationships
33
33
 
34
- 3. sem_lookup(type: "dso:Subcomponent", filters: {"dso:parentComponent": "ds:global.component.card"})
34
+ 3. sem_lookup(type: "ds:Subcomponent", filters: {"ds:parentComponent": "ds:global.component.card"})
35
35
  -> Find existing subcomponents for composition patterns
36
36
  ```
37
37
 
@@ -40,18 +40,18 @@ Before writing an anatomy, understand the component's context:
40
40
  **Find components by tier:**
41
41
  ```sparql
42
42
  SELECT ?component ?name WHERE {
43
- ?component a dso:Component ;
44
- dso:name ?name ;
45
- dso:tier ds:global .
43
+ ?component a ds:Component ;
44
+ ds:name ?name ;
45
+ ds:tier ds:global .
46
46
  }
47
47
  ```
48
48
 
49
49
  **Find subcomponents of a component:**
50
50
  ```sparql
51
51
  SELECT ?sub ?name WHERE {
52
- ?sub a dso:Subcomponent ;
53
- dso:name ?name ;
54
- dso:parentComponent ds:global.component.card .
52
+ ?sub a ds:Subcomponent ;
53
+ ds:name ?name ;
54
+ ds:parentComponent ds:global.component.card .
55
55
  }
56
56
  ```
57
57
 
@@ -576,7 +576,7 @@ node:
576
576
  First, determine if the component exists in the design system:
577
577
 
578
578
  ```
579
- sem_lookup(type: "dso:Component", filters: {"dso:name": "Button"})
579
+ sem_lookup(type: "ds:Component", filters: {"ds:name": "Button"})
580
580
  ```
581
581
 
582
582
  If it exists, gather context:
@@ -13,19 +13,19 @@ Specify new UI components with full ontological structure, ensuring consistency
13
13
 
14
14
  Before creating a component, understand the context:
15
15
 
16
- 1. **Identify the tier**: Call `sem_lookup(type: "dso:Tier")` to see available tiers
17
- 2. **Check existing components**: Call `sem_lookup(type: "dso:Component", filters: {"dso:tier": "{tier-uri}"})` to see siblings
18
- 3. **Understand modifier families**: Call `sem_lookup(type: "dso:ModifierFamily")` to see available variant axes
16
+ 1. **Identify the tier**: Call `sem_lookup(type: "ds:Tier")` to see available tiers
17
+ 2. **Check existing components**: Call `sem_lookup(type: "ds:Component", filters: {"ds:tier": "{tier-uri}"})` to see siblings
18
+ 3. **Understand modifier families**: Call `sem_lookup(type: "ds:ModifierFamily")` to see available variant axes
19
19
  4. **Check for similar components**: Call `sem_sparql` to search by name patterns
20
20
 
21
21
  ```
22
- sem_lookup(type: "dso:Tier")
22
+ sem_lookup(type: "ds:Tier")
23
23
  → Choose tier based on scope (global, apps, site, etc.)
24
24
 
25
- sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:global"})
25
+ sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
26
26
  → See existing components in that tier
27
27
 
28
- sem_lookup(type: "dso:ModifierFamily")
28
+ sem_lookup(type: "ds:ModifierFamily")
29
29
  → Identify which modifier families apply
30
30
  ```
31
31
 
@@ -69,14 +69,13 @@ Is it for e-commerce?
69
69
  Query existing modifier families and their usage:
70
70
 
71
71
  ```sparql
72
- PREFIX dso: <https://ds.canonical.com/ontology#>
73
- PREFIX ds: <https://ds.canonical.com/data/>
72
+ PREFIX ds: <https://ds.canonical.com/>
74
73
 
75
74
  SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
76
- ?family a dso:ModifierFamily ;
77
- dso:name ?familyName .
75
+ ?family a ds:ModifierFamily ;
76
+ ds:name ?familyName .
78
77
  OPTIONAL {
79
- ?component dso:hasModifierFamily ?family .
78
+ ?component ds:hasModifierFamily ?family .
80
79
  }
81
80
  } GROUP BY ?family ?familyName
82
81
  ORDER BY DESC(?usage)
@@ -109,12 +108,12 @@ Ask the user:
109
108
  Before creating, verify uniqueness:
110
109
 
111
110
  ```sparql
112
- PREFIX dso: <https://ds.canonical.com/ontology#>
111
+ PREFIX ds: <https://ds.canonical.com/ontology#>
113
112
 
114
113
  SELECT ?existing ?name ?tier WHERE {
115
- ?existing a dso:Component ;
116
- dso:name ?name ;
117
- dso:tier ?tier .
114
+ ?existing a ds:Component ;
115
+ ds:name ?name ;
116
+ ds:tier ?tier .
118
117
  FILTER(CONTAINS(LCASE(?name), "{search-term}"))
119
118
  }
120
119
  ```
@@ -128,39 +127,38 @@ Use the templates below based on gathered information.
128
127
  ### Component Template (Turtle)
129
128
 
130
129
  ```turtle
131
- @prefix dso: <https://ds.canonical.com/ontology#> .
132
- @prefix ds: <https://ds.canonical.com/data/> .
130
+ @prefix ds: <https://ds.canonical.com/> .
133
131
 
134
- ds:{tier}.component.{snake_case_name} a dso:Component ;
135
- dso:name "{DisplayName}" ;
136
- dso:description """{
132
+ ds:{tier}.component.{snake_case_name} a ds:Component ;
133
+ ds:name "{DisplayName}" ;
134
+ ds:summary """{
137
135
  One-paragraph description of what the component is and does.
138
136
  Focus on the problem it solves, not implementation details.
139
137
  }""" ;
140
- dso:tier ds:{tier} ;
138
+ ds:tier ds:{tier} ;
141
139
 
142
140
  # Modifier families (remove if not applicable)
143
- dso:hasModifierFamily ds:global.modifier_family.{family1} ;
144
- dso:hasModifierFamily ds:global.modifier_family.{family2} ;
141
+ ds:hasModifierFamily ds:global.modifier_family.{family1} ;
142
+ ds:hasModifierFamily ds:global.modifier_family.{family2} ;
145
143
 
146
144
  # Usage guidance
147
- dso:whenToUse """{
145
+ ds:whenToUse """{
148
146
  - Scenario 1 when this component is appropriate
149
147
  - Scenario 2
150
148
  - Scenario 3
151
149
  }""" ;
152
- dso:whenNotToUse """{
150
+ ds:whenNotToUse """{
153
151
  - Anti-pattern 1: use {alternative} instead
154
152
  - Anti-pattern 2
155
153
  }""" ;
156
154
 
157
155
  # Design links (add when available)
158
- # dso:figmaLink <https://figma.com/file/...> ;
159
- # dso:wireframeLink <https://...> ;
160
- # dso:anatomy <https://...> ;
156
+ # ds:figmaLink <https://figma.com/file/...> ;
157
+ # ds:wireframeLink <https://...> ;
158
+ # ds:anatomy <https://...> ;
161
159
 
162
160
  # Guidelines
163
- dso:guidelines """{
161
+ ds:guidelines """{
164
162
  ## Anatomy
165
163
  - Part 1: description
166
164
  - Part 2: description
@@ -180,48 +178,47 @@ Focus on the problem it solves, not implementation details.
180
178
  ```json
181
179
  {
182
180
  "@context": {
183
- "dso": "https://ds.canonical.com/ontology#",
184
- "ds": "https://ds.canonical.com/data/"
181
+ "ds": "https://ds.canonical.com/"
185
182
  },
186
183
  "@id": "ds:{tier}.component.{snake_case_name}",
187
- "@type": "dso:Component",
188
- "dso:name": "{DisplayName}",
189
- "dso:description": "{description}",
190
- "dso:tier": { "@id": "ds:{tier}" },
191
- "dso:hasModifierFamily": [
184
+ "@type": "ds:Component",
185
+ "ds:name": "{DisplayName}",
186
+ "ds:summary": "{description}",
187
+ "ds:tier": { "@id": "ds:{tier}" },
188
+ "ds:hasModifierFamily": [
192
189
  { "@id": "ds:global.modifier_family.{family1}" }
193
190
  ],
194
- "dso:whenToUse": "{usage guidance}",
195
- "dso:whenNotToUse": "{anti-patterns}",
196
- "dso:guidelines": "{guidelines}"
191
+ "ds:whenToUse": "{usage guidance}",
192
+ "ds:whenNotToUse": "{anti-patterns}",
193
+ "ds:guidelines": "{guidelines}"
197
194
  }
198
195
  ```
199
196
 
200
197
  ### Subcomponent Template
201
198
 
202
199
  ```turtle
203
- ds:{tier}.subcomponent.{parent}_{part} a dso:Subcomponent ;
204
- dso:name "{PartName}" ;
205
- dso:description "{What this part does}" ;
206
- dso:tier ds:{tier} ;
207
- dso:parentComponent ds:{tier}.component.{parent} ;
208
- dso:standalone false . # true if can be used independently
200
+ ds:{tier}.subcomponent.{parent}_{part} a ds:Subcomponent ;
201
+ ds:name "{PartName}" ;
202
+ ds:summary "{What this part does}" ;
203
+ ds:tier ds:{tier} ;
204
+ ds:parentComponent ds:{tier}.component.{parent} ;
205
+ ds:standalone false . # true if can be used independently
209
206
  ```
210
207
 
211
208
  ### Pattern Template
212
209
 
213
210
  ```turtle
214
- ds:{tier}.pattern.{snake_case_name} a dso:Pattern ;
215
- dso:name "{PatternName}" ;
216
- dso:description """{
211
+ ds:{tier}.pattern.{snake_case_name} a ds:Pattern ;
212
+ ds:name "{PatternName}" ;
213
+ ds:summary """{
217
214
  Description of the UX problem this pattern solves.
218
215
  }""" ;
219
- dso:tier ds:{tier} ;
220
- dso:whenToUse """{
216
+ ds:tier ds:{tier} ;
217
+ ds:whenToUse """{
221
218
  - User scenario 1
222
219
  - User scenario 2
223
220
  }""" ;
224
- dso:guidelines """{
221
+ ds:guidelines """{
225
222
  ## Structure
226
223
  - Required elements
227
224
  - Optional elements
@@ -235,14 +232,14 @@ Description of the UX problem this pattern solves.
235
232
  ### Layout Template
236
233
 
237
234
  ```turtle
238
- ds:{tier}.layout.{snake_case_name} a dso:Layout ;
239
- dso:name "{LayoutName}" ;
240
- dso:description "{Purpose of this layout}" ;
241
- dso:tier ds:{tier} ;
242
- dso:domain "{information domain}" ;
243
- dso:grid "{css grid definition}" ;
244
- dso:gridAreas "{named areas}" ;
245
- dso:targetDevices "{desktop, tablet, mobile}" .
235
+ ds:{tier}.layout.{snake_case_name} a ds:Layout ;
236
+ ds:name "{LayoutName}" ;
237
+ ds:summary "{Purpose of this layout}" ;
238
+ ds:tier ds:{tier} ;
239
+ ds:domain "{information domain}" ;
240
+ ds:grid "{css grid definition}" ;
241
+ ds:gridAreas "{named areas}" ;
242
+ ds:targetDevices "{desktop, tablet, mobile}" .
246
243
  ```
247
244
 
248
245
  ## File Placement
@@ -282,14 +279,14 @@ Check for:
282
279
  ### Discovery Phase
283
280
 
284
281
  ```
285
- sem_lookup(type: "dso:Tier")
282
+ sem_lookup(type: "ds:Tier")
286
283
  → apps tier is appropriate for application navigation
287
284
 
288
- sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:apps"})
285
+ sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:apps"})
289
286
  → See existing: Navigation, Toolbar, StatusBar
290
287
  → Breadcrumb would complement Navigation
291
288
 
292
- sem_lookup(type: "dso:ModifierFamily")
289
+ sem_lookup(type: "ds:ModifierFamily")
293
290
  → density might apply (compact breadcrumbs)
294
291
  ```
295
292
 
@@ -298,28 +295,27 @@ sem_lookup(type: "dso:ModifierFamily")
298
295
  **File:** `data/apps/component/breadcrumb.ttl`
299
296
 
300
297
  ```turtle
301
- @prefix dso: <https://ds.canonical.com/ontology#> .
302
- @prefix ds: <https://ds.canonical.com/data/> .
298
+ @prefix ds: <https://ds.canonical.com/> .
303
299
 
304
- ds:apps.component.breadcrumb a dso:Component ;
305
- dso:name "Breadcrumb" ;
306
- dso:description """Breadcrumbs display the user's current location within a hierarchical navigation structure, enabling quick traversal back to parent pages.""" ;
307
- dso:tier ds:apps ;
300
+ ds:apps.component.breadcrumb a ds:Component ;
301
+ ds:name "Breadcrumb" ;
302
+ ds:summary """Breadcrumbs display the user's current location within a hierarchical navigation structure, enabling quick traversal back to parent pages.""" ;
303
+ ds:tier ds:apps ;
308
304
 
309
- dso:hasModifierFamily ds:global.modifier_family.density ;
305
+ ds:hasModifierFamily ds:global.modifier_family.density ;
310
306
 
311
- dso:whenToUse """
307
+ ds:whenToUse """
312
308
  - When users need to understand their location in a hierarchy
313
309
  - When quick navigation to parent levels is valuable
314
310
  - In applications with deep navigation structures (3+ levels)
315
311
  """ ;
316
- dso:whenNotToUse """
312
+ ds:whenNotToUse """
317
313
  - For flat navigation structures (use tabs instead)
318
314
  - As the primary navigation method (supplement, don't replace)
319
315
  - When hierarchy is only 1-2 levels deep
320
316
  """ ;
321
317
 
322
- dso:guidelines """
318
+ ds:guidelines """
323
319
  ## Anatomy
324
320
  - Container: horizontal list of links
325
321
  - Separator: visual divider between items (typically "/" or ">")
@@ -337,19 +333,19 @@ ds:apps.component.breadcrumb a dso:Component ;
337
333
  - Separator is decorative (aria-hidden)
338
334
  """ .
339
335
 
340
- ds:apps.subcomponent.breadcrumb_item a dso:Subcomponent ;
341
- dso:name "BreadcrumbItem" ;
342
- dso:description "Individual item in the breadcrumb trail" ;
343
- dso:tier ds:apps ;
344
- dso:parentComponent ds:apps.component.breadcrumb ;
345
- dso:standalone false .
346
-
347
- ds:apps.subcomponent.breadcrumb_separator a dso:Subcomponent ;
348
- dso:name "BreadcrumbSeparator" ;
349
- dso:description "Visual separator between breadcrumb items" ;
350
- dso:tier ds:apps ;
351
- dso:parentComponent ds:apps.component.breadcrumb ;
352
- dso:standalone false .
336
+ ds:apps.subcomponent.breadcrumb_item a ds:Subcomponent ;
337
+ ds:name "BreadcrumbItem" ;
338
+ ds:summary "Individual item in the breadcrumb trail" ;
339
+ ds:tier ds:apps ;
340
+ ds:parentComponent ds:apps.component.breadcrumb ;
341
+ ds:standalone false .
342
+
343
+ ds:apps.subcomponent.breadcrumb_separator a ds:Subcomponent ;
344
+ ds:name "BreadcrumbSeparator" ;
345
+ ds:summary "Visual separator between breadcrumb items" ;
346
+ ds:tier ds:apps ;
347
+ ds:parentComponent ds:apps.component.breadcrumb ;
348
+ ds:standalone false .
353
349
  ```
354
350
 
355
351
  ## Response Format