Skip to content
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

Overview page has now its own independent path #14

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@ elsewhere in Altinn.
Should state: Preparing [email protected] for immediate activation...

> corepack yarn

This should install the dependencies listed in package.json

4. Run the Vite webserver script in package.json by
> yarn start

The app should now be running in the Vite webserver,
and is pseudo-available at http://localhost:5173
(showing just a blue screen),
(showing just a blue screen), or http://localhost:5173/authfront/ui/xxx <br>
(showing an Error Page with a nice seagull).

and with the new /authfront/ui BasePath, we now reach the old Overview page via
and with the new /authfront/ui BasePath, we now reach the old, but edited Overview page via
http://localhost:5173/authfront/ui/offered-api-delegations/overview

while the new Authentication OverviewPage on new path is here: <br>
http://localhost:5173/authfront/ui/auth/overview
28 changes: 28 additions & 0 deletions frontend/src/features/overviewpage/OverviewPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { useTranslation } from 'react-i18next';
import * as React from 'react';

import { Page, PageHeader, PageContent, PageContainer } from '@/components';
import { ReactComponent as ApiIcon } from '@/assets/Api.svg';
import { useMediaQuery } from '@/resources/hooks';

import { OverviewPageContent } from './components/OverviewPageContent';
import { LayoutState } from './components/LayoutState';

export const OverviewPage = () => {
const { t } = useTranslation('common');
const isSm = useMediaQuery('(max-width: 768px)');

return (
<PageContainer>
<Page
color='dark'
size={isSm ? 'small' : 'medium'}
>
<PageHeader icon={<ApiIcon />}>{t('api_delegation.api_delegations')}</PageHeader>
<PageContent>
<OverviewPageContent layout={LayoutState.Offered} />
</PageContent>
</Page>
</PageContainer>
);
};
4 changes: 4 additions & 0 deletions frontend/src/features/overviewpage/components/LayoutState.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum LayoutState {
Offered,
Received,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@media only screen and (max-width: 768px) {
.actionBarContent {
padding-left: 0.7rem;
}

.orgDelegationActionBarTitle {
font-size: 14px;
}
}

@media only screen and (min-width: 769px) {
.actionBarContent {
padding-left: 50px;
}
}

.actionBarContent {
padding-right: 10px;
}

.actionBarText__softDelete {
text-decoration: line-through;
opacity: 70%;
}

.actionBarSubtitle__softDelete {
text-decoration: line-through;
opacity: 70%;
}

.accordionHeaderRightText {
margin-right: 15px;
}

.additionalText {
margin-right: 10px;
}
Loading