@canonical/design-system 0.1.2 → 0.2.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.
- package/.github/PULL_REQUEST_TEMPLATE.md +15 -6
- package/.github/workflows/ci.yml +14 -4
- package/.github/workflows/sync-coda-manual.yml +13 -0
- package/.github/workflows/sync-coda-scheduled.yml +9 -0
- package/.github/workflows/sync-coda.yml +65 -1
- package/README.md +132 -79
- package/bun.lock +51 -12
- package/data/apps/component/file_tree.ttl +6 -1
- package/data/apps/component/key_value_pair.ttl +5 -1
- package/data/apps/component/navigation.ttl +5 -1
- package/data/apps/component/notification.ttl +5 -1
- package/data/apps/component/side_navigation.ttl +11 -0
- package/data/apps/component/skeleton_loading.ttl +5 -1
- package/data/apps/component/status_bar.ttl +5 -1
- package/data/apps/component/toolbar.ttl +5 -1
- package/data/apps/group/key_value_pairs.ttl +11 -0
- package/data/apps/group/notifications.ttl +5 -1
- package/data/apps/layout/application_layout.ttl +4 -0
- package/data/apps/layout/content_layout.ttl +11 -1
- package/data/apps/layout/empty_layout.ttl +5 -1
- package/data/apps/layout/list_page_layout.ttl +5 -1
- package/data/apps/layout/settings_page_layout.ttl +5 -1
- package/data/apps/layout/view_layout.ttl +4 -0
- package/data/apps/pattern/action_bar.ttl +11 -0
- package/data/apps/pattern/code_diff.ttl +5 -1
- package/data/apps/pattern/data_table.ttl +205 -2
- package/data/apps/pattern/destructive_modal.ttl +5 -1
- package/data/apps/pattern/drawer.ttl +12 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +5 -1
- package/data/apps/pattern/notification_center.ttl +19 -1
- package/data/apps/pattern/side_panel.ttl +6 -1
- package/data/apps/pattern/sidepanel_stacked.ttl +5 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +27 -0
- package/data/apps/subcomponent/data_table-body_cell.ttl +106 -0
- package/data/apps/subcomponent/data_table-group_header_row.ttl +58 -0
- package/data/apps/subcomponent/data_table-header_cell.ttl +73 -0
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +44 -0
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +50 -0
- package/data/apps/subcomponent/data_table-settings_menu.ttl +63 -0
- package/data/apps/subcomponent/drawer-content.ttl +12 -0
- package/data/apps/subcomponent/drawer-footer.ttl +12 -0
- package/data/apps/subcomponent/drawer-header.ttl +12 -0
- package/data/apps/subcomponent/file_tree-node.ttl +5 -1
- package/data/apps/subcomponent/log.ttl +11 -0
- package/data/apps/subcomponent/side_panel-content.ttl +12 -0
- package/data/apps/subcomponent/side_panel-footer.ttl +12 -0
- package/data/apps/subcomponent/side_panel-header.ttl +12 -0
- package/data/apps_anbox/component/theme_switcher.ttl +10 -0
- package/data/apps_anbox/pattern/side_menu.ttl +11 -1
- package/data/apps_debcrafters/component/example.ttl +10 -0
- package/data/apps_debcrafters/component/my_fancy_component.ttl +11 -0
- package/data/apps_debcrafters.ttl +4 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +4 -1
- package/data/apps_landscape/component/password_constraints.ttl +4 -1
- package/data/apps_landscape/component/truncated_cell.ttl +38 -0
- package/data/apps_launchpad/component/avatar.ttl +31 -0
- package/data/apps_launchpad/component/badge.ttl +11 -9
- package/data/apps_launchpad/component/breadcrumbs.ttl +5 -2
- package/data/apps_launchpad/component/button.ttl +11 -9
- package/data/apps_launchpad/component/checkbox_input.ttl +31 -0
- package/data/apps_launchpad/component/chip.ttl +11 -8
- package/data/apps_launchpad/component/combobox.ttl +16 -11
- package/data/apps_launchpad/component/description_list.ttl +8 -3
- package/data/apps_launchpad/component/drawer.ttl +38 -0
- package/data/apps_launchpad/component/log.ttl +58 -0
- package/data/apps_launchpad/component/modal.ttl +44 -0
- package/data/apps_launchpad/component/radio_input.ttl +37 -0
- package/data/apps_launchpad/component/select_input.ttl +38 -0
- package/data/apps_launchpad/component/switch.ttl +8 -4
- package/data/apps_launchpad/component/text_input.ttl +13 -9
- package/data/apps_launchpad/component/textarea_input.ttl +39 -0
- package/data/apps_launchpad/component/tooltip.ttl +12 -8
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +11 -9
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +8 -3
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +10 -6
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +11 -6
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +9 -3
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +8 -3
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +12 -10
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +10 -6
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +8 -3
- package/data/apps_launchpad/subcomponent/log-line.ttl +38 -0
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +18 -0
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +18 -0
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +11 -0
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +19 -0
- package/data/apps_launchpad/subcomponent/modal-content.ttl +20 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +12 -0
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +12 -0
- package/data/apps_lxd/component/back_link.ttl +29 -0
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +54 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +19 -3
- package/data/apps_lxd/component/doc_link.ttl +45 -0
- package/data/apps_lxd/component/meter.ttl +37 -0
- package/data/apps_lxd/component/output_field.ttl +48 -0
- package/data/apps_lxd/component/rename_header.ttl +74 -0
- package/data/apps_lxd/component/tab_links.ttl +35 -0
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +39 -0
- package/data/apps_lxd/view/network_topology.ttl +16 -2
- package/data/apps_notary.ttl +4 -0
- package/data/apps_portal/component/badge.ttl +3 -0
- package/data/apps_portal/component/credit_card_input.ttl +10 -0
- package/data/apps_portal/component/key_value_pair.ttl +10 -0
- package/data/apps_portal/pattern/purchase_summary.ttl +10 -0
- package/data/apps_portal/subcomponent/read_only_modal.ttl +10 -0
- package/data/apps_workplaceengineering/component/label-highlight.ttl +18 -0
- package/data/apps_workplaceengineering/component/rule.ttl +11 -0
- package/data/apps_workplaceengineering/component/skip_link.ttl +10 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/group_card.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +12 -0
- package/data/apps_workplaceengineering.ttl +4 -0
- package/data/documentation/layout/documentation_layout.ttl +5 -1
- package/data/documentation/pattern/library_side_navigation.ttl +6 -2
- package/data/global/component/accordion.ttl +61 -2
- package/data/global/component/announcement.ttl +12 -2
- package/data/global/component/avatar.ttl +11 -0
- package/data/global/component/badge.ttl +42 -1
- package/data/global/component/breadcrumbs.ttl +18 -2
- package/data/global/component/button.ttl +36 -8
- package/data/global/component/button_link.ttl +5 -1
- package/data/global/component/card.ttl +33 -2
- package/data/global/component/checkbox_field.ttl +11 -0
- package/data/global/component/chip.ttl +74 -2
- package/data/global/component/choices_field.ttl +11 -0
- package/data/global/component/code_snippet-content.ttl +6 -2
- package/data/global/component/code_snippet-header.ttl +6 -2
- package/data/global/component/code_snippet.ttl +13 -2
- package/data/global/component/color_field.ttl +11 -0
- package/data/global/component/combobox_field.ttl +11 -0
- package/data/global/component/contextual_menu.ttl +22 -2
- package/data/global/component/data_tooltip.ttl +84 -0
- package/data/global/component/date_field.ttl +11 -0
- package/data/global/component/date_time_field.ttl +11 -0
- package/data/global/component/dropdown_button.ttl +18 -0
- package/data/global/component/file_upload_field.ttl +11 -0
- package/data/global/component/heading.ttl +5 -1
- package/data/global/component/hidden_field.ttl +11 -0
- package/data/global/component/icon.ttl +6 -2
- package/data/global/component/icon_in_container.ttl +5 -1
- package/data/global/component/inline_code.ttl +11 -0
- package/data/global/component/keyboard_key.ttl +7 -3
- package/data/global/component/markdown_field.ttl +11 -0
- package/data/global/component/mode_switcher.ttl +11 -0
- package/data/global/component/month_field.ttl +11 -0
- package/data/global/component/notification_inline.ttl +5 -1
- package/data/global/component/notification_toast.ttl +5 -1
- package/data/global/component/number_field.ttl +11 -0
- package/data/global/component/pagination.ttl +6 -2
- package/data/global/component/password_field.ttl +11 -0
- package/data/global/component/phone_field.ttl +11 -0
- package/data/global/component/popover.ttl +5 -1
- package/data/global/component/range_field.ttl +11 -0
- package/data/global/component/rating_field.ttl +11 -0
- package/data/global/component/relative_timestamp.ttl +10 -0
- package/data/global/component/rich_choices_field.ttl +11 -0
- package/data/global/component/rich_text_field.ttl +11 -0
- package/data/global/component/search_field.ttl +11 -0
- package/data/global/component/segmented_control_field.ttl +11 -0
- package/data/global/component/select_field.ttl +11 -0
- package/data/global/component/switch_field.ttl +11 -0
- package/data/global/component/table.ttl +7 -2
- package/data/global/component/tabs.ttl +7 -3
- package/data/global/component/tag.ttl +18 -0
- package/data/global/component/text_field.ttl +11 -0
- package/data/global/component/textarea_field.ttl +11 -0
- package/data/global/component/tile.ttl +24 -3
- package/data/global/component/time_field.ttl +11 -0
- package/data/global/component/timestamp.ttl +10 -0
- package/data/global/component/tooltip.ttl +75 -56
- package/data/global/component/tooltip_wrapper.ttl +81 -0
- package/data/global/group/buttons.ttl +12 -1
- package/data/global/group/cards.ttl +9 -1
- package/data/global/group/code_snippets.ttl +5 -1
- package/data/global/group/keyboard_keys.ttl +7 -3
- package/data/global/group/tiles.ttl +5 -1
- package/data/global/layout/error_layout.ttl +5 -1
- package/data/global/layout/form_layout.ttl +5 -1
- package/data/global/layout/identity_page_form.ttl +5 -1
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/modal.ttl +6 -0
- package/data/global/modifier/surface1.ttl +6 -0
- package/data/global/modifier/surface2.ttl +6 -0
- package/data/global/modifier/surface3.ttl +6 -0
- package/data/global/modifier_family/_emphasis.ttl +2 -1
- package/data/global/modifier_family/_other.ttl +2 -1
- package/data/global/modifier_family/anticipation.ttl +2 -1
- package/data/global/modifier_family/criticality.ttl +2 -1
- package/data/global/modifier_family/density.ttl +2 -1
- package/data/global/modifier_family/importance.ttl +2 -1
- package/data/global/modifier_family/lifecycle.ttl +2 -1
- package/data/global/modifier_family/mode.ttl +7 -0
- package/data/global/modifier_family/release.ttl +2 -1
- package/data/global/modifier_family/surface.ttl +7 -0
- package/data/global/pattern/description_list.ttl +11 -0
- package/data/global/pattern/field.ttl +11 -0
- package/data/global/pattern/form.ttl +10 -0
- package/data/global/pattern/form_login.ttl +10 -0
- package/data/global/pattern/info_table.ttl +5 -1
- package/data/global/pattern/modal.ttl +7 -2
- package/data/global/pattern/navigation.ttl +5 -1
- package/data/global/pattern/stepper.ttl +5 -1
- package/data/global/pattern/table_of_contents.ttl +5 -1
- package/data/global/pattern/timeline.ttl +33 -2
- package/data/global/subcomponent/accordion-item.ttl +10 -5
- package/data/global/subcomponent/breadcrumbs-item.ttl +7 -3
- package/data/global/subcomponent/card-content.ttl +8 -3
- package/data/global/subcomponent/card-footer.ttl +12 -0
- package/data/global/subcomponent/card-header.ttl +8 -3
- package/data/global/subcomponent/card-image.ttl +8 -3
- package/data/global/subcomponent/card-thumbnail.ttl +6 -1
- package/data/global/subcomponent/chart_legend.ttl +11 -0
- package/data/global/subcomponent/chart_legend_item.ttl +11 -0
- package/data/global/subcomponent/checkbox_input.ttl +11 -0
- package/data/global/subcomponent/color_input.ttl +11 -0
- package/data/global/subcomponent/combobox_input.ttl +11 -0
- package/data/global/subcomponent/date_input.ttl +11 -0
- package/data/global/subcomponent/date_time_input.ttl +11 -0
- package/data/global/subcomponent/field-description.ttl +11 -0
- package/data/global/subcomponent/field-label.ttl +11 -0
- package/data/global/subcomponent/file_upload_input.ttl +11 -0
- package/data/global/subcomponent/hidden_input.ttl +11 -0
- package/data/global/subcomponent/kvp_container.ttl +11 -0
- package/data/global/subcomponent/kvpitem_base.ttl +11 -0
- package/data/global/subcomponent/markdown_input.ttl +11 -0
- package/data/global/subcomponent/modal-content.ttl +5 -1
- package/data/global/subcomponent/modal-footer.ttl +5 -1
- package/data/global/subcomponent/modal-header.ttl +5 -1
- package/data/global/subcomponent/month_input.ttl +11 -0
- package/data/global/subcomponent/number_input.ttl +11 -0
- package/data/global/subcomponent/password_input.ttl +11 -0
- package/data/global/subcomponent/phone_input.ttl +11 -0
- package/data/global/subcomponent/radio_input.ttl +11 -0
- package/data/global/subcomponent/range_input.ttl +11 -0
- package/data/global/subcomponent/rating_input.ttl +11 -0
- package/data/global/subcomponent/rich_text_input.ttl +11 -0
- package/data/global/subcomponent/search_input.ttl +26 -0
- package/data/global/subcomponent/segmented_control_input.ttl +11 -0
- package/data/global/subcomponent/select_input.ttl +11 -0
- package/data/global/subcomponent/spin_button.ttl +11 -0
- package/data/global/subcomponent/spinner.ttl +7 -3
- package/data/global/subcomponent/switch_input.ttl +11 -0
- package/data/global/subcomponent/table-cell.ttl +5 -1
- package/data/global/subcomponent/table-row.ttl +5 -1
- package/data/global/subcomponent/text_input.ttl +11 -0
- package/data/global/subcomponent/textarea_input.ttl +33 -0
- package/data/global/subcomponent/tile-content.ttl +7 -3
- package/data/global/subcomponent/tile-header.ttl +13 -4
- package/data/global/subcomponent/time_input.ttl +11 -0
- package/data/global/subcomponent/timeline-content.ttl +7 -2
- package/data/global/subcomponent/timeline-event.ttl +8 -3
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +6 -1
- package/data/global/subcomponent/timeline-header.ttl +6 -1
- package/data/global/variant/tooltip_dense.ttl +14 -0
- package/data/global/view/settings_view.ttl +5 -1
- package/data/sites/component/blog_card.ttl +11 -0
- package/data/sites/component/quote.ttl +11 -0
- package/data/sites/component/rule.ttl +11 -0
- package/data/sites/component/section.ttl +11 -0
- package/data/sites/group/blog_cards.ttl +11 -0
- package/data/sites/group/xblog_elements.ttl +10 -0
- package/data/sites/layout/blog_page_layout.ttl +11 -0
- package/data/{site → sites}/layout/case_study_layout.ttl +6 -2
- package/data/sites/layout/site_layout.ttl +11 -0
- package/data/sites/pattern/hero-github.ttl +11 -0
- package/data/sites/pattern/hero.ttl +11 -0
- package/data/sites/pattern/info_table.ttl +11 -0
- package/data/sites/pattern/pricing_section.ttl +11 -0
- package/data/sites/pattern/pricing_table.ttl +11 -0
- package/data/sites/pattern/read_more_section.ttl +11 -0
- package/data/sites/pattern/skip_link.ttl +11 -0
- package/data/{site.ttl → sites.ttl} +2 -2
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +4 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +4 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +5 -2
- package/data/sites_webcomponentsprototype/component/tabs.ttl +5 -2
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +3 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +4 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +4 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +5 -2
- package/data/tag/allgood.ttl +7 -0
- package/data/tag/beta.ttl +7 -0
- package/data/tag/candidate.ttl +7 -0
- package/data/tag/devbatch1.ttl +7 -0
- package/data/tag/devbatch2.ttl +7 -0
- package/data/tag/devexternal.ttl +7 -0
- package/data/tag/devreactapproved.ttl +7 -0
- package/data/tag/devreactbase.ttl +7 -0
- package/data/tag/devreactpreapproved.ttl +7 -0
- package/data/tag/devspecial.ttl +7 -0
- package/data/tag/devsveltedone.ttl +7 -0
- package/data/tag/devsveltein-progress.ttl +7 -0
- package/data/tag/divergent.ttl +7 -0
- package/data/tag/docscomplete.ttl +7 -0
- package/data/tag/draft.ttl +7 -0
- package/data/tag/edge.ttl +7 -0
- package/data/tag/global-docs-missing.ttl +7 -0
- package/data/tag/has-no-global-entry.ttl +7 -0
- package/data/tag/lpto-be-upstreamed.ttl +7 -0
- package/data/tag/lptriageblocked-reqs-design.ttl +7 -0
- package/data/tag/lptriageno-upstream.ttl +7 -0
- package/data/tag/lptriagereimplement-and-deprecate.ttl +7 -0
- package/data/tag/lptriagereimplement-and-keep.ttl +7 -0
- package/data/tag/lptriageupstream-and-deprecate.ttl +7 -0
- package/data/tag/minimal.ttl +7 -0
- package/data/tag/needsdefinition.ttl +7 -0
- package/data/tag/needsdiscussion.ttl +7 -0
- package/data/tag/needsdocumentation.ttl +7 -0
- package/data/tag/needsreview.ttl +7 -0
- package/data/tag/needstriage.ttl +7 -0
- package/data/tag/needsupdate.ttl +7 -0
- package/data/tag/notstarted.ttl +7 -0
- package/data/tag/specialadoption-docs.ttl +7 -0
- package/data/tag/stable.ttl +7 -0
- package/data/tag/stylesready.ttl +7 -0
- package/data/tag/triagedbacklog.ttl +7 -0
- package/data/tag/triagedrejected.ttl +7 -0
- package/data/tag/upstream-candidate.ttl +7 -0
- package/data/tag/upstream-compliant.ttl +7 -0
- package/data/tag/upstreamcandidate.ttl +7 -0
- package/data/tag/waiting-for-delta-review.ttl +7 -0
- package/data/tag/wpeinital-implementation.ttl +7 -0
- package/data/tag/wpetriageupstream-and-deprecate.ttl +6 -0
- package/data/tagcategory/channel.ttl +4 -0
- package/data/tagcategory/concept-status.ttl +4 -0
- package/data/tagcategory/concept-type.ttl +4 -0
- package/data/tagcategory/documentation-stage.ttl +4 -0
- package/data/tagcategory/implementation-status.ttl +4 -0
- package/data/tagcategory/lpupstream.ttl +4 -0
- package/data/tagcategory/review-status.ttl +4 -0
- package/data/tagcategory/tmp.ttl +4 -0
- package/definitions/ontology.ttl +133 -14
- package/examples/form-roster.target.json +550 -0
- package/package.json +5 -2
- package/skills/adoption-a1-styles/SKILL.md +159 -0
- package/skills/adoption-a2-components/SKILL.md +186 -0
- package/skills/adoption-a3-forms/SKILL.md +155 -0
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +89 -106
- package/skills/anatomy-author/SKILL.md +350 -141
- package/skills/design-auditor/SKILL.md +197 -274
- package/skills/implement-component/SKILL.md +244 -0
- package/skills/specify-component/SKILL.md +232 -0
- package/skills/specify-pattern/SKILL.md +192 -0
- package/source.json +64 -2
- package/specs/README.md +17 -0
- package/src/cli.ts +23 -10
- package/src/commands/index.ts +1 -0
- package/src/commands/sync.tests.ts +430 -0
- package/src/commands/sync.ts +418 -0
- package/src/commands/transform.tests.ts +190 -5
- package/src/commands/transform.ts +163 -67
- package/src/constants.ts +1 -0
- package/src/providers/CodaProvider.tests.ts +94 -0
- package/src/providers/CodaProvider.ts +211 -1
- package/src/providers/detectSmartChips.tests.ts +42 -0
- package/src/providers/detectSmartChips.ts +60 -0
- package/src/scripts/checkDataDeletion.ts +68 -0
- package/src/scripts/evaluateDataDeletion.tests.ts +100 -0
- package/src/scripts/evaluateDataDeletion.ts +100 -0
- package/src/sync/constants.ts +52 -0
- package/src/sync/diffRoster.tests.ts +455 -0
- package/src/sync/diffRoster.ts +241 -0
- package/src/sync/loadTargetSpec.tests.ts +208 -0
- package/src/sync/loadTargetSpec.ts +139 -0
- package/src/sync/renderPlan.tests.ts +144 -0
- package/src/sync/renderPlan.ts +88 -0
- package/src/sync/snapshotTable.tests.ts +31 -0
- package/src/sync/snapshotTable.ts +20 -0
- package/src/sync/toLiveEntries.tests.ts +76 -0
- package/src/sync/toLiveEntries.ts +55 -0
- package/src/sync/types.ts +101 -0
- package/src/transform/collectDataMetrics.tests.ts +108 -0
- package/src/transform/collectDataMetrics.ts +114 -0
- package/src/transform/deltaGuards.tests.ts +136 -0
- package/src/transform/deltaGuards.ts +118 -0
- package/src/transform/expectedTables.tests.ts +99 -0
- package/src/transform/expectedTables.ts +34 -0
- package/src/transform/isValidReferenceUri.tests.ts +45 -0
- package/src/transform/isValidReferenceUri.ts +55 -0
- package/src/transform/materializeInverses.tests.ts +81 -0
- package/src/transform/materializeInverses.ts +78 -0
- package/src/transform/transform.tests.ts +22 -0
- package/src/transform/transform.ts +31 -3
- package/src/transform/transformRow.malformedRefs.tests.ts +127 -0
- package/src/transform/transformRow.tests.ts +82 -0
- package/src/transform/transformRow.ts +90 -7
- package/src/transform/types.ts +11 -0
- package/vitest.config.ts +29 -0
- package/data/apps/pattern/key_value_summary.ttl +0 -7
- package/data/apps_anbox/component/copy_to_clipboard.ttl +0 -7
- package/data/apps_launchpad/component/checkbox.ttl +0 -28
- package/data/apps_launchpad/component/radio.ttl +0 -34
- package/data/apps_launchpad/component/select.ttl +0 -34
- package/data/apps_launchpad/component/textarea.ttl +0 -35
- package/data/apps_launchpad/component/user_avatar.ttl +0 -25
- package/data/apps_lxd/component/copy_to_clipboard.ttl +0 -7
- package/data/apps_workplace/component/label-highlight.ttl +0 -7
- package/data/apps_workplace.ttl +0 -4
- package/data/apps_wpe.ttl +0 -4
- package/data/global/component/code.ttl +0 -7
- package/data/global/component/label.ttl +0 -14
- package/data/global/component/rich_text_editor.ttl +0 -7
- package/data/global/component/search_bar.ttl +0 -7
- package/data/global/component/theme_switcher.ttl +0 -7
- package/data/global/modifier/paper.ttl +0 -6
- package/data/global/pattern/dropdown_button.ttl +0 -7
- package/data/global/subcomponent/divider.ttl +0 -7
- package/data/global_form/component/checkbox_input.ttl +0 -7
- package/data/global_form/component/choices_input.ttl +0 -7
- package/data/global_form/component/combobox_input.ttl +0 -7
- package/data/global_form/component/custom_choices_input.ttl +0 -7
- package/data/global_form/component/datepicker_input.ttl +0 -7
- package/data/global_form/component/rating_input.ttl +0 -7
- package/data/global_form/component/rich_text_input.ttl +0 -7
- package/data/global_form/component/segmented_control_input.ttl +0 -7
- package/data/global_form/component/slider_input.ttl +0 -7
- package/data/global_form/component/switch_input.ttl +0 -7
- package/data/global_form/component/text_input.ttl +0 -7
- package/data/global_form/component/textarea_input.ttl +0 -7
- package/data/global_form/component/wysiwginput.ttl +0 -7
- package/data/global_form/pattern/field.ttl +0 -7
- package/data/global_form/pattern/form.ttl +0 -7
- package/data/global_form/subcomponent/field-description.ttl +0 -7
- package/data/global_form/subcomponent/field-label.ttl +0 -7
- package/data/global_form.ttl +0 -4
- package/data/site/component/blog_card.ttl +0 -7
- package/data/site/component/quote.ttl +0 -7
- package/data/site/component/rule.ttl +0 -7
- package/data/site/component/section.ttl +0 -7
- package/data/site/group/blog_cards.ttl +0 -7
- package/data/site/layout/blog_page_layout.ttl +0 -7
- package/data/site/layout/site_layout.ttl +0 -7
- package/data/site/pattern/hero-github.ttl +0 -7
- package/data/site/pattern/hero.ttl +0 -7
- package/data/site/pattern/info_table.ttl +0 -7
- package/data/site/pattern/pricing_section.ttl +0 -7
- package/data/site/pattern/pricing_table.ttl +0 -7
- package/data/site/pattern/read_more_section.ttl +0 -7
- package/data/site/pattern/skip_link.ttl +0 -7
- package/skills/component-specifier/SKILL.md +0 -412
|
@@ -5,7 +5,36 @@ description: Audit design system coverage, consistency, and quality
|
|
|
5
5
|
|
|
6
6
|
# Design Auditor
|
|
7
7
|
|
|
8
|
-
Audit design system coverage, consistency, and quality. This semantic skill analyzes
|
|
8
|
+
Audit design system coverage, consistency, and quality. This semantic skill analyzes
|
|
9
|
+
the knowledge graph to find gaps, inconsistencies, and opportunities for improvement
|
|
10
|
+
across components, patterns, layouts, and documentation.
|
|
11
|
+
|
|
12
|
+
In a fresh session, orient first:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pragma capabilities
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Working mode: assistant to a design authority
|
|
19
|
+
|
|
20
|
+
An audit produces judgments, and most of the time those judgments belong to a senior
|
|
21
|
+
designer or engineer — you are the assistant whose job is to make them successful.
|
|
22
|
+
Default to that mode: lay out the audit direction, run the queries and return
|
|
23
|
+
digestible findings, and bring each judgment to the person as a recommendation plus a
|
|
24
|
+
question rather than a verdict. They know which gaps are deliberate, which components
|
|
25
|
+
are on the way out, and which numbers actually worry the team — the graph does not.
|
|
26
|
+
|
|
27
|
+
Full autonomy is the exception, not the default: run a whole audit alone only when
|
|
28
|
+
explicitly asked to. Even then, list every judgment call made unilaterally in the
|
|
29
|
+
final report so a human can revisit them.
|
|
30
|
+
|
|
31
|
+
Decision gates — in collaboration, pause at each and resolve it WITH the person:
|
|
32
|
+
|
|
33
|
+
1. Scope: which audit dimensions matter right now, and which tiers are in scope.
|
|
34
|
+
2. What counts as concerning: agree the thresholds with the team instead of importing
|
|
35
|
+
folklore numbers — a "low" pattern count may be a young catalog, not a problem.
|
|
36
|
+
3. Prioritization of the recommendations.
|
|
37
|
+
4. Any promote/demote/deprecate suggestion — these are roadmap calls, not data calls.
|
|
9
38
|
|
|
10
39
|
## When to Use
|
|
11
40
|
|
|
@@ -16,20 +45,45 @@ Audit design system coverage, consistency, and quality. This semantic skill anal
|
|
|
16
45
|
- Preparing for design system roadmap planning
|
|
17
46
|
- Auditing before a major release
|
|
18
47
|
|
|
48
|
+
## When NOT to Use
|
|
49
|
+
|
|
50
|
+
- Auditing an APP's adoption of the design system — that is the
|
|
51
|
+
`adoption-a1-styles`/`a2`/`a3` tracks
|
|
52
|
+
- Fixing what the audit finds — route gaps to `specify-component`/`specify-pattern`,
|
|
53
|
+
missing anatomies to `anatomy-author`
|
|
54
|
+
|
|
19
55
|
## Discovery Flow
|
|
20
56
|
|
|
21
57
|
Start with a broad inventory, then drill into specific concerns:
|
|
22
58
|
|
|
59
|
+
```bash
|
|
60
|
+
pragma block list # every component, pattern, layout and subcomponent, with type and tier
|
|
61
|
+
pragma modifier list # every modifier family with its values
|
|
62
|
+
pragma tier list # the tiers blocks can live in
|
|
63
|
+
pragma graph query "…" # the audit queries below
|
|
64
|
+
pragma graph inspect <IRI-or-ds:name> # every triple on one entity
|
|
23
65
|
```
|
|
24
|
-
sem_readme(package: "design-system")
|
|
25
|
-
→ Get overview of classes and counts
|
|
26
66
|
|
|
27
|
-
|
|
28
|
-
→ Get full inventory across types
|
|
67
|
+
Two graph-query mechanics to know (shared with the sibling skills):
|
|
29
68
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
69
|
+
- Common prefixes (`ds:`, `cs:`) are applied automatically — no PREFIX preamble.
|
|
70
|
+
- Inside a SPARQL body, a local name with more than one dot
|
|
71
|
+
(`ds:global.component.button`) does not parse — use the full IRI there
|
|
72
|
+
(`<https://ds.canonical.com/global.component.button>`). Single-dot and dot-free
|
|
73
|
+
prefixed names (`ds:global`, `ds:Component`) work as-is.
|
|
74
|
+
|
|
75
|
+
Note that `block list` deliberately omits the `ds:Group` class — an audit that counts
|
|
76
|
+
only the list under-counts. The queries below go to the graph directly, so they see
|
|
77
|
+
groups too.
|
|
78
|
+
|
|
79
|
+
> The covered set is whatever the graph answers today. Query it live — never copy its
|
|
80
|
+
> output (counts, names, ratios) into documentation, PRs, or this skill.
|
|
81
|
+
|
|
82
|
+
One more live-data rule: before trusting any query, confirm its predicates against the
|
|
83
|
+
current ontology (`pragma ontology lookup ds`). The vocabulary evolves — for example,
|
|
84
|
+
`ds:usage` subsumed the former `whenToUse`/`whenNotToUse` predicates, and queries
|
|
85
|
+
against retired names return empty tables, not errors. An empty result must be
|
|
86
|
+
distinguished from a wrong query before it becomes a finding.
|
|
33
87
|
|
|
34
88
|
## Audit Dimensions
|
|
35
89
|
|
|
@@ -47,81 +101,94 @@ What's connected vs. orphaned?
|
|
|
47
101
|
|
|
48
102
|
## Key Queries
|
|
49
103
|
|
|
50
|
-
|
|
104
|
+
Documentation-completeness queries must catch BOTH the absent predicate and the empty
|
|
105
|
+
string — many entries carry a field that is present but blank, and a
|
|
106
|
+
`FILTER NOT EXISTS` alone misses them.
|
|
51
107
|
|
|
52
|
-
|
|
53
|
-
PREFIX ds: <https://ds.canonical.com/>
|
|
108
|
+
### Coverage: Components by Tier
|
|
54
109
|
|
|
55
|
-
|
|
110
|
+
```bash
|
|
111
|
+
pragma graph query "SELECT ?tierName (COUNT(?c) as ?componentCount) WHERE {
|
|
56
112
|
?c a ds:Component ;
|
|
57
113
|
ds:tier ?tier .
|
|
58
114
|
?tier ds:name ?tierName .
|
|
59
115
|
} GROUP BY ?tierName
|
|
60
|
-
ORDER BY DESC(?componentCount)
|
|
116
|
+
ORDER BY DESC(?componentCount)"
|
|
61
117
|
```
|
|
62
118
|
|
|
63
|
-
**
|
|
119
|
+
**What it asks**: where the catalog's weight sits. A tier with few components can be a
|
|
120
|
+
gap, a young tier, or a deliberate scope — which one is a question for the team.
|
|
64
121
|
|
|
65
122
|
### Coverage: UIBlock Types Distribution
|
|
66
123
|
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
SELECT ?type (COUNT(?block) as ?count) WHERE {
|
|
71
|
-
VALUES ?type { ds:Component ds:Pattern ds:Layout ds:Subcomponent }
|
|
124
|
+
```bash
|
|
125
|
+
pragma graph query "SELECT ?type (COUNT(?block) as ?count) WHERE {
|
|
126
|
+
VALUES ?type { ds:Component ds:Pattern ds:Layout ds:Subcomponent ds:Group }
|
|
72
127
|
?block a ?type .
|
|
73
|
-
} GROUP BY ?type
|
|
128
|
+
} GROUP BY ?type"
|
|
74
129
|
```
|
|
75
130
|
|
|
76
|
-
**
|
|
131
|
+
**What it asks**: the shape of the catalog. There is no universally healthy ratio —
|
|
132
|
+
compare against the previous audit's numbers and let the team judge the trend.
|
|
133
|
+
|
|
134
|
+
### Quality: Blocks Missing or Blank Summary
|
|
77
135
|
|
|
78
|
-
|
|
136
|
+
```bash
|
|
137
|
+
pragma graph query "SELECT ?block ?name WHERE {
|
|
138
|
+
?block a ?type ;
|
|
139
|
+
ds:name ?name .
|
|
140
|
+
VALUES ?type { ds:Component ds:Pattern ds:Layout ds:Subcomponent ds:Group }
|
|
141
|
+
FILTER NOT EXISTS { ?block ds:summary ?s . FILTER(STR(?s) != '') }
|
|
142
|
+
}"
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**What it asks**: which blocks have no base definition at all. These rows are also
|
|
146
|
+
what `implement-component` treats as "no spec here to implement".
|
|
79
147
|
|
|
80
|
-
|
|
81
|
-
PREFIX ds: <https://ds.canonical.com/>
|
|
148
|
+
### Quality: Components Missing or Blank Usage
|
|
82
149
|
|
|
83
|
-
|
|
150
|
+
```bash
|
|
151
|
+
pragma graph query "SELECT ?component ?name WHERE {
|
|
84
152
|
?component a ds:Component ;
|
|
85
153
|
ds:name ?name .
|
|
86
|
-
FILTER(
|
|
87
|
-
|
|
88
|
-
}
|
|
154
|
+
FILTER NOT EXISTS { ?component ds:usage ?u . FILTER(STR(?u) != '') }
|
|
155
|
+
}"
|
|
89
156
|
```
|
|
90
157
|
|
|
91
|
-
**
|
|
92
|
-
|
|
93
|
-
|
|
158
|
+
**What it asks**: where When-to-use / When-not-to-use guidance is missing (`ds:usage`
|
|
159
|
+
subsumes both). Without it, adopters cannot tell what replaces what — these gaps
|
|
160
|
+
directly hurt the adoption tracks.
|
|
94
161
|
|
|
95
|
-
|
|
96
|
-
PREFIX ds: <https://ds.canonical.com/>
|
|
162
|
+
### Quality: Components Missing or Blank Guidelines
|
|
97
163
|
|
|
98
|
-
|
|
164
|
+
```bash
|
|
165
|
+
pragma graph query "SELECT ?component ?name WHERE {
|
|
99
166
|
?component a ds:Component ;
|
|
100
167
|
ds:name ?name .
|
|
101
|
-
FILTER NOT EXISTS { ?component ds:
|
|
102
|
-
}
|
|
168
|
+
FILTER NOT EXISTS { ?component ds:guidelines ?g . FILTER(STR(?g) != '') }
|
|
169
|
+
}"
|
|
103
170
|
```
|
|
104
171
|
|
|
105
|
-
**
|
|
172
|
+
**What it asks**: where accessibility and best-practice material is missing —
|
|
173
|
+
`ds:guidelines` is its conventional home.
|
|
106
174
|
|
|
107
|
-
### Quality:
|
|
175
|
+
### Quality: Blocks Missing or Blank Anatomy
|
|
108
176
|
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
?
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
177
|
+
```bash
|
|
178
|
+
pragma graph query "SELECT ?block ?name WHERE {
|
|
179
|
+
?block a ?type ;
|
|
180
|
+
ds:name ?name .
|
|
181
|
+
VALUES ?type { ds:Component ds:Pattern }
|
|
182
|
+
FILTER NOT EXISTS { ?block ds:anatomyDsl ?a . FILTER(STR(?a) != '') }
|
|
183
|
+
}"
|
|
117
184
|
```
|
|
118
185
|
|
|
119
|
-
|
|
186
|
+
**What it asks**: `anatomy-author` candidates.
|
|
120
187
|
|
|
121
|
-
|
|
122
|
-
PREFIX ds: <https://ds.canonical.com/>
|
|
188
|
+
### Consistency: Modifier Family Usage
|
|
123
189
|
|
|
124
|
-
|
|
190
|
+
```bash
|
|
191
|
+
pragma graph query "SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
|
|
125
192
|
?family a ds:ModifierFamily ;
|
|
126
193
|
ds:name ?familyName .
|
|
127
194
|
OPTIONAL {
|
|
@@ -129,250 +196,126 @@ SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
|
|
|
129
196
|
ds:hasModifierFamily ?family .
|
|
130
197
|
}
|
|
131
198
|
} GROUP BY ?family ?familyName
|
|
132
|
-
ORDER BY DESC(?usage)
|
|
199
|
+
ORDER BY DESC(?usage)"
|
|
133
200
|
```
|
|
134
201
|
|
|
135
|
-
**
|
|
202
|
+
**What it asks**: which families are core and which are unused. A zero-usage family is
|
|
203
|
+
a question — premature abstraction, or adoption that has not landed yet?
|
|
136
204
|
|
|
137
205
|
### Consistency: Components Without Modifier Families
|
|
138
206
|
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
SELECT ?component ?name WHERE {
|
|
207
|
+
```bash
|
|
208
|
+
pragma graph query "SELECT ?component ?name WHERE {
|
|
143
209
|
?component a ds:Component ;
|
|
144
210
|
ds:name ?name .
|
|
145
211
|
FILTER NOT EXISTS { ?component ds:hasModifierFamily ?mf }
|
|
146
|
-
}
|
|
212
|
+
}"
|
|
147
213
|
```
|
|
148
214
|
|
|
149
|
-
**
|
|
215
|
+
**What it asks**: candidates to review — not every component needs modifiers, but
|
|
216
|
+
many do.
|
|
150
217
|
|
|
151
218
|
### Usage: Orphaned Subcomponents
|
|
152
219
|
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
SELECT ?sub ?name WHERE {
|
|
220
|
+
```bash
|
|
221
|
+
pragma graph query "SELECT ?sub ?name WHERE {
|
|
157
222
|
?sub a ds:Subcomponent ;
|
|
158
223
|
ds:name ?name .
|
|
159
224
|
FILTER NOT EXISTS { ?sub ds:parentComponent ?parent }
|
|
160
|
-
}
|
|
225
|
+
}"
|
|
161
226
|
```
|
|
162
227
|
|
|
163
|
-
**
|
|
228
|
+
**What it asks**: subcomponents without parents — either the relationship is missing,
|
|
229
|
+
or the block should be promoted to Component. Which one is a team call.
|
|
164
230
|
|
|
165
231
|
### Usage: Components With Subcomponents
|
|
166
232
|
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
SELECT ?component ?componentName (COUNT(?sub) as ?subCount) WHERE {
|
|
233
|
+
```bash
|
|
234
|
+
pragma graph query "SELECT ?component ?componentName (COUNT(?sub) as ?subCount) WHERE {
|
|
171
235
|
?component a ds:Component ;
|
|
172
236
|
ds:name ?componentName .
|
|
173
237
|
?sub ds:parentComponent ?component .
|
|
174
238
|
} GROUP BY ?component ?componentName
|
|
175
|
-
ORDER BY DESC(?subCount)
|
|
239
|
+
ORDER BY DESC(?subCount)"
|
|
176
240
|
```
|
|
177
241
|
|
|
178
|
-
**
|
|
242
|
+
**What it asks**: where composition complexity concentrates. A very high count is a
|
|
243
|
+
prompt to ask whether the decomposition still serves its users.
|
|
179
244
|
|
|
180
245
|
### Cross-Tier: Potential Promotion Candidates
|
|
181
246
|
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
SELECT ?component ?name ?tierName WHERE {
|
|
247
|
+
```bash
|
|
248
|
+
pragma graph query "SELECT ?component ?name ?tierName WHERE {
|
|
186
249
|
?component a ds:Component ;
|
|
187
250
|
ds:name ?name ;
|
|
188
251
|
ds:tier ?tier .
|
|
189
252
|
?tier ds:name ?tierName .
|
|
190
|
-
|
|
191
|
-
# Find non-global components that might be universal
|
|
192
|
-
FILTER(?tier != <https://ds.canonical.com/data/global>)
|
|
193
|
-
|
|
194
|
-
# Heuristic: has modifier families (suggests maturity)
|
|
253
|
+
FILTER(?tier != ds:global)
|
|
195
254
|
FILTER EXISTS { ?component ds:hasModifierFamily ?mf }
|
|
196
|
-
FILTER EXISTS { ?component ds:summary ?d }
|
|
197
|
-
FILTER EXISTS { ?component ds:
|
|
198
|
-
}
|
|
255
|
+
FILTER EXISTS { ?component ds:summary ?d . FILTER(STR(?d) != '') }
|
|
256
|
+
FILTER EXISTS { ?component ds:usage ?u . FILTER(STR(?u) != '') }
|
|
257
|
+
}"
|
|
199
258
|
```
|
|
200
259
|
|
|
201
|
-
**
|
|
260
|
+
**What it asks**: well-documented tier-specific components that MIGHT be universal.
|
|
261
|
+
Promotion is a roadmap decision — present these as candidates, never as conclusions.
|
|
262
|
+
|
|
263
|
+
## Audit Report
|
|
202
264
|
|
|
203
|
-
|
|
265
|
+
Build the report from the live query results, structured as:
|
|
204
266
|
|
|
205
267
|
```markdown
|
|
206
268
|
## Design System Audit Report
|
|
207
269
|
|
|
208
|
-
**Generated:** {date}
|
|
209
|
-
**Package:** design-system
|
|
210
|
-
**Version:** {version}
|
|
211
|
-
|
|
212
|
-
---
|
|
270
|
+
**Generated:** {date} **Scope:** {tiers/dimensions agreed at the scope gate}
|
|
213
271
|
|
|
214
272
|
### Executive Summary
|
|
273
|
+
Counts per UIBlock type and per tier, documentation coverage percentages, and the
|
|
274
|
+
headline findings — with each "concern" label traced to a threshold the team agreed,
|
|
275
|
+
not an imported one.
|
|
215
276
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
| Subcomponents | {n} | {status} |
|
|
222
|
-
| Modifier Families | {n} | {status} |
|
|
223
|
-
| Documentation Coverage | {%} | {status} |
|
|
224
|
-
|
|
225
|
-
**Overall Health:** {Good/Needs Attention/Critical}
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
### Coverage Analysis
|
|
230
|
-
|
|
231
|
-
#### By Tier
|
|
232
|
-
|
|
233
|
-
| Tier | Components | Patterns | Layouts |
|
|
234
|
-
|------|------------|----------|---------|
|
|
235
|
-
| global | {n} | {n} | {n} |
|
|
236
|
-
| apps | {n} | {n} | {n} |
|
|
237
|
-
| site | {n} | {n} | {n} |
|
|
238
|
-
| ... | ... | ... | ... |
|
|
239
|
-
|
|
240
|
-
**Observations:**
|
|
241
|
-
- {observation 1}
|
|
242
|
-
- {observation 2}
|
|
243
|
-
|
|
244
|
-
**Recommendations:**
|
|
245
|
-
- {recommendation 1}
|
|
246
|
-
- {recommendation 2}
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
### Quality Analysis
|
|
251
|
-
|
|
252
|
-
#### Documentation Completeness
|
|
253
|
-
|
|
254
|
-
| Property | Present | Missing | Coverage |
|
|
255
|
-
|----------|---------|---------|----------|
|
|
256
|
-
| description | {n} | {n} | {%} |
|
|
257
|
-
| whenToUse | {n} | {n} | {%} |
|
|
258
|
-
| whenNotToUse | {n} | {n} | {%} |
|
|
259
|
-
| guidelines | {n} | {n} | {%} |
|
|
260
|
-
| figmaLink | {n} | {n} | {%} |
|
|
261
|
-
|
|
262
|
-
**Components Needing Attention:**
|
|
263
|
-
1. {component}: missing {properties}
|
|
264
|
-
2. {component}: missing {properties}
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
### Consistency Analysis
|
|
269
|
-
|
|
270
|
-
#### Modifier Family Usage
|
|
271
|
-
|
|
272
|
-
| Family | Components Using | Coverage |
|
|
273
|
-
|--------|-----------------|----------|
|
|
274
|
-
| importance | {n} | {assessment} |
|
|
275
|
-
| criticality | {n} | {assessment} |
|
|
276
|
-
| density | {n} | {assessment} |
|
|
277
|
-
| ... | ... | ... |
|
|
278
|
-
|
|
279
|
-
**Inconsistencies Found:**
|
|
280
|
-
- {inconsistency 1}
|
|
281
|
-
- {inconsistency 2}
|
|
282
|
-
|
|
283
|
-
---
|
|
284
|
-
|
|
285
|
-
### Structural Analysis
|
|
286
|
-
|
|
287
|
-
#### Component Composition
|
|
288
|
-
|
|
289
|
-
| Component | Subcomponents | Assessment |
|
|
290
|
-
|-----------|---------------|------------|
|
|
291
|
-
| {name} | {n} | {assessment} |
|
|
292
|
-
|
|
293
|
-
**Orphaned Elements:**
|
|
294
|
-
- {list of orphaned subcomponents}
|
|
295
|
-
|
|
296
|
-
---
|
|
277
|
+
### Findings per dimension
|
|
278
|
+
Coverage / Quality / Consistency / Usage — for each: the numbers, the specific blocks
|
|
279
|
+
affected, and the open question or recommendation. Route each actionable gap to its
|
|
280
|
+
skill: missing spec → specify-component / specify-pattern; missing anatomy →
|
|
281
|
+
anatomy-author.
|
|
297
282
|
|
|
298
283
|
### Recommendations
|
|
284
|
+
Prioritized WITH the person (decision gate 3). Mark which items are data-driven
|
|
285
|
+
(e.g. "12 components have a blank summary") and which are judgment
|
|
286
|
+
(e.g. "consider promoting X to global").
|
|
299
287
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
2. {action item}
|
|
303
|
-
|
|
304
|
-
#### Medium Priority
|
|
305
|
-
1. {action item}
|
|
306
|
-
2. {action item}
|
|
307
|
-
|
|
308
|
-
#### Low Priority / Nice to Have
|
|
309
|
-
1. {action item}
|
|
310
|
-
2. {action item}
|
|
311
|
-
|
|
312
|
-
---
|
|
313
|
-
|
|
314
|
-
### Appendix: Raw Data
|
|
315
|
-
|
|
316
|
-
<details>
|
|
317
|
-
<summary>Components Missing Documentation</summary>
|
|
318
|
-
|
|
319
|
-
{list}
|
|
320
|
-
|
|
321
|
-
</details>
|
|
322
|
-
|
|
323
|
-
<details>
|
|
324
|
-
<summary>Unused Modifier Families</summary>
|
|
325
|
-
|
|
326
|
-
{list}
|
|
327
|
-
|
|
328
|
-
</details>
|
|
288
|
+
### Appendix
|
|
289
|
+
The raw query results the findings rest on, in collapsible sections.
|
|
329
290
|
```
|
|
330
291
|
|
|
331
292
|
## Workflow
|
|
332
293
|
|
|
333
294
|
### Quick Health Check
|
|
334
295
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
2. Run "Components Missing Descriptions" query
|
|
342
|
-
→ If > 20% missing, flag as concern
|
|
343
|
-
|
|
344
|
-
3. Run "Modifier Family Usage" query
|
|
345
|
-
→ If any family has 0 usage, investigate
|
|
296
|
+
```text
|
|
297
|
+
1. pragma block list + pragma modifier list — the big picture
|
|
298
|
+
2. Run the three Quality queries (summary, usage, guidelines)
|
|
299
|
+
3. Run Modifier Family Usage
|
|
300
|
+
4. Report the counts and the specific blocks; agree with the person what, if
|
|
301
|
+
anything, is alarming
|
|
346
302
|
```
|
|
347
303
|
|
|
348
304
|
### Full Audit
|
|
349
305
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
2. Coverage queries (all)
|
|
357
|
-
|
|
358
|
-
3. Quality queries (all)
|
|
359
|
-
|
|
360
|
-
4. Consistency queries (all)
|
|
361
|
-
|
|
362
|
-
5. Usage queries (all)
|
|
363
|
-
|
|
364
|
-
6. Generate report using template
|
|
365
|
-
|
|
366
|
-
7. Prioritize recommendations
|
|
306
|
+
```text
|
|
307
|
+
1. Scope gate: agree dimensions and tiers with the person
|
|
308
|
+
2. Inventory: block list, tier list, modifier list, types-distribution query
|
|
309
|
+
3. Coverage queries, Quality queries, Consistency queries, Usage queries
|
|
310
|
+
4. Compare against the previous audit's report where one exists
|
|
311
|
+
5. Draft the report; resolve interpretation and priorities with the person
|
|
367
312
|
```
|
|
368
313
|
|
|
369
314
|
### Targeted Audit
|
|
370
315
|
|
|
371
|
-
For specific concerns:
|
|
372
|
-
|
|
373
316
|
| Concern | Queries to Run |
|
|
374
317
|
|---------|----------------|
|
|
375
|
-
| "Are we missing patterns?" | Coverage by tier,
|
|
318
|
+
| "Are we missing patterns?" | Coverage by tier, types distribution |
|
|
376
319
|
| "Is documentation complete?" | All Quality queries |
|
|
377
320
|
| "Are modifiers consistent?" | Modifier Family Usage, Components Without Modifiers |
|
|
378
321
|
| "Any orphaned elements?" | Orphaned Subcomponents |
|
|
@@ -380,54 +323,34 @@ For specific concerns:
|
|
|
380
323
|
|
|
381
324
|
## Interpreting Results
|
|
382
325
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
| Metric | Good | Warning | Critical |
|
|
386
|
-
|--------|------|---------|----------|
|
|
387
|
-
| Description coverage | >90% | 70-90% | <70% |
|
|
388
|
-
| whenToUse coverage | >80% | 60-80% | <60% |
|
|
389
|
-
| Orphaned elements | 0 | 1-3 | >3 |
|
|
390
|
-
| Unused modifier families | 0-1 | 2-3 | >3 |
|
|
391
|
-
| Component:Pattern ratio | 2:1 to 4:1 | 5:1 to 7:1 | >7:1 |
|
|
392
|
-
|
|
393
|
-
### Common Issues and Fixes
|
|
394
|
-
|
|
395
|
-
| Issue | Likely Cause | Recommended Action |
|
|
396
|
-
|-------|--------------|-------------------|
|
|
397
|
-
| Many components missing descriptions | Rapid growth without documentation | Documentation sprint |
|
|
398
|
-
| Low pattern count | Focus on components over UX | Pattern extraction workshop |
|
|
399
|
-
| Unused modifier families | Premature abstraction | Remove or document intended use |
|
|
400
|
-
| Orphaned subcomponents | Refactoring without cleanup | Link to parents or promote |
|
|
401
|
-
| Tier imbalance | Organic growth | Review tier definitions |
|
|
402
|
-
|
|
403
|
-
## Following next_steps
|
|
404
|
-
|
|
405
|
-
After running queries, sem tools provide contextual guidance:
|
|
406
|
-
|
|
407
|
-
```json
|
|
408
|
-
{
|
|
409
|
-
"results": [...],
|
|
410
|
-
"next_steps": [
|
|
411
|
-
"Use sem_context on specific components to understand relationships",
|
|
412
|
-
"Use sem_describe to see full property definitions"
|
|
413
|
-
]
|
|
414
|
-
}
|
|
415
|
-
```
|
|
326
|
+
Interpretation is where the working mode matters most. The queries return facts; what
|
|
327
|
+
they MEAN is judged against the team's intent:
|
|
416
328
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
5. **Share reports with stakeholders**: Visibility drives improvement
|
|
426
|
-
6. **Automate recurring audits**: Consider scheduling monthly checks
|
|
329
|
+
- Prefer trends over absolutes: compare with the previous audit rather than against a
|
|
330
|
+
fixed "healthy" number.
|
|
331
|
+
- A gap can be deliberate (out-of-scope tier, deprecation in progress) — ask before
|
|
332
|
+
flagging.
|
|
333
|
+
- Distinguish data findings (a blank field IS blank) from judgment findings (a ratio
|
|
334
|
+
"looks" off) and label them differently in the report.
|
|
335
|
+
- Follow up drill-downs with `pragma graph inspect <IRI>` on the specific blocks a
|
|
336
|
+
query surfaced, and `pragma block lookup <Name>` for the human-readable view.
|
|
427
337
|
|
|
428
338
|
## Limitations
|
|
429
339
|
|
|
430
340
|
- Cannot assess visual design quality (only metadata)
|
|
431
341
|
- Cannot verify Figma link validity (only presence)
|
|
432
342
|
- Pattern quality is subjective (coverage is objective)
|
|
433
|
-
- Does not analyze implementation
|
|
343
|
+
- Does not analyze implementation packages — the graph records what is DOCUMENTED,
|
|
344
|
+
and packages ship what is BUILT; the two run ahead of each other in both directions
|
|
345
|
+
(see `adoption-a2-components` for the export check)
|
|
346
|
+
|
|
347
|
+
## Support
|
|
348
|
+
|
|
349
|
+
If this skill leads somewhere broken — a command that errors, guidance that
|
|
350
|
+
contradicts what the live system answers, a gap the flow cannot cover — you are not
|
|
351
|
+
stuck:
|
|
352
|
+
|
|
353
|
+
- Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
|
|
354
|
+
include the skill name, what was run, and expected vs. actual outcome.
|
|
355
|
+
- Or contact the design-system team owners directly through your organization's
|
|
356
|
+
professional messaging channels for assistance.
|