Skip to content

Commit 3ec1a6d

Browse files
authored
Events UI #3309 (#3532)
* Events UI #3309 Added links to event list from project and user details pages * Events UI #3309 Added events and activity tabs on user details page * Events UI #3309 User events refactoring after review * Events UI #3309 User events refactoring after review
1 parent 3149be8 commit 3ec1a6d

File tree

19 files changed

+554
-210
lines changed

19 files changed

+554
-210
lines changed

frontend/src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export { default as ExpandableSection } from '@cloudscape-design/components/expa
6666
export { default as KeyValuePairs } from '@cloudscape-design/components/key-value-pairs';
6767
export { I18nProvider } from '@cloudscape-design/components/i18n';
6868
export { default as Wizard } from '@cloudscape-design/components/wizard';
69+
export { default as SegmentedControl } from '@cloudscape-design/components/segmented-control';
70+
export type { SegmentedControlProps } from '@cloudscape-design/components/segmented-control';
6971

7072
// custom components
7173
export { NavigateLink } from './NavigateLink';

frontend/src/locale/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
"repositories": "Repositories",
183183
"runs": "Runs",
184184
"tags": "Tags",
185+
"events": "Events",
185186
"settings": "Settings",
186187
"join": "Join",
187188
"leave_confirm_title": "Leave project",
@@ -697,6 +698,7 @@
697698
"account_settings": "User settings",
698699
"settings": "Settings",
699700
"projects": "Projects",
701+
"events": "Events",
700702
"create": {
701703
"page_title": "Create user",
702704
"error_notification": "Create user error",
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import React from 'react';
2+
import { useTranslation } from 'react-i18next';
3+
4+
import { Button, Header, SpaceBetween } from 'components';
5+
6+
import { useBreadcrumbs } from 'hooks';
7+
import { ROUTES } from 'routes';
8+
9+
import { EventList } from './index';
10+
11+
export const ListPage: React.FC = () => {
12+
const { t } = useTranslation();
13+
14+
useBreadcrumbs([
15+
{
16+
text: t('navigation.events'),
17+
href: ROUTES.EVENTS.LIST,
18+
},
19+
]);
20+
21+
return (
22+
<EventList
23+
variant="full-page"
24+
withSearchParams
25+
renderHeader={({ refreshAction, disabledRefresh }) => {
26+
return (
27+
<Header
28+
variant="awsui-h1-sticky"
29+
actions={
30+
<SpaceBetween size="xs" direction="horizontal">
31+
<Button
32+
iconName="refresh"
33+
disabled={disabledRefresh}
34+
ariaLabel={t('common.refresh')}
35+
onClick={refreshAction}
36+
/>
37+
</SpaceBetween>
38+
}
39+
>
40+
{t('navigation.events')}
41+
</Header>
42+
);
43+
}}
44+
/>
45+
);
46+
};

0 commit comments

Comments
 (0)