Skip to content

Commit

Permalink
Merge pull request #460 from dolittle/page-navigation
Browse files Browse the repository at this point in the history
Page navigation
  • Loading branch information
N00bG1rl authored Aug 28, 2023
2 parents 94180fe + da7477e commit 1044048
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const NavigationBar = ({ logo, primaryNavigationItems, secondaryNavigatio
</Box>

<Box sx={{ ...styles.hideOnMobile, flexGrow: 1, alignItems: 'center', gap: 3 }}>
{logo && <Icon icon={logo} sx={{ mr: 2 }} />}
{logo && <IconButton tooltipText='Home' icon={logo} href='/' sx={{ mr: 2 }} />}
{primaryNavigationItems}
</Box>

Expand Down
2 changes: 1 addition & 1 deletion Source/SelfService/Web/applications/backupsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const BackupsScreen = () => {
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Backups' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='Backups | Applications' sidePanelMode='applications'>
<Routes>
<Route path='overview' element={<BackupsList data={backupLinksForEnvironment} application={application} />} />
<Route path='list' element={<BackupsListView application={application} environment={currentEnvironment} />} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const ContainerRegistryScreen = withRouteApplicationState(({ routeApplica
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Container Registry' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='Container Registry | Applications' sidePanelMode='applications'>
<Routes>
<Route path='/overview/*' element={<RegistryContainer application={application} />} />
<Route path='*' element={<RouteNotFound redirectUrl={'overview'} auto={true} />} />
Expand Down
2 changes: 1 addition & 1 deletion Source/SelfService/Web/applications/logsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const LogsScreen = withRouteApplicationState(({ routeApplicationParams })
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Logs' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='Logs | Applications' sidePanelMode='applications'>
<Typography variant='h1' sx={{ my: 3 }}>Logs</Typography>

<Box sx={{ minWidth: 640, mt: 3 }}>
Expand Down
2 changes: 1 addition & 1 deletion Source/SelfService/Web/applications/m3connectorScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const M3ConnectorScreen = () => {
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='M3 connector' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='M3 Connector | Applications' sidePanelMode='applications'>
<Routes>
<Route path='/*' element={<Container application={application} />} />
</Routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import { envVariableColumns } from './tableColumns';

const styles = {
buttonWrapper: {
display: 'flex',
flexDirection: { xs: 'column', xl: 'row' },
alignItems: 'start',
mb: 1.5,
button: {
'mr': 2.5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const MicroservicesScreen = withRouteApplicationState(({ routeApplication
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Microservices' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='Microservices | Applications' sidePanelMode='applications'>
<Routes>
<Route path='/overview' element={<Microservice application={application} />} />
<Route path='/create' element={<MicroserviceNewScreen application={application} />} />
Expand Down
2 changes: 1 addition & 1 deletion Source/SelfService/Web/applications/setupScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const SetupScreen = withRouteApplicationState(({ routeApplicationParams }
}

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Setup' sidePanelMode='applications'>
<WorkSpaceLayoutWithSidePanel pageTitle='Setup | Applications' sidePanelMode='applications'>
<Routes>
<Route path='/*' element={<SetupContainerScreen application={application} />} />
</Routes>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const PrimaryNavigation = () => {
},
{
label: 'applications',
selected: location.pathname.includes('/microservices'),
selected: location.pathname.includes('/application/'),
overrides: {
component: Link,
to: `/microservices/application/${currentApplicationId}/overview`,
Expand Down Expand Up @@ -66,6 +66,7 @@ const SecondaryNavigation = () => {
overrides: {
component: 'a',
href: '/.auth/cookies/logout',
onClick: () => localStorage.clear(),
},
},
];
Expand All @@ -74,11 +75,12 @@ const SecondaryNavigation = () => {
// Put before log out link if there is more than one customer.
secondaryNavigationItems.splice(secondaryNavigationItems.length - 1, 0, {
id: 'change-organization',
label: 'Change Organization',
label: 'Change Customer',
icon: 'SupervisedUserCircleRounded',
overrides: {
component: 'a',
href: '/.auth/cookies/initiate',
onClick: () => localStorage.clear(),
},
});
}
Expand Down
File renamed without changes
12 changes: 5 additions & 7 deletions Source/SelfService/Web/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="theme-color" content="#1D2025">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>
<%- htmlWebpackPlugin.options.metadata.title %>
</title>

<base href="<%- htmlWebpackPlugin.options.metadata.baseUrl %>">
<link rel="icon" href="assets/favicons/favicon.svg">
<link rel=”mask-icon” href=”assets/favicons/safary-mask-icon.svg” color="#ff6f33">
<link rel="apple-touch-icon" href="assets/favicons/apple-touch-icon.png">
<link rel="icon" href="favicon.ico">

<meta name="theme-color" content="#1D2025">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="favicon.png">
<link rel="icon" href="favicon.ico">
</head>

<body style="background-color: #0F1014">
Expand Down
2 changes: 1 addition & 1 deletion Source/SelfService/Web/integrations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const IntegrationsIndex = () => {
if (isLoading) return null;

return (
<WorkSpaceLayoutWithSidePanel pageTitle='Integrations'>
<WorkSpaceLayoutWithSidePanel pageTitle='Connections | Integrations'>
{/* Temporary replacement for breadcrumbs */}
<Box sx={{ minHeight: 16 }} />
<QueryClientProvider client={queryClient}>
Expand Down
8 changes: 1 addition & 7 deletions Source/SelfService/Web/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,10 @@ function webpack(env: Args, argv: Args) {
new CopyPlugin({
patterns: [
{
from: './assets/favicons/apple-touch-icon.png',
to: './assets/favicons/',
},
{
from: './assets/favicons/favicon-32x32.png',
to: './assets/favicons/',
from: 'favicon.png',
},
{
from: 'favicon.ico',
to: './',
},
],
}),
Expand Down

0 comments on commit 1044048

Please sign in to comment.