Repository navigation
Fixes #37577: Restyle Ontology Studio to match the design handoff - #37587
Conversation
Visual-only restyle of Ontology Studio: AI-mode header, canvas toolbar (version switch, search, full screen), unified concept side panel, new concept panel sections, floating conflicts/health cards, All ontologies surfaces, overview stat cards, settings/tasks dialogs and review pills.
- Keep unsaved concept field edits across a relation/property write in the same panel - Filter the ontology picker list by the typed query - Keep Tasks in the AI header whenever the sub-bar is not shown - Never report a pending or failed validation as clean (Overview, conflicts card) - Hide All ontologies Add concept on the Ontology picker surface - Show the conflicts and health cards on Tree as well as Graph - Guard the Settings dialog close and refresh the working diff on save
…tion as clean - Pad the Tree surface on the right while the conflicts/health cards float - Hide the All ontologies health card in Data mode, as the per-ontology view does - Conflicts card shows the clean note only once validation answered
… drawn header border
- Concept search results open upward from the bottom toolbar so the canvas never clips them - Settings dialog loads the full ontology (owners, reviewers) before showing the form - Tree view offers Add concept like Graph view - Disabled Publish explains why on hover - Edit mode says when the concept's working copy failed to load
d858dcc to
058d80d
Compare
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsRestyling Ontology Studio also changes concept-editing state, validation displays, and navigation, so regressions could disrupt ontology authoring workflows. Restyles Ontology Studio to match the design handoff across the AI header, canvas toolbar, concept panel, floating cards, All ontologies, Ontology surface, Settings and Tasks, with no feature or permission changes. Tasks empty queue now uses the shared NoDataPlaceholder as the ADR requires, and the Tasks dialog scroll dividers were corrected. No open issues remain. ✅ 2 closed✅ Quality: Tasks empty queue hand-rolls an empty state, contradicting the ADR
✅ Quality: New Tasks dialog omits dividers="scroll"
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
…ntology Studio restyle #37587 and #37607 restyled Ontology Studio; the ontology E2E specs and visual scenarios were not updated with it. Product regressions fixed: - A Concepts row opened no panel: OntologyGraphView waited for a selection nothing made; it now selects the requested concept. - The canvas no longer re-fit a wholly visible graph when a drawer opened, so nodes sat under the drawer; restored in settleAfterCanvasResize. - A discarded "New concept" form reappeared after Edit -> View -> Edit; the editor state is cleared when leaving Edit. Tests updated to the intended redesign: drawers overlay the header and canvas (close them before clicking covered controls), Advanced disclosure in settings, new change-count copy, release export filename, health card Review step, column count toggle, 62px sub-bar, and Import/Export dialogs. Visual: model the new working/validation and export reads, update the ontology scenarios to the current UI, drop the removed publication picker, and refresh the baselines CI rendered.
…ntology Studio restyle (#37641) * Fixes #37640: Fix ontology Playwright and visual failures after the Ontology Studio restyle #37587 and #37607 restyled Ontology Studio; the ontology E2E specs and visual scenarios were not updated with it. Product regressions fixed: - A Concepts row opened no panel: OntologyGraphView waited for a selection nothing made; it now selects the requested concept. - The canvas no longer re-fit a wholly visible graph when a drawer opened, so nodes sat under the drawer; restored in settleAfterCanvasResize. - A discarded "New concept" form reappeared after Edit -> View -> Edit; the editor state is cleared when leaving Edit. Tests updated to the intended redesign: drawers overlay the header and canvas (close them before clicking covered controls), Advanced disclosure in settings, new change-count copy, release export filename, health card Review step, column count toggle, 62px sub-bar, and Import/Export dialogs. Visual: model the new working/validation and export reads, update the ontology scenarios to the current UI, drop the removed publication picker, and refresh the baselines CI rendered. * Refresh the Playwright impact map for the updated ontology specs * fix(ui): sort OntologyProfileReport import in visualData
Describe your changes:
Fixes #37577
Restyles Ontology Studio to match the design handoff: placement, layout and look and feel. The goal is no change to features. Every action that existed before is still reachable, with the same permissions, draft guard and API calls; only where it sits and how it looks changed.
Classic mode: the page header stays as it is until design delivers a classic-mode header. Everything below the header follows the handoff in both modes.
What moved or changed:
?fullscreen=true).Fixes made along the way (each has a test that fails without it):
Type of change:
High-level design:
OntologyExplorerPage.tsx):renderCanvasAreawraps each surface in a relative container that hosts the floating banner and the bottomrenderCanvasToolbar(version chip, search slot and full screen). Full screen is a URL flag that pins the shellfixed inset-0.OntologyStudioDrawer(new) is the one side-panel frame, used by the concept, relation, new-concept and definition editors.placement="beside"keeps it in flow, so the canvas keeps its width and the header stays clickable;"overlay"portals into the canvas host viaOntologyStudioDrawerHostContext.useOntologyConceptEditornow returns the form state.ConceptEditorProvider, which uses coreHookFormso it shares the provider's react-hook-form copy, wraps the inspector body and footer.EditableConceptInspectorkeeps the inspector mounted while the working copy loads and resets the form only when the user leaves Edit.useDraftConceptkeeps the previous data for the same concept across refetches, so a relation write does not unmount the editor.anchorViewportToTopLeft) and only reveals the selected node if it is hidden, instead of re-fitting, so nodes no longer jump when the side panel opens.en-us.json, synced and translated into every locale.Tests:
Use cases covered
Unit tests
OntologyOverview.test.tsx.OntologyGraphView.test.tsxOntologyExplorerPage.test.tsxandOntologyExplorerPage.publication.test.tsxOntologyQueryPicker.test.tsxandOntologyQueryPicker.counts.test.tsxAllOntologiesGraphView.test.tsxOntologyConceptEditor.test.tsxOntologyConceptAssets.test.tsxOntologyAuthoringWorkspace.test.tsxOntologyNewClassPanel.test.tsxOntologyHealthPanel.test.tsxOntologyReviewBanner.test.tsxOntologyTasksDrawer.test.tsxOntologyImportExportMenu.test.tsxOntologyVersionChip.test.tsxOntologyStudioSubBar.test.tsxjest src/components/governance/ontology src/pages/OntologyExplorerPage src/components/OntologyExplorer→ 134 suites, 1575 tests passed onc4eb52e7b6a.tsc --noEmit: 0 errors in files this PR touches. The 11 remaining TS4023/TS4053 errors are in untouched files and come from the locally built core-componentsdisttypes.yarn lint:playwright: 0 errors.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/, plus the helpers inplaywright/utils/ontologyStudio.ts:OntologyNativeStudio,OntologyNativeImport,OntologyNativeImportReviewandOntologyNativeExportOntologyReviewandOntologyReviewChangesOntologyStudioFlows,OntologyPublishedView,OntologyAuthoringSafetyandOntologyNativeTreeShellOntologyConceptDrawer,OntologyLargeGraph,OntologyNativeAuthoringandOntologyNativeRelationsOntologyStudioPermissionsandOntologyQueryScopeOntologyConceptDrawer,OntologyNativeAuthoring,OntologyNativeRelationsandOntologyStudioFlows: 49 passed.OntologyAuthoringSafety,OntologyNativeImport,OntologyNativeOperations,OntologyNativeRelations,OntologyNativeStudio,OntologyNativeTreeShell,OntologyPublishedView,OntologyStudioFlowsandOntologyStudioIsolatedToggle: 49 passed.OntologyNativeAuthoring,OntologyNativeExport,OntologyQueryScopeandOntologyStudioPermissions: 14 passed.deleteImpactand export endpoints return 404.superPropertiesis rejected.make playwright_affected_run). The merge queue runs the full suite.Manual testing performed
/governance/ontologyand signed in as admin.UI screen recording:
Recorded at
c4eb52e7b6a: 1920×1080, 114 s, AI mode, real server responses with no route mocks. Each step is captioned. The recording covers:On this local server, the validation endpoint returns an error (so the conflicts card shows it), and All ontologies → Graph shows "too many ontologies to show as one graph" because of the local catalog size. Both are existing behaviour.
ontology-studio-handoff.mp4
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.2a63b5a8a93, thenae7065d6cfcand619b2bab6de. Every 🔴 was fixed inae7065d6cfc, the last two passes found no 🔴, and the final 🟡 fixes are inc4eb52e7b6a, which got an inline check only.toBeAttachedinOntologyReview.spec: the test still asserts the text andtoHaveAccessibleDescription.