1.8 KiB
1.8 KiB
UI Kit 1.3.3 — persistent remote header and sidebar
Based on the complete UI Kit 1.3.2 release. Only remote AppHeader and AppSidebar behavior changes; package version bumped.
AppSidebar
- For updates that only change the active state and/or click callbacks, update data-active and aria-current in place.
- Keep the existing DOM and React icon roots for these updates; onClick and onExit dispatch to the latest functions.
- A structural change (item order, label, icon, disabled/href, visibility or exit configuration) can still cause a full re-render.
AppHeader
- Ignore identical property updates, preserving the existing image elements and the logo's optimization lifecycle.
- Different header props can still cause a re-render; a stable React/layout shell is necessary to keep props stable across page changes.
Deployment
- Publish the new UI Kit package as
v1.3.3(Git tag after commit). - Deploy both
dist/remote/AppHeader.jsanddist/remote/AppSidebar.jsto the Remote UI host using the existing URL paths (/AppHeader.js,/AppSidebar.js). The package upgrade alone does not replace remotely served files. - In Next.js Pages Router destination apps, mount one shared
<AppShell>inpages/_app.js, not inside each route page, and remove the per-page<AppShell>wrappers.AppShellmust remain at the same React tree position during client-side navigation. - Verify the Remote JS caching/CDN invalidation and hard-refresh clients after deployment. Do not cache the old remote script indefinitely.
- Inspect Network and DOM in DevTools; a single page refresh may fetch the assets once, but remount prevention is about retaining DOM and React roots, not a guarantee that no render or network request ever occurs for other reasons.
No changes to BiProvider, Keycloak, API, Permission, Vite, SWR, BiImage, default theme or public exports.