-
Notifications
You must be signed in to change notification settings - Fork 417
refactor: remove MobX #2250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove MobX #2250
Changes from 21 commits
3e32b71
86ec8d7
34c9df7
1e42828
109c32e
e269190
192a2b1
83bbc53
c61fb07
35c7c85
0070c50
7f3a114
49acb99
a384e49
4da203a
f4f5cc2
6f28d1b
16a411a
08f1232
3b38179
36696d8
66b1681
5143948
58a7baf
8bbfba8
e24a15f
f65520b
3dd44b6
b9a8990
229e240
1846671
c785024
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,8 +95,6 @@ | |
| "jwt-decode": "^4.0.0", | ||
| "lottie-react": "^2.4.1", | ||
| "lucide-react": "^0.563.0", | ||
| "mobx": "^6.10.0", | ||
| "mobx-react": "^7.6.0", | ||
|
Comment on lines
-98
to
-99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. big moment if we can finally get there. thank you |
||
| "moment": "^2.30.1", | ||
| "monaco-editor": "^0.54.0", | ||
| "monaco-editor-webpack-plugin": "^7.1.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,6 @@ import { | |
| useSidebar, | ||
| } from 'components/redpanda-ui/components/sidebar'; | ||
| import { ChevronsLeft, ChevronsRight, ChevronUp, LogOut, Settings } from 'lucide-react'; | ||
| import { observer } from 'mobx-react'; | ||
| import type React from 'react'; | ||
| import { useEffect, useState } from 'react'; | ||
| import { createGroupedSidebarItems, type SidebarGroupedItems } from 'utils/route-utils'; | ||
|
|
@@ -81,7 +80,7 @@ function SidebarCollapseToggle() { | |
| ); | ||
| } | ||
|
|
||
| const UserProfile = observer(() => { | ||
| const UserProfile = () => { | ||
| const [preferencesOpen, setPreferencesOpen] = useState(false); | ||
| const { state, isMobile, setOpenMobile } = useSidebar(); | ||
|
|
||
|
|
@@ -178,7 +177,7 @@ const UserProfile = observer(() => { | |
| <UserPreferencesDialog isOpen={preferencesOpen} onClose={() => setPreferencesOpen(false)} /> | ||
| </> | ||
| ); | ||
| }); | ||
| }; | ||
|
|
||
| type NavItemProps = { | ||
| item: SidebarGroupedItems['items'][number]; | ||
|
|
@@ -220,7 +219,7 @@ function SidebarNavItem({ item, isActive, onNavClick }: NavItemProps) { | |
| ); | ||
| } | ||
|
|
||
| const SidebarNavigation = observer(() => { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's double check if that still works when in embedded mode with cloud UI, sidebar items need to refresh |
||
| const SidebarNavigation = () => { | ||
| const location = useLocation(); | ||
| const { isMobile, setOpenMobile } = useSidebar(); | ||
| const groupedItems = createGroupedSidebarItems(); | ||
|
|
@@ -250,7 +249,7 @@ const SidebarNavigation = observer(() => { | |
| ))} | ||
| </nav> | ||
| ); | ||
| }); | ||
| }; | ||
|
|
||
| export function AppSidebar() { | ||
| return ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also regenerate
yarn.lockThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarnis not installed in this environment — can you regenerateyarn.locklocally withyarn installafter mergingbun.lock?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do "bun install --yarn"