Repository navigation
Fixes 36429: Restyle Ontology Studio to the new design in AI mode - #36433
Conversation
AI mode only (useIsAiMode); classic mode renders unchanged. No logic, API, permission or test-id changes; every existing control stays reachable in AI mode. - Header on core PageHeader (gradient variant), underline mode tabs, design action order; button-border segmented sub-bar - Graph chrome: dotted canvas, search in the sub-bar, Model/Data segmented control, joined zoom controls, health panel, tree view, connect pill and relationship picker - Concept inspector/editor sections, add forms and asset picker - Definitions workspace tables, property/constraint editors, settings and create-ontology form, AI draft review panel - Scope picker, library dialog, review & publish, releases and native import/export - Empty catalog uses the glossary-style FeaturesPlaceholder
- AI-mode all-ontologies tree hides the per-ontology heading only when the tree's own header names it, so ontologies whose concepts are all unconnected keep their name - Property editor Advanced section reopens on each save that leaves an advanced field invalid instead of staying collapsed over the error
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
In AI mode the description sat in the fixed header, so a long description could push the scrollable sections out of reach. It now opens the scrollable body, as in the design.
…pdate' into anuj-kumary/ontology-studio-ui-update
Code Review ✅ Approved🟡 Medium risk · Restyling Ontology Studio across 69 UI files and adding AI-mode controls could disrupt ontology editing or publication workflows if wiring differs. Restyles Ontology Studio to the new design in AI mode only, gated on 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 |
| <Box className="tw:rounded-lg tw:bg-secondary_alt tw:p-4" direction="col"> | ||
| <Typography as="p" className="tw:m-0" size="text-sm"> | ||
| {title} | ||
| </Typography> | ||
| {hint ? ( | ||
| <Typography as="p" className="tw:m-0 tw:text-tertiary" size="text-xs"> |
There was a problem hiding this comment.
Local styles bypass core defaults
ConceptEmptyState sets padding, background, and radius on core Box, then sets text colour through a class on Typography. The repository requires callers to use core props and variants for appearance; Box is layout-only. Use an appropriate core surface and Typography color instead. The same pattern appears in ConceptFormPreview and elsewhere in the AI branches. This repository requirement must be satisfied before merging.
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| const AI_FIELD_ORDER = [ | ||
| 'displayName', | ||
| 'description', | ||
| 'owners', | ||
| 'reviewers', | ||
| 'layer', | ||
| 'name', | ||
| 'iri', | ||
| 'namespace', | ||
| ]; |
There was a problem hiding this comment.
Helpers remain in component files
The new AI_FIELD_ORDER constant and pure unlabelled helper sit in the component file. The repository requires module-level constants in sibling .constants.ts files and pure helpers in .utils.ts files. Move them there before merging. The same pattern appears in OntologyControlButtons.tsx and OntologyMemoryReviewPanel.tsx.
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| <Typography | ||
| aria-level={3} | ||
| role="heading" | ||
| size="text-sm" | ||
| weight="semibold"> |
There was a problem hiding this comment.
Section titles skip heading elements
The new section title uses role="heading" and aria-level instead of a heading element. The repository requires semantic elements first. Use Typography as="h3" here and remove the role-based replacement. This repository requirement must be satisfied before merging.
| <Typography | |
| aria-level={3} | |
| role="heading" | |
| size="text-sm" | |
| weight="semibold"> | |
| <Typography | |
| as="h3" | |
| size="text-sm" | |
| weight="semibold"> |
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
…36433) (#36448) Backport of #36433 to 2.1. Co-authored-by: Claude Opus 5.5 <[email protected]>



Describe your changes:
Fixes #36429
This restyles Ontology Studio to the new design, in AI mode only. Every change is gated on
useIsAiMode(), so classic mode looks and behaves exactly as before.This is a UI-only change:
data-testids or feature availability change in either mode.Type of change:
High-level design:
useIsAiMode()and renders an AI-mode branch. The classic branch is untouched: the reviewer compared every classic branch withmain. Where a branch would push a component over the lint complexity limit, the choice moves into a small helper. No new state or data flow is added, except one form-UX fix (see the last bullet under AI-mode surfaces).PageHeadervariant="gradient", the same header the AI-mode Metrics page uses.Tabsunderline; surface tabs and Model/Data useTabsbutton-border.Table/TableCard; the Library is coreDialogwithdividers="always".FeaturesPlaceholderwith the existingontology-empty-*strings, as Glossary does.OntologyGraphSearchSlot.Tests:
Use cases covered
Unit tests
OntologyStudioHeader.test.tsxOntologyStudioSubBar.test.tsxOntologyStudioScopeMenu.test.tsxOntologyStudioWorkspace.test.tsxAllOntologiesGraphView.test.tsxjest src/components/OntologyExplorer src/components/governance/ontology src/pages/OntologyExplorerPage src/components/Glossarygives 111 suites, 939 tests, all passed.tsc --noEmitandtw-auditare clean, with no hardcoded colour errors.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Local run on `5a44594754b`. Command: `PLAYWRIGHT_IS_OSS=1 PLAYWRIGHT_TEST_BASE_URL=http://localhost:3001 playwright test --project=chromium --workers=2`. It runs in classic mode, the default for the test users.
Specs (the impact-mapped Ontology specs plus the glossary relations graph):
Result: 80 passed, 2 failed.
Manual testing performed
UI screen recording:
Not applicable: this is a styling-only change with no new behaviour. Before/after screenshots are below, both in AI mode with the same data. Before is
mainand after is this branch.All ontologies

Ontology graph (header, sub-bar search, Model/Data, zoom controls, health)

Concept inspector

Tree

Edit mode / Add concept


Definitions workspace (Term)

Review & publish

Library

Scope picker

Import / export

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.8611b742c18raised one 🔴: the AI tree dropped the ontology name for ontologies whose concepts are all unconnected. It is fixed in5a44594754b, with a test. The same commit fixes the 🟡 about the Advanced section staying collapsed over errors.5a44594754braised no 🔴.useIsAiModepattern.🤖 Generated with Claude Code
The repository's styling, file-structure, and heading requirements need to be satisfied before merging.
Findings
Summary
Restyles Ontology Studio in AI mode while keeping separate classic-mode branches.
Reviews (3) · Last reviewed commit: "Merge branch 'main' into anuj-kumary/ont..." · Reviewed by Greptile