@orchestrator-ui/orchestrator-ui-components 2.10.1 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.turbo/turbo-build.log +6 -6
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +12 -12
  4. package/CHANGELOG.md +33 -0
  5. package/dist/index.d.ts +17 -7
  6. package/dist/index.js +764 -751
  7. package/dist/index.js.map +1 -1
  8. package/package.json +6 -2
  9. package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.tsx +46 -23
  10. package/src/components/WfoBadges/WfoFailedTasksBadge/styles.ts +10 -0
  11. package/src/components/WfoForms/formFields/BoolFieldStyling.ts +0 -4
  12. package/src/components/WfoInlineNoteEdit/WfoInlineNoteEdit.tsx +5 -6
  13. package/src/components/WfoSubscription/WfoInUseByRelations.tsx +1 -0
  14. package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx +1 -1
  15. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +14 -3
  16. package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +22 -16
  17. package/src/components/WfoTable/WfoTable/WfoTableDataRows.tsx +10 -4
  18. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoSortDirectionIcon.tsx +5 -11
  19. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/styles.ts +1 -0
  20. package/src/components/WfoTable/WfoTable/styles.ts +6 -0
  21. package/src/configuration/version.ts +1 -1
  22. package/src/icons/heroicons/WfoArrowDown.tsx +27 -0
  23. package/src/icons/heroicons/WfoArrowUp.tsx +27 -0
  24. package/src/icons/heroicons/WfoArrowsUpDown.tsx +2 -2
  25. package/src/icons/heroicons/WfoHeroIconsWrapper.tsx +12 -19
  26. package/src/icons/heroicons/index.ts +2 -0
  27. package/src/icons/index.ts +0 -2
  28. package/src/rtk/endpoints/subscriptionDetail.ts +2 -1
  29. package/src/utils/getDefaultTableConfig.ts +1 -0
  30. package/src/icons/WfoArrowNarrowDown.stories.tsx +0 -13
  31. package/src/icons/WfoArrowNarrowDown.tsx +0 -35
  32. package/src/icons/WfoArrowNarrowUp.stories.tsx +0 -13
  33. package/src/icons/WfoArrowNarrowUp.tsx +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "2.10.1",
3
+ "version": "2.12.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Library of UI Components used to display the workflow orchestrator frontend",
6
6
  "author": {
@@ -10,7 +10,11 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/workfloworchestrator/orchestrator-ui-library.git"
13
+ "url": "git+https://github.com/workfloworchestrator/orchestrator-ui-library.git"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "provenance": true
14
18
  },
15
19
  "homepage": "https://www.workfloworchestrator.org",
16
20
  "bugs": "https://github.com/workfloworchestrator/orchestrator-ui-library/issues",
@@ -1,18 +1,20 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
 
3
3
  import { useTranslations } from 'next-intl';
4
+ import Link from 'next/link';
4
5
 
5
6
  import { EuiToolTip } from '@elastic/eui';
6
7
 
7
- import { WfoHeaderBadge } from '@/components';
8
- import { useOrchestratorTheme } from '@/hooks';
9
- import { WfoCheckmarkCircleFill } from '@/icons';
10
- import { WfoXCircleFill } from '@/icons';
8
+ import { PATH_TASKS, WfoHeaderBadge } from '@/components';
9
+ import { useOrchestratorTheme, useWithOrchestratorTheme } from '@/hooks';
10
+ import { WfoCheckmarkCircleFill, WfoXCircleFill } from '@/icons';
11
11
  import {
12
12
  ProcessStatusCounts,
13
13
  useProcessStatusCountsQuery,
14
14
  } from '@/rtk/endpoints/processStatusCounts';
15
15
 
16
+ import { getTasksBadgeStyles } from './styles';
17
+
16
18
  type TaskCountsSummary = {
17
19
  failed: number;
18
20
  inconsistentData: number;
@@ -36,9 +38,22 @@ const getTaskCountsSummary = (
36
38
  };
37
39
  };
38
40
 
41
+ const WfoTasksLink = ({ children }: { children: ReactNode }) => (
42
+ <Link
43
+ href={`${PATH_TASKS}`}
44
+ onClick={(e) => {
45
+ e.currentTarget.blur();
46
+ }}
47
+ >
48
+ {children}
49
+ </Link>
50
+ );
51
+
39
52
  export const WfoFailedTasksBadge = () => {
40
53
  const t = useTranslations('common');
41
54
  const { theme } = useOrchestratorTheme();
55
+ const { failedTaskBadgeStyle } =
56
+ useWithOrchestratorTheme(getTasksBadgeStyles);
42
57
  const { data: processStatusCounts } = useProcessStatusCountsQuery();
43
58
 
44
59
  const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
@@ -60,15 +75,18 @@ export const WfoFailedTasksBadge = () => {
60
75
  </>
61
76
  }
62
77
  >
63
- <WfoHeaderBadge
64
- color={theme.colors.ghost}
65
- textColor={theme.colors.shadow}
66
- iconType={() => (
67
- <WfoXCircleFill color={theme.colors.danger} />
68
- )}
69
- >
70
- {taskCountsSummary.total}
71
- </WfoHeaderBadge>
78
+ <WfoTasksLink>
79
+ <WfoHeaderBadge
80
+ css={failedTaskBadgeStyle}
81
+ color={theme.colors.ghost}
82
+ textColor={theme.colors.shadow}
83
+ iconType={() => (
84
+ <WfoXCircleFill color={theme.colors.danger} />
85
+ )}
86
+ >
87
+ {taskCountsSummary.total}
88
+ </WfoHeaderBadge>
89
+ </WfoTasksLink>
72
90
  </EuiToolTip>
73
91
  );
74
92
  } else {
@@ -81,15 +99,20 @@ export const WfoFailedTasksBadge = () => {
81
99
  </>
82
100
  }
83
101
  >
84
- <WfoHeaderBadge
85
- color={theme.colors.ghost}
86
- textColor={theme.colors.shadow}
87
- iconType={() => (
88
- <WfoCheckmarkCircleFill color={theme.colors.success} />
89
- )}
90
- >
91
- 0
92
- </WfoHeaderBadge>
102
+ <WfoTasksLink>
103
+ <WfoHeaderBadge
104
+ css={failedTaskBadgeStyle}
105
+ color={theme.colors.ghost}
106
+ textColor={theme.colors.shadow}
107
+ iconType={() => (
108
+ <WfoCheckmarkCircleFill
109
+ color={theme.colors.success}
110
+ />
111
+ )}
112
+ >
113
+ 0
114
+ </WfoHeaderBadge>
115
+ </WfoTasksLink>
93
116
  </EuiToolTip>
94
117
  );
95
118
  }
@@ -0,0 +1,10 @@
1
+ import { css } from '@emotion/react';
2
+
3
+ export const getTasksBadgeStyles = () => {
4
+ const failedTaskBadgeStyle = css({
5
+ cursor: 'pointer',
6
+ '&:hover': { textDecoration: 'underline' },
7
+ });
8
+
9
+ return { failedTaskBadgeStyle };
10
+ };
@@ -12,10 +12,6 @@ export const boolFieldStyling = css`
12
12
  z-index: unset;
13
13
  }
14
14
 
15
- input[type="checkbox"] {
16
- display: none;
17
- }
18
-
19
15
  label {
20
16
  display: inline-block;
21
17
  margin: 3px 0;
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useMemo, useState } from 'react';
1
+ import React, { useEffect, useState } from 'react';
2
2
  import type { ChangeEvent, FC } from 'react';
3
3
 
4
4
  import { EuiInlineEditText } from '@elastic/eui';
@@ -20,8 +20,7 @@ export const WfoInlineNoteEdit: FC<WfoInlineNoteEditProps> = ({
20
20
  onlyShowOnHover = false,
21
21
  }) => {
22
22
  const { theme } = useOrchestratorTheme();
23
- const initialNote = useMemo(() => value || '', [value]);
24
- const [note, setNote] = useState<string>(initialNote);
23
+ const [note, setNote] = useState<string>(value ?? '');
25
24
  const [isTooltipVisible, setIsTooltipVisible] = useState<boolean>(true);
26
25
 
27
26
  const [startProcess] = useStartProcessMutation();
@@ -42,15 +41,15 @@ export const WfoInlineNoteEdit: FC<WfoInlineNoteEditProps> = ({
42
41
  };
43
42
 
44
43
  const handleCancel = () => {
45
- setNote(initialNote);
44
+ setNote(value ?? '');
46
45
  setIsTooltipVisible(true);
47
46
  };
48
47
 
49
48
  // This useEffect makes sure the note is updated when a new value property is passed in
50
49
  // for example by a parent component that is update through a websocket event
51
50
  useEffect(() => {
52
- setNote(initialNote);
53
- }, [initialNote]);
51
+ setNote(value ?? '');
52
+ }, [value]);
54
53
 
55
54
  return (
56
55
  <div
@@ -52,6 +52,7 @@ export const WfoInUseByRelations = ({
52
52
  value: (
53
53
  <WfoFirstPartUUID
54
54
  UUID={inUseByRelationDetails.subscriptionId}
55
+ showCopyIcon={false}
55
56
  />
56
57
  ),
57
58
  textToCopy: inUseByRelationDetails.subscriptionId,
@@ -34,7 +34,7 @@ interface WfoSubscriptionProductBlockProps {
34
34
  subscriptionId: Subscription['subscriptionId'];
35
35
  }
36
36
 
37
- export const HIDDEN_KEYS = ['title', 'name', 'label'];
37
+ export const HIDDEN_KEYS = ['title', 'name', 'label', 'inUseByIds'];
38
38
 
39
39
  export const WfoSubscriptionProductBlock = ({
40
40
  productBlock,
@@ -10,6 +10,7 @@ import {
10
10
  Pagination,
11
11
  WfoDateTime,
12
12
  WfoInlineJson,
13
+ WfoInlineNoteEdit,
13
14
  WfoInsyncIcon,
14
15
  WfoJsonCodeBlock,
15
16
  WfoSubscriptionStatusBadge,
@@ -80,6 +81,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
80
81
  subscriptionId: {
81
82
  columnType: ColumnType.DATA,
82
83
  label: t('id'),
84
+ width: '100px',
83
85
  renderData: (value) => <WfoFirstPartUUID UUID={value} />,
84
86
  renderDetails: (value) => value,
85
87
  renderTooltip: (value) => value,
@@ -87,7 +89,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
87
89
  description: {
88
90
  columnType: ColumnType.DATA,
89
91
  label: t('description'),
90
- width: '400px',
92
+ width: '500px',
91
93
  renderData: (value, record) => (
92
94
  <Link href={`/subscriptions/${record.subscriptionId}`}>
93
95
  {value}
@@ -98,6 +100,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
98
100
  status: {
99
101
  columnType: ColumnType.DATA,
100
102
  label: t('status'),
103
+ width: '120px',
101
104
  renderData: (value) => (
102
105
  <WfoSubscriptionStatusBadge status={value} />
103
106
  ),
@@ -105,6 +108,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
105
108
  insync: {
106
109
  columnType: ColumnType.DATA,
107
110
  label: t('insync'),
111
+ width: '80px',
108
112
  renderData: (value) => <WfoInsyncIcon inSync={value} />,
109
113
  },
110
114
  productName: {
@@ -119,7 +123,6 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
119
123
  customerFullname: {
120
124
  columnType: ColumnType.DATA,
121
125
  label: t('customerFullname'),
122
- width: '150px',
123
126
  },
124
127
  customerShortcode: {
125
128
  columnType: ColumnType.DATA,
@@ -129,6 +132,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
129
132
  startDate: {
130
133
  columnType: ColumnType.DATA,
131
134
  label: t('startDate'),
135
+ width: '120px',
132
136
  renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
133
137
  renderDetails: parseDateToLocaleDateTimeString,
134
138
  clipboardText: parseDateToLocaleDateTimeString,
@@ -137,6 +141,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
137
141
  endDate: {
138
142
  columnType: ColumnType.DATA,
139
143
  label: t('endDate'),
144
+ width: '120px',
140
145
  renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
141
146
  renderDetails: parseDateToLocaleDateTimeString,
142
147
  clipboardText: parseDateToLocaleDateTimeString,
@@ -145,7 +150,13 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
145
150
  note: {
146
151
  columnType: ColumnType.DATA,
147
152
  label: t('note'),
148
- width: '100px',
153
+ renderData: (cellValue, row) => (
154
+ <WfoInlineNoteEdit
155
+ subscriptionId={row.subscriptionId}
156
+ value={cellValue}
157
+ onlyShowOnHover={true}
158
+ />
159
+ ),
149
160
  },
150
161
  metadata: {
151
162
  columnType: ColumnType.DATA,
@@ -10,30 +10,36 @@ import { COPY_ICON_CLASS, getStyles } from './styles';
10
10
 
11
11
  export type WfoFirstUUIDPartProps = {
12
12
  UUID: string;
13
+ showCopyIcon?: boolean;
13
14
  };
14
15
 
15
- export const WfoFirstPartUUID: FC<WfoFirstUUIDPartProps> = ({ UUID }) => {
16
+ export const WfoFirstPartUUID: FC<WfoFirstUUIDPartProps> = ({
17
+ UUID,
18
+ showCopyIcon = true,
19
+ }) => {
16
20
  const { uuidFieldStyle, clickable } = useWithOrchestratorTheme(getStyles);
17
21
  const { theme } = useOrchestratorTheme();
18
22
 
19
23
  return (
20
24
  <span css={uuidFieldStyle}>
21
25
  {getFirstUuidPart(UUID)}
22
- <EuiCopy textToCopy={UUID}>
23
- {(copy) => (
24
- <div
25
- className={COPY_ICON_CLASS}
26
- onClick={copy}
27
- css={clickable}
28
- >
29
- <WfoClipboardCopy
30
- width={16}
31
- height={16}
32
- color={theme.colors.mediumShade}
33
- />
34
- </div>
35
- )}
36
- </EuiCopy>
26
+ {showCopyIcon && (
27
+ <EuiCopy textToCopy={UUID}>
28
+ {(copy) => (
29
+ <div
30
+ className={COPY_ICON_CLASS}
31
+ onClick={copy}
32
+ css={clickable}
33
+ >
34
+ <WfoClipboardCopy
35
+ width={16}
36
+ height={16}
37
+ color={theme.colors.mediumShade}
38
+ />
39
+ </div>
40
+ )}
41
+ </EuiCopy>
42
+ )}
37
43
  </span>
38
44
  );
39
45
  };
@@ -29,8 +29,14 @@ export const WfoTableDataRows = <T extends object>({
29
29
  onRowClick,
30
30
  className,
31
31
  }: WfoTableDataRowsProps<T>) => {
32
- const { cellStyle, rowStyle, dataRowStyle, clickableStyle, setWidth } =
33
- useWithOrchestratorTheme(getWfoTableStyles);
32
+ const {
33
+ cellStyle,
34
+ cellContentStyle,
35
+ rowStyle,
36
+ dataRowStyle,
37
+ clickableStyle,
38
+ setWidth,
39
+ } = useWithOrchestratorTheme(getWfoTableStyles);
34
40
 
35
41
  const sortedVisibleColumns = getSortedVisibleColumns(
36
42
  columnConfig,
@@ -70,7 +76,7 @@ export const WfoTableDataRows = <T extends object>({
70
76
  setWidth(columnConfig.width),
71
77
  ]}
72
78
  >
73
- <div>
79
+ <div css={cellContentStyle}>
74
80
  {columnConfig.renderControl(row)}
75
81
  </div>
76
82
  </td>
@@ -91,7 +97,7 @@ export const WfoTableDataRows = <T extends object>({
91
97
  setWidth(columnConfig.width),
92
98
  ]}
93
99
  >
94
- <div>
100
+ <div css={cellContentStyle}>
95
101
  <WfoDataCell
96
102
  customTooltip={columnConfig.renderTooltip?.(
97
103
  result,
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
2
 
3
3
  import { useOrchestratorTheme } from '@/hooks';
4
- import { WfoArrowNarrowDown, WfoArrowNarrowUp, WfoArrowsUpDown } from '@/icons';
4
+ import { WfoArrowDown, WfoArrowUp, WfoArrowsUpDown } from '@/icons';
5
5
  import { SortOrder } from '@/types';
6
6
 
7
7
  import { SORTABLE_ICON_CLASS } from './styles';
@@ -18,6 +18,8 @@ export const WfoSortDirectionIcon: FC<WfoSortDirectionIconProps> = ({
18
18
  if (!sortDirection) {
19
19
  return (
20
20
  <WfoArrowsUpDown
21
+ height={16}
22
+ width={16}
21
23
  className={SORTABLE_ICON_CLASS}
22
24
  css={{ visibility: 'hidden' }}
23
25
  color={theme.colors.subduedText}
@@ -26,16 +28,8 @@ export const WfoSortDirectionIcon: FC<WfoSortDirectionIconProps> = ({
26
28
  }
27
29
 
28
30
  return sortDirection === SortOrder.ASC ? (
29
- <WfoArrowNarrowUp
30
- color={theme.colors.subduedText}
31
- height={24}
32
- width={24}
33
- />
31
+ <WfoArrowUp color={theme.colors.subduedText} />
34
32
  ) : (
35
- <WfoArrowNarrowDown
36
- color={theme.colors.subduedText}
37
- height={24}
38
- width={24}
39
- />
33
+ <WfoArrowDown color={theme.colors.subduedText} />
40
34
  );
41
35
  };
@@ -116,6 +116,7 @@ export const getWfoBasicTableStyles = ({ theme }: WfoTheme) => {
116
116
  });
117
117
 
118
118
  const sortButtonStyle = css({
119
+ paddingLeft: theme.size.xxs,
119
120
  display: 'flex',
120
121
  flex: '0 0 auto',
121
122
  alignItems: 'center',
@@ -83,6 +83,7 @@ export const getWfoTableStyles = ({ theme }: WfoTheme) => {
83
83
  });
84
84
 
85
85
  const headerCellStyle = css({
86
+ paddingRight: 0,
86
87
  [`&:hover`]: {
87
88
  [`.${SORTABLE_ICON_CLASS}`]: {
88
89
  visibility: 'visible',
@@ -100,6 +101,10 @@ export const getWfoTableStyles = ({ theme }: WfoTheme) => {
100
101
  verticalAlign: 'middle',
101
102
  });
102
103
 
104
+ const cellContentStyle = css({
105
+ display: 'inline-block',
106
+ });
107
+
103
108
  const emptyTableMessageStyle = css({
104
109
  textAlign: 'center',
105
110
  });
@@ -127,6 +132,7 @@ export const getWfoTableStyles = ({ theme }: WfoTheme) => {
127
132
  expandedRowStyle,
128
133
  headerCellStyle,
129
134
  cellStyle,
135
+ cellContentStyle,
130
136
  emptyTableMessageStyle,
131
137
  clickableStyle,
132
138
  setWidth,
@@ -1 +1 @@
1
- export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.10.1';
1
+ export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.12.0';
@@ -0,0 +1,27 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { WfoIconProps } from '@/icons/WfoIconProps';
4
+
5
+ import { withWfoHeroIconsWrapper } from './WfoHeroIconsWrapper';
6
+
7
+ export const WfoArrowDownSvg: FC<WfoIconProps> = ({
8
+ width = 12,
9
+ height = 14,
10
+ color = 'currentColor',
11
+ }) => (
12
+ <svg
13
+ width={width}
14
+ height={height}
15
+ viewBox="4 3 12 14"
16
+ fill={color}
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ >
19
+ <path
20
+ fillRule="evenodd"
21
+ d="M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z"
22
+ clipRule="evenodd"
23
+ />
24
+ </svg>
25
+ );
26
+
27
+ export const WfoArrowDown = withWfoHeroIconsWrapper(WfoArrowDownSvg);
@@ -0,0 +1,27 @@
1
+ import React, { FC } from 'react';
2
+
3
+ import { WfoIconProps } from '@/icons/WfoIconProps';
4
+
5
+ import { withWfoHeroIconsWrapper } from './WfoHeroIconsWrapper';
6
+
7
+ export const WfoArrowUpSvg: FC<WfoIconProps> = ({
8
+ width = 12,
9
+ height = 14,
10
+ color = 'currentColor',
11
+ }) => (
12
+ <svg
13
+ width={width}
14
+ height={height}
15
+ viewBox="4 3 12 14"
16
+ fill={color}
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ >
19
+ <path
20
+ fillRule="evenodd"
21
+ d="M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z"
22
+ clipRule="evenodd"
23
+ />
24
+ </svg>
25
+ );
26
+
27
+ export const WfoArrowUp = withWfoHeroIconsWrapper(WfoArrowUpSvg);
@@ -7,12 +7,12 @@ import { withWfoHeroIconsWrapper } from './WfoHeroIconsWrapper';
7
7
  const WfoArrowsUpDownSvg: FC<WfoIconProps> = ({
8
8
  width = 20,
9
9
  height = 20,
10
- color = '#000000',
10
+ color = 'currentColor',
11
11
  }) => (
12
12
  <svg
13
13
  width={width}
14
14
  height={height}
15
- viewBox="0 0 24 24"
15
+ viewBox="2 2 20 20"
16
16
  fill={color}
17
17
  xmlns="http://www.w3.org/2000/svg"
18
18
  >
@@ -1,6 +1,5 @@
1
1
  import React, { FC, ReactElement } from 'react';
2
2
 
3
- import { useOrchestratorTheme } from '@/hooks';
4
3
  import { WfoIconProps } from '@/icons';
5
4
 
6
5
  export type WfoHeroIconsWrapperProps = {
@@ -11,24 +10,18 @@ export type WfoHeroIconsWrapperProps = {
11
10
  export const WfoHeroIconsWrapper: FC<WfoHeroIconsWrapperProps> = ({
12
11
  children,
13
12
  className,
14
- }) => {
15
- const { theme } = useOrchestratorTheme();
16
-
17
- return (
18
- <div
19
- className={className}
20
- css={{
21
- marginLeft: theme.size.xs,
22
- marginRight: theme.size.xs,
23
- display: 'flex',
24
- alignItems: 'center',
25
- height: '100%',
26
- }}
27
- >
28
- {children}
29
- </div>
30
- );
31
- };
13
+ }) => (
14
+ <div
15
+ className={className}
16
+ css={{
17
+ display: 'flex',
18
+ alignItems: 'center',
19
+ height: '100%',
20
+ }}
21
+ >
22
+ {children}
23
+ </div>
24
+ );
32
25
 
33
26
  export const withWfoHeroIconsWrapper = (Icon: FC<WfoIconProps>) => {
34
27
  const wfoHeroIconsWrapperWithIcon = ({
@@ -1,4 +1,6 @@
1
1
  export * from './WfoHeroIconsWrapper';
2
2
 
3
+ export * from './WfoArrowDown';
3
4
  export * from './WfoArrowsUpDown';
5
+ export * from './WfoArrowUp';
4
6
  export * from './WfoWrench';
@@ -13,9 +13,7 @@ export * from './WfoChevronUp';
13
13
  export * from './WfoBoltFill';
14
14
  export * from './WfoBoltSlashFill';
15
15
  export * from './WfoCubeSolid';
16
- export * from './WfoArrowNarrowDown';
17
16
  export * from './WfoRefresh';
18
- export * from './WfoArrowNarrowUp';
19
17
  export * from './WfoMinusCircleFill';
20
18
  export * from './WfoPlayCircle';
21
19
  export * from './WfoSearchStrikethrough';
@@ -1,3 +1,4 @@
1
+ import { NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS } from '@/configuration';
1
2
  import { orchestratorApi } from '@/rtk';
2
3
  import { CacheTagType } from '@/types';
3
4
  import {
@@ -50,7 +51,7 @@ fragment SubscriptionDetail on SubscriptionInterface {
50
51
  subscriptionInstanceId
51
52
  inUseByRelations
52
53
  }
53
- processes(sortBy: { field: "startedAt", order: ASC }) {
54
+ processes(first: ${NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS}, after: 0, sortBy: { field: "startedAt", order: ASC }) {
54
55
  page {
55
56
  processId
56
57
  lastStatus
@@ -103,6 +103,7 @@ export const getDefaultTableConfig = <T>(storageKey: string) => {
103
103
  case SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY:
104
104
  const subscriptionColumns: (keyof SubscriptionListItem)[] = [
105
105
  'productName',
106
+ 'customerFullname',
106
107
  'metadata',
107
108
  ];
108
109
  return getTableConfig<T>(subscriptionColumns as (keyof T)[]);
@@ -1,13 +0,0 @@
1
- import type { Meta } from '@storybook/react';
2
-
3
- import { WfoArrowNarrowDown } from './WfoArrowNarrowDown';
4
-
5
- const Story: Meta<typeof WfoArrowNarrowDown> = {
6
- component: WfoArrowNarrowDown,
7
- title: 'Icons/WfoArrowNarrowDown',
8
- };
9
- export default Story;
10
-
11
- export const Primary = {
12
- args: {},
13
- };
@@ -1,35 +0,0 @@
1
- import React, { FC } from 'react';
2
-
3
- import { WfoIconProps } from './WfoIconProps';
4
-
5
- export const WfoArrowNarrowDown: FC<WfoIconProps> = ({
6
- width = 16,
7
- height = 20,
8
- color = '#000000',
9
- }) => (
10
- <svg
11
- width={width}
12
- height={height}
13
- viewBox="0 0 16 20"
14
- version="1.1"
15
- xmlns="http://www.w3.org/2000/svg"
16
- className="wfoArrowNarrowIcon"
17
- >
18
- <title>icon/arrow-narrow-down</title>
19
- <g
20
- id="Symbols"
21
- stroke="none"
22
- strokeWidth="1"
23
- fill="none"
24
- fillRule="evenodd"
25
- >
26
- <g id="icon/arrow-narrow-down" fill={color}>
27
- <path
28
- d="M4.29289,9.70711 C3.90237,9.31658 3.90237,8.68342 4.29289,8.29289 L7.29289,5.29289 C7.68342,4.90237 8.3166,4.90237 8.7071,5.29289 L11.7071,8.29289 C12.0976,8.68342 12.0976,9.31658 11.7071,9.70711 C11.3166,10.09763 10.6834,10.09763 10.2929,9.70711 L9,8.41421 L9,14 C9,14.5523 8.5523,15 8,15 C7.44772,15 7,14.5523 7,14 L7,8.41421 L5.70711,9.70711 C5.31658,10.09763 4.68342,10.09763 4.29289,9.70711 Z"
29
- id="Path"
30
- transform="translate(7.999988, 10.000000) rotate(-180.000000) translate(-7.999988, -10.000000) "
31
- ></path>
32
- </g>
33
- </g>
34
- </svg>
35
- );