openova/products/catalyst/bootstrap/ui
e3mrah 5bd68ae0f6
feat(openova-flow-canvas): fold UX + lane layout + actions menu + cross-flow nav (Agent #9) (#1407)
Wires the 6 founder-locked canvas views agreed 2026-05-11:

  • Lane layout — `meta.layout: 'lane-vertical' | 'lane-horizontal'`
    on a `contains`-parent renders the group as a rounded-rect
    swim-lane; children pack inside (L→R horizontal, T→B vertical).
    Lanes nest: region (vertical) → phase (horizontal) → HR bubbles.
    Falls back to organic d3-force when no group declares a layout
    hint, so single-region provisions look unchanged.
  • Child-count badge `[N]` on every foldable parent — recursive
    descendant count through `contains` edges, surfaced via
    PositionedNode.descendantCount. Renders independent of fold
    state per the founder-locked View 4 ASCII (region keeps `[43]`
    even when expanded to phases only).
  • Hover dim — onMouseEnter/Leave on a node dims non-neighbor
    nodes + non-incident edges to 35% opacity. Selection / host /
    neighbor rings keep full opacity per spec precedence.
  • Right-click → adapter actions menu — new `actions` +
    `onNodeAction` props on FlowCanvasProps. Renders the supplied
    NodeAction[] (filtered by per-action `enabled` predicate) in a
    NodeActionsMenu (click-outside + Esc dismissal, mirrors
    ProfileMenu's canonical seam).
  • `triggeredBy` cross-flow badge — when FlowInstance.triggeredBy
    is non-empty, a top-left banner lists the parent flows with a
    `[↗ open flow]` button → onNavigateFlow callback.
  • Cross-flow edges — when a Relationship's `toFlowId` references a
    flow not in the current canvas, the source node renders a
    "→ flow" tag that calls onNavigateFlow.

FlowPage wires onNodeAction to POST /api/v1/flows/{id}/nodes/{nodeId}
/actions/{actionId} and onNavigateFlow to the router. Default action
list (Retry/Suspend/View logs) supplied by FlowPage; adapters can
override.

Canonical seam citations (per ARCHITECT-FIRST):

  • core/src/layout.ts (Agent #1) — pure layout function. Extended
    with LaneDescriptor[] + descendantCount, cycle-safe lane-depth
    walks reusing the existing visited-set pattern. Lane geometry
    stays in canvas (the layout is pure topology).
  • widgets/auth/ProfileMenu.tsx — canonical click-outside + ESC
    dismissal pattern. NodeActionsMenu mirrors this verbatim so we
    stay consistent without a new radix/headless-ui dependency.

Tests: 25 core (was 20, +5 for lanes + descendantCount) + 22 canvas
(was 9, +13 for lane layout, badge math, hover dim, action menu,
triggeredBy banner, cross-flow tag). FlowPage tests still 8/8 green.

No vite/next builds (Rule 7). No kubectl writes (Rule 11). Lane
geometry has zero domain knowledge — the canvas never reads "phase"
or "region" as words; everything is `meta.layout` + `meta.isGroup`
+ `contains` edges driven by the adapter.

Co-authored-by: e3mrah <1234567+e3mrah@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 18:03:00 +04:00
..
.pr-evidence fix(catalyst-ui): rebuild Flow canvas to match provision-mockup-v4.png (#282) 2026-04-30 18:32:02 +04:00
e2e fix(api,chart,ui): qa-loop iter-8 Fix #41 — three-cluster regression closeout (#1248) 2026-05-10 03:11:08 +04:00
public fix(wizard): correct logo backplate colors for 7 components (refs #179) (#202) 2026-04-29 20:21:42 +02:00
scripts feat(sovereign-console): populate Jobs/Apps/Cloud views from local cluster (#933) (#937) 2026-05-05 14:43:01 +04:00
src feat(openova-flow-canvas): fold UX + lane layout + actions menu + cross-flow nav (Agent #9) (#1407) 2026-05-11 18:03:00 +04:00
.gitignore test(catalyst-ui): Playwright E2E for Cloud accordion + redirects 2026-05-01 08:08:45 +04:00
Containerfile fix(ui-build): npm ci from workspace root for @openova/flow-* resolution (#1401) 2026-05-11 17:06:13 +04:00
eslint.config.js feat(catalyst): Bootstrap UI — full wizard, auth, dashboard, provision, success 2026-03-19 12:34:03 +01:00
index.html feat(catalyst): wizard sidebar redesign + rename UI to "Corporate" 2026-04-15 22:38:54 +02:00
nginx.conf fix(catalyst-ui): HSTS max-age 180d to match qa-loop matrix (Fix #171) (#1374) 2026-05-11 12:05:43 +04:00
package-lock.json feat(openova-flow): npm workspaces + FlowPage canvas real-adapter rewire (Agent #5) (#1399) 2026-05-11 16:59:07 +04:00
package.json feat(openova-flow): npm workspaces + FlowPage canvas real-adapter rewire (Agent #5) (#1399) 2026-05-11 16:59:07 +04:00
playwright.config.ts feat(phase-8b): sovereign wizard auth-gate + handover JWT minting + Playwright CI fixes (#611) 2026-05-02 19:17:56 +04:00
README.md feat(catalyst): Bootstrap UI — full wizard, auth, dashboard, provision, success 2026-03-19 12:34:03 +01:00
tsconfig.app.json fix(ui-build): include @types/node so tests referencing global compile (#1403) 2026-05-11 17:10:08 +04:00
tsconfig.json feat(catalyst): Bootstrap UI — full wizard, auth, dashboard, provision, success 2026-03-19 12:34:03 +01:00
tsconfig.node.json feat(catalyst): Bootstrap UI — full wizard, auth, dashboard, provision, success 2026-03-19 12:34:03 +01:00
vite.config.ts feat(openova-flow): npm workspaces + FlowPage canvas real-adapter rewire (Agent #5) (#1399) 2026-05-11 16:59:07 +04:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])