mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Topbar history buttons (#3696)
* HistoryStore initial draft Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding history icons Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Jump history using electron methods Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Using 1 topbar component for all views Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Add Catalog title to sidebar Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Show cluster name in sidebar Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Updating topbar tests Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fixing Welcome tests Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Removing padding for external topbar items Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix cluster name prop Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Using material icons for history buttons Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
9d6bed8786
commit
7981e79cbd
16 files changed
+163
-132
No files matched your search
@@ -26,6 +26,15 @@ import { Welcome } from "../welcome";
|
||||
import { TopBarRegistry, WelcomeMenuRegistry, WelcomeBannerRegistry } from "../../../../extensions/registries";
|
||||
import { defaultWidth } from "../welcome";
|
||||
|
||||
jest.mock(
|
||||
"electron",
|
||||
() => ({
|
||||
ipcRenderer: {
|
||||
on: jest.fn(),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
describe("<Welcome/>", () => {
|
||||
beforeEach(() => {
|
||||
TopBarRegistry.createInstance();
|
||||
|
||||
@@ -26,8 +26,8 @@ import Carousel from "react-material-ui-carousel";
|
||||
import { Icon } from "../icon";
|
||||
import { productName, slackUrl } from "../../../common/vars";
|
||||
import { WelcomeMenuRegistry } from "../../../extensions/registries";
|
||||
import { WelcomeTopbar } from "../cluster-manager/welcome-topbar";
|
||||
import { WelcomeBannerRegistry } from "../../../extensions/registries";
|
||||
import { TopBar } from "../layout/topbar";
|
||||
|
||||
export const defaultWidth = 320;
|
||||
|
||||
@@ -49,7 +49,7 @@ export class Welcome extends React.Component {
|
||||
|
||||
return (
|
||||
<>
|
||||
<WelcomeTopbar/>
|
||||
<TopBar/>
|
||||
<div className="flex justify-center Welcome align-center">
|
||||
<div style={{ width: `${maxWidth}px` }} data-testid="welcome-banner-container">
|
||||
{welcomeBanner.length > 0 ? (
|
||||
|
||||
Reference in new issue
Block a user