-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tag management panel MAASENG-1427
- remove .l-aside.is-collapsed workaround - extract ResponsiveNodeActionMenu component
- Loading branch information
1 parent
c0f9232
commit e5bb0da
Showing
28 changed files
with
766 additions
and
507 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from "./AppSidePanel"; | ||
export { default, type AppSidePanelProps } from "./AppSidePanel"; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import SidePanelContextProvider, { useSidePanel } from "./side-panel-context"; | ||
|
||
import { renderHook, act } from "testing/utils"; | ||
|
||
it("resets side panel size on close", () => { | ||
const wrapper = ({ children }: { children: React.ReactNode }) => ( | ||
<SidePanelContextProvider>{children}</SidePanelContextProvider> | ||
); | ||
|
||
const { result } = renderHook(() => useSidePanel(), { wrapper }); | ||
|
||
act(() => { | ||
result.current.setSidePanelSize("large"); | ||
}); | ||
|
||
expect(result.current.sidePanelSize).toBe("large"); | ||
|
||
act(() => { | ||
result.current.setSidePanelContent(null); | ||
}); | ||
|
||
expect(result.current.sidePanelSize).toBe("regular"); | ||
expect(result.current.sidePanelContent).toBeNull(); | ||
}); |
Oops, something went wrong.