chore(OUK): Upgrade version, fix migration issues#690
Draft
misi-bp wants to merge 8 commits into
Draft
Conversation
Signed-off-by: misi-bp <mkaloczy@cisco.com>
Signed-off-by: misi-bp <mkaloczy@cisco.com>
Signed-off-by: misi-bp <mkaloczy@cisco.com>
Signed-off-by: misi-bp <mkaloczy@cisco.com>
Signed-off-by: misi-bp <mkaloczy@cisco.com>
Signed-off-by: misi-bp <mkaloczy@cisco.com>
…ective Signed-off-by: misi-bp <mkaloczy@cisco.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrades the lungo frontend from Open UI Kit (OUK) 1.6 to 2.1 and updates call sites for OUK 2’s breaking API changes, while keeping MUI at
^7.0.1so the app stays on the same Material UI major/minor line that OUK 2 declares and bundles against. We intentionally did not upgrade MUI to v8/v9: OUK 2.1.0 depends on@mui/material^7.0.1, and aligning on that version avoids duplicate MUI installs, conflictingThemetypes, and compat shims (overrides, icon aliases, palette augmentations) that a higher MUI version would require.Dependency changes
@open-ui-kit/core:^1.6.0→^2.1.0@mui/material/@mui/icons-material: remain^7.0.1(resolved to 7.3.x; deduped with OUK)@testing-library/dom:^10.4.1added todevDependencies. Explicitly listing@testing-library/domdocuments and guarantees the peer dependency that@testing-library/reactv16 needs at test time, so freshnpm installruns stay reliable instead of depending on implicit hoisting or peer-resolution quirks.OUK 2 migration
isDarkMode/defaultDarkModewithThemeMode+mode/setMode. AddeduseAppThemeModeas a thin wrapper for boolean helpers (isDarkMode,setIsDarkMode,toggleTheme) used across navigation, chat, and persistence.Modal/ModalContent/ModalTitle→Dialog/DialogContent/DialogTitlein badge, policy, OASF, and info modals.DropdownOption; addedsrc/types/dropdownOption.tsfor suggested-prompts menu typing.type="button"props where OUK 2’s typings no longer accept them.Naming and structure
CompactTheme,compactThemeOptions,useAppThemeMode,app-shellpanel id,theme-modestorage key with legacy read fallback).railBackgroundImageintotransportRailBackground.tssoTransportRail.tsxonly exports a component (fixesreact-refresh/only-export-components/ Fast Refresh lint).Verification
npm run check(lint, format, typecheck, 133 tests) passesnpm run buildpassesIssue Link
#684
Type of Change
Checklist