Repository navigation
Fixes #37640: Fix ontology Playwright and visual failures after the Ontology Studio restyle - #37641
Conversation
…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.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsRestoring graph fitting and concept selection changes Ontology Studio interactions; regressions could hide nodes or open the wrong editor. Updates ontology column E2E tests to let panels overlay the canvas, removing the ✅ 1 closedClosed: Quality: Column tests drop the ADR rule that the selected node stays clear
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 |
The baselines refreshed in #37237 were captured from a main build that predated #37093, which replaced the app's assets/svg icons with core-ui icons. Every screen showing the sidebar, header, editor toolbar or connection-form tabs has differed since. Each baseline is replaced with the first-attempt -actual.png from the 2.1 nightly visual lane (Linux renderer, regular UI bundle). Ontology baselines that #37641 refreshes are left to that PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and add the memory-approval fixture (#37656) * test(playwright): answer the extracted-memory approval read in the visual lane The Context Center memories card now previews extracted-memory approval on mount, and the visual lane fails any GET it has no fixture for. Co-Authored-By: Claude Opus 5.5 <[email protected]> * WIP: temporarily disable maxFailures to capture every visual baseline (revert before merge) * Revert "WIP: temporarily disable maxFailures to capture every visual baseline (revert before merge)" This reverts commit 3d2d902. * test(playwright): refresh visual baselines for the core-ui icon swap The baselines refreshed in #37237 were captured from a main build that predated #37093, which replaced the app's assets/svg icons with core-ui icons. Every screen showing the sidebar, header, editor toolbar or connection-form tabs has differed since. Each baseline is replaced with the first-attempt -actual.png from the 2.1 nightly visual lane (Linux renderer, regular UI bundle). Ontology baselines that #37641 refreshes are left to that PR. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Describe your changes:
Fixes #37640
The Postgres PR Playwright run (43166614722) had ~25 ontology E2E failures and 13 ontology visual-regression failures on
main. Nearly all of them come from the Ontology Studio restyle (#37587, #37607), which did not update the specs and scenarios, plus the browser-helper pack count broken by #37489.Product regressions (fixed, with Jest coverage)
OntologyGraphViewwaited forselectedId === editConceptRequest, but nothing selected the conceptOntologyGraphView.tsx)settleAfterCanvasResize(studioViewport.ts,useOntologyGraph.ts)conceptEditorwhen leaving Edit (OntologyGraphView.tsx)Tests updated to the intended redesign
ontology-concept-close/ontology-definition-drawer-close) before clicking covered controls (Publish, Add concept, Fit / Zoom), or select covered nodes from the keyboard.1 change: 1 concept(the release compare view keeps·); the active release downloads as<ontology>.<ext>; the health card needs Review before Connect; the column count moved to the columns toggle; the sub-bar is 62px in both modes; Import / Export dialogs are scoped by name.OntologyLargeGraphat 1024px: the 420px drawer floor means 400 nodes cannot all fit, so the test asserts that the selected concept stays visible and that the Find box comes back once the panel closes.visualData.spec.tscompares against the fixture's pack count (Land the ontology library stack on main (#37361, #37362, #37363, #37364, #37368) #37489 addediof).Visual regression
ontologies/<id>/working/validationand export reads invisualData.ts.ontology-export-dialogandontology-new-validationscenarios to the current UI.ontology-publication-picker, because that picker was removed from the product.page-ontology(light/dark),ontology-scope-menu,ontology-new-formandontology-librarybaselines from CI's Linux renders. The remaining ontology baselines will come from this PR's Playwright run.Test
studioViewport.test.tsand theOntologyGraphViewsuites, 108 passed.visualData+visualGeometry: 133 passed.Features/Ontology*spec, with terminal screenshots, will follow in a comment.Type of change:
🤖 Generated with Claude Code