feat(ui): add accessible tooltips and enforce compact operational typography

This commit is contained in:
Codex
2026-11-11 23:53:26 +03:00
parent 601ca62e9a
commit 59411f4937
18 changed files with 514 additions and 57 deletions
+121 -34
View File
@@ -6,90 +6,177 @@
"id": "calendar-popover",
"classification": "planned-primitive",
"priority": "P1",
"referenceSources": ["launcher", "task-manager"],
"referenceSources": [
"launcher",
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["dropdown", "button", "field"],
"requiredBehavior": ["portal", "locale-aware labels", "single date", "date range", "keyboard navigation"],
"dependsOn": [
"dropdown",
"button",
"field"
],
"requiredBehavior": [
"portal",
"locale-aware labels",
"single date",
"date range",
"keyboard navigation"
],
"reasonNotBaseline": "Current Launcher and Task Manager implementations must be reconciled before one API is declared canonical."
},
{
"id": "profile-menu",
"classification": "planned-pattern",
"priority": "P1",
"referenceSources": ["launcher", "task-manager"],
"referenceSources": [
"launcher",
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["dropdown", "button", "status-badge"],
"requiredBehavior": ["avatar trigger", "identity summary", "role/workspace switch", "logout action"],
"dependsOn": [
"dropdown",
"button",
"status-badge"
],
"requiredBehavior": [
"avatar trigger",
"identity summary",
"role/workspace switch",
"logout action"
],
"reasonNotBaseline": "Identity and role data contracts differ between Hub and Ops and must remain application-owned."
},
{
"id": "action-dropdown",
"classification": "planned-pattern",
"priority": "P1",
"referenceSources": ["task-manager", "launcher"],
"referenceSources": [
"task-manager",
"launcher"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["dropdown"],
"requiredBehavior": ["commands", "disabled rows", "danger row", "optional groups", "keyboard navigation"],
"dependsOn": [
"dropdown"
],
"requiredBehavior": [
"commands",
"disabled rows",
"danger row",
"optional groups",
"keyboard navigation"
],
"reasonNotBaseline": "Floating behavior is stable; command-row API still needs validation against Ops consumers."
},
{
"id": "data-table",
"classification": "planned-pattern",
"priority": "P1",
"referenceSources": ["launcher", "task-manager"],
"referenceSources": [
"launcher",
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["button", "select", "status-badge", "field"],
"requiredBehavior": ["toolbar", "responsive overflow", "row actions", "editable cells", "loading", "empty state"],
"dependsOn": [
"button",
"select",
"status-badge",
"field"
],
"requiredBehavior": [
"toolbar",
"responsive overflow",
"row actions",
"editable cells",
"loading",
"empty state"
],
"reasonNotBaseline": "The library should own presentation and interaction slots, not adopt Launcher entity schemas or Plane table models."
},
{
"id": "avatar-stack",
"classification": "planned-primitive",
"priority": "P1",
"referenceSources": ["engine", "task-manager"],
"referenceSources": [
"engine",
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["dropdown"],
"requiredBehavior": ["overflow count", "presence", "picker mode", "fallback initials"],
"dependsOn": [
"dropdown"
],
"requiredBehavior": [
"overflow count",
"presence",
"picker mode",
"fallback initials"
],
"reasonNotBaseline": "Engine picker behavior and Task Manager presence semantics must not be coupled accidentally."
},
{
"id": "service-rail-card",
"classification": "product-pattern",
"priority": "P2",
"referenceSources": ["launcher"],
"referenceSources": [
"launcher"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["glass-surface", "status-badge", "button"],
"requiredBehavior": ["ambient media", "access status", "selected state", "open/request action"],
"dependsOn": [
"glass-surface",
"status-badge",
"button"
],
"requiredBehavior": [
"ambient media",
"access status",
"selected state",
"open/request action"
],
"reasonNotBaseline": "Likely reusable for product catalogs, but current contract is tightly connected to Launcher service data."
},
{
"id": "work-item-card",
"classification": "product-pattern",
"priority": "P2",
"referenceSources": ["task-manager"],
"referenceSources": [
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["glass-surface", "avatar-stack", "status-badge", "action-dropdown"],
"requiredBehavior": ["selected state", "drag state", "assignees", "dates", "quick actions"],
"dependsOn": [
"glass-surface",
"avatar-stack",
"status-badge",
"action-dropdown"
],
"requiredBehavior": [
"selected state",
"drag state",
"assignees",
"dates",
"quick actions"
],
"reasonNotBaseline": "The visual pattern is mature, but task-domain fields must be separated from the reusable card shell."
},
{
"id": "tooltip",
"classification": "missing-primitive",
"priority": "P2",
"referenceSources": ["launcher", "task-manager", "engine"],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["dropdown"],
"requiredBehavior": ["hover", "focus", "delay", "viewport placement"],
"reasonNotBaseline": "Needs a small dedicated accessibility contract rather than reuse of an application tooltip."
},
{
"id": "empty-loading-error",
"classification": "planned-pattern",
"priority": "P2",
"referenceSources": ["launcher", "seo", "task-manager"],
"referenceSources": [
"launcher",
"seo",
"task-manager"
],
"expectedPackage": "@nodedc/ui-react",
"dependsOn": ["button", "status-badge"],
"requiredBehavior": ["empty message", "retry", "loading progress", "fatal error"],
"dependsOn": [
"button",
"status-badge"
],
"requiredBehavior": [
"empty message",
"retry",
"loading progress",
"fatal error"
],
"reasonNotBaseline": "Copy and domain actions vary; the layout contract still needs examples from all product families."
}
]
+36 -4
View File
@@ -429,7 +429,8 @@
"Floating header supports arrow-key movement and Shift+arrow resizing. Bounds stay inside the viewport. Resize affordances have no hover decoration.",
"Inspectors inside a Window use its full available content width.",
"End inspectors opt into resizable with an optional initialRect; existing eight edge geometry and keyboard resize are shared with floating windows.",
"Application-owned rect restores modeless window geometry on reopen and external undo/import. onRectCommit reports one completed drag/resize or keyboard step; viewport fitting never overwrites saved geometry."
"Application-owned rect restores modeless window geometry on reopen and external undo/import. onRectCommit reports one completed drag/resize or keyboard step; viewport fitting never overwrites saved geometry.",
"Enforced operational typography: independent md/13px base for UI roots and portals; section/value text md, Description/status/error copy sm/12px, only canonical page/window titles use title/18px. Shared build-time typography contract and catalog example prevent browser-default size regressions."
]
},
{
@@ -467,7 +468,8 @@
"Rectangle, maximized state, visibility, activation and z-order are controlled by the application.",
"resizeIndicator=false hides only the corner glyph; pointer hit area, cursor and keyboard resizing remain available.",
"Use WorkspaceWindow for auxiliary views inside a stage; modal workflows and viewport inspectors continue to use Window.",
"Dragging and resizing remain clamped when the workspace changes size, including when it becomes smaller than the requested minimum."
"Dragging and resizing remain clamped when the workspace changes size, including when it becomes smaller than the requested minimum.",
"Enforced operational typography: independent md/13px base for UI roots and portals; section/value text md, Description/status/error copy sm/12px, only canonical page/window titles use title/18px. Shared build-time typography contract and catalog example prevent browser-default size regressions."
]
},
{
@@ -743,7 +745,8 @@
"Applications supply routes, profile data, stage media and panel content without changing shell geometry.",
"Light panels use the SEO white surface and shadow tokens rather than a dark shell with inverted text.",
"A layout-level save action belongs to ApplicationPanel.utilityActions and is never duplicated inside individual content cards.",
"ApplicationPanel allowFullscreen exposes an owned full-window context; the whole panel and its header move atomically, preserving the renderer and body-portaled inspectors."
"ApplicationPanel allowFullscreen exposes an owned full-window context; the whole panel and its header move atomically, preserving the renderer and body-portaled inspectors.",
"ApplicationPanel establishes md/13px operational typography independent of the host; its page title alone uses title/18px. Semantic section headings remain md; explanatory copy uses Description/sm."
]
},
{
@@ -1192,7 +1195,8 @@
"summary": "Secondary explanatory copy matching SettingsCard descriptions.",
"rules": [
"Use the same inherited family, regular 400 weight, small font token, muted text token and 1.4 line height for explanatory paragraphs. Do not restyle per feature.",
"Use role=status for explanatory pending/result copy. SettingsCard applies the same contract to unclassed body paragraphs as a fallback, without changing headings or controls."
"Use role=status for explanatory pending/result copy. SettingsCard applies the same contract to unclassed body paragraphs as a fallback, without changing headings or controls.",
"Enforced operational typography: independent md/13px base for UI roots and portals; section/value text md, Description/status/error copy sm/12px, only canonical page/window titles use title/18px. Shared build-time typography contract and catalog example prevent browser-default size regressions."
]
},
{
@@ -1385,6 +1389,34 @@
"Optional geometry sets width, height and radius with a 32 × 12 px minimum. At small dimensions the text and padding shrink proportionally; both contrast layers share the same type geometry. Consumer owns header-group offset."
],
"documentation": "../docs/LEVEL_BUTTON.md"
},
{
"id": "tooltip",
"status": "baseline",
"package": "@nodedc/ui-react",
"exports": [
"Tooltip",
"TooltipProps"
],
"domContract": [
"nodedc-tooltip-anchor",
"nodedc-tooltip"
],
"summary": "Neutral non-interactive explanation on hover, focus or touch.",
"behavior": [
"portal to active fullscreen element or body",
"shared viewport clamp and flip",
"hoverable content and focus persistence",
"Escape dismisses tooltip without closing its parent",
"one tooltip at a time",
"scroll/resize reposition",
"reduced-motion fade disabled"
],
"rules": [
"Use focusable for read-only graphics; action triggers own their focus.",
"Content is descriptive, never a menu or interactive form.",
"No new app-local tooltip geometry or layer management."
]
}
]
}