-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from headlamp-k8s/filter-verified-charts
frontend: Adds filter feature for app catalog
- Loading branch information
Showing
15 changed files
with
609 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
/.pnp | ||
.pnp.js | ||
|
||
/dist | ||
|
||
# testing | ||
/coverage | ||
|
||
|
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
21 changes: 21 additions & 0 deletions
21
app-catalog/src/components/charts/AppCatalogTitle.stories.tsx
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,21 @@ | ||
import { Meta, Story } from '@storybook/react'; | ||
import React from 'react'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { AppCatalogTitle } from './AppCatalogTitle'; | ||
|
||
export default { | ||
title: 'Components/AppCatalogTitle', | ||
component: AppCatalogTitle, | ||
decorators: [ | ||
Story => ( | ||
<Router> | ||
<Story /> | ||
</Router> | ||
), | ||
], | ||
} as Meta; | ||
|
||
const Template: Story = args => <AppCatalogTitle {...args} />; | ||
|
||
export const Title = Template.bind({}); | ||
Title.args = {}; |
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,17 @@ | ||
import { Box, Typography } from '@mui/material'; | ||
import { SettingsLink } from './SettingsLink'; | ||
|
||
export function AppCatalogTitle() { | ||
return ( | ||
<Box display="flex" justifyContent="space-between" alignItems="center"> | ||
<Typography | ||
sx={{ | ||
fontSize: '2rem', | ||
}} | ||
> | ||
Applications | ||
</Typography> | ||
<SettingsLink /> | ||
</Box> | ||
); | ||
} |
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
Oops, something went wrong.