Commit a438543
committed
Migrate UI pages to Lit web components in antrea-ui-components
Replace the Clarity Core UI library with a new antrea-ui-components
package of Lit-based custom elements, and migrate all page-level React
components into it so a downstream Angular shell can consume them
without the React dependency.
New components library (client/web/antrea-ui-components):
- antrea-button, antrea-alert, antrea-card, antrea-input, antrea-nav:
lightweight replacements for the Clarity Core primitives
- antrea-summary-page, antrea-settings-page: cluster info and feature
gate management pages
- antrea-traceflow-page: DOT graph rendering via d3-graphviz, polling
loop with retry-after support, live/dropped-only capture modes
- antrea-flow-visibility-page: SSE-backed live flow list with
multi-select namespace/pod/service filtering, D3 force-simulation
service map with namespace hulls, drag/zoom, and verdict-colored edges
- Shared lib: FlowStreamClient (SSE with reconnect), FlowStore (bounded
LRU with sliding-window bit rate), typed API helpers, design tokens
React app (client/web/antrea-ui):
- Replace all page route files with thin Lit wrapper components that
forward the auth token and bridge antrea-session-expired events to
the Redux-backed logout flow
- Delete all React route files, page-level API modules, and store files
that moved into the components library
- Move @types/d3 to regular dependencies so the Docker build
(npm install --omit=dev) still installs the type declarations needed
when antrea-ui compiles the components source directly1 parent 1782537 commit a438543
54 files changed
Lines changed: 6175 additions & 5427 deletions
File tree
- build
- client/web
- antrea-ui-components
- src
- lib
- pages
- antrea-ui
- src
- api
- components
- routes
- store
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments