Skip to content

Fixes #36429: Restyle Ontology Studio to the new design in AI mode [Backport #36433 - 2.1] - #36448

Merged
anuj-kumary merged 1 commit into
open-metadata:2.1from
anuj-kumary:anuj-kumary/ontology-studio-ai-mode-restyle-2.1
Oct 28, 2026
Merged

anuj-kumary merged 1 commit into
open-metadata:2.1from
anuj-kumary:anuj-kumary/ontology-studio-ai-mode-restyle-2.1

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Backport of #36433 to 2.1.

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. It is a UI-only change: no API calls, query keys, permissions, data-testids or feature availability change. See #36433 for the full design notes and screenshots.

#36433 is not merged yet. If it changes before it merges, this backport needs the same changes.

Type of change:

  • Improvement

Backport notes:

  • The PR diff (merge-base with main → PR head b1700460817) applies to 2.1 with no conflicts. The backport's diff matches the original's line for line.
  • Every file the PR touches is identical on 2.1 and main. Every translation key it uses exists in 2.1's en-us.json, and it uses no core-components code that only exists on main.

Tests:

  • Jest on 2.1: jest src/components/OntologyExplorer src/components/governance/ontology src/pages/OntologyExplorerPage src/components/Glossary gives 111 suites, 940 tests, all passed.
  • tsc --noEmit: no errors in the Ontology files.
  • Playwright: no new specs. The existing specs run in classic mode, which is unchanged.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have added tests (unit) and listed them above.

🤖 Generated with Claude Code

@anuj-kumary anuj-kumary added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 28, 2026
@anuj-kumary
anuj-kumary requested a review from a team as a code owner October 28, 2026 11:52
@anuj-kumary
anuj-kumary requested review from harsh-vador and removed request for a team October 28, 2026 11:52
@anuj-kumary anuj-kumary self-assigned this Oct 28, 2026
@gitar-bot

gitar-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 2 closed / 2 findings

🟡 Medium risk · The AI-mode redesign changes ontology authoring, import, and publication controls across many screens, which could lead to incorrect ontology edits or release actions.

Restyles Ontology Studio's AI-mode empty states and feature tiles, gated on useIsAiMode() so classic mode is unchanged. Changes requested: the new ConceptEmptyState in OntologyConceptSection.tsx bypasses the EmptyPlaceholder wrappers required by the accepted empty-state decision, and the feature icons in OntologyExplorerPage.tsx are tinted warning/success for decoration only, which the shared icon-colour rule does not allow.

✅ 2 closed
Closed: Quality: Empty-state feature icons tinted warning/success for decoration only

📄 openmetadata-ui/src/main/resources/ui/src/pages/OntologyExplorerPage/OntologyExplorerPage.tsx:1639-1653
The AI-mode all-ontologies empty state passes FeaturesPlaceholder icons coloured tw:text-fg-warning-primary ("The graph") and tw:text-fg-success-primary ("What it unlocks"). Accepted record 2026-10-21-empty-states-render-through-the-placeholder-wrappers.md says placeholder icons take the shared brand colour, and that "a call site may colour an icon only for meaning — error, warning or success". Neither feature tile has a warning or success meaning, so these colours are decorative and break that rule. Drop the overrides and let the core icon tile apply the brand colour, or record a design exception for feature tiles.

Closed: Quality: New ConceptEmptyState bypasses the EmptyPlaceholder wrappers

📄 openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyConceptInspector/OntologyConceptSection.tsx:77-91 📄 openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyConceptInspector/OntologyConceptInspector.tsx:738-743
OntologyConceptSection.tsx adds ConceptEmptyState, a new hand-rolled empty state (a title plus a hint on a bg-secondary_alt box). OntologyConceptInspector's renderAiEmpty uses it for every empty section in AI mode. Accepted record docs/decisions/2026-10-21-empty-states-render-through-the-placeholder-wrappers.md says every empty state renders through a wrapper in src/components/common/EmptyPlaceholder/. It also says "a page needing a look no wrapper covers adds or extends a wrapper" instead of building its own. The component also colours text through className="tw:text-tertiary" on Typography, when the core-styling record asks for the color prop. Either render these through NoDataPlaceholder (a compact size could be added to the wrapper), or add a superseding record that allows inline section empty states outside the wrapper folder.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@anuj-kumary
anuj-kumary merged commit c22b29b into open-metadata:2.1 Oct 28, 2026
71 of 112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant