Skip to content

Commit a442a0b

Browse files
new column width and customer fullname hidden (#1571)
* new column width and customer fullname hidden * Create wild-pandas-hunt.md
1 parent 5031709 commit a442a0b

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.changeset/wild-pandas-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@orchestrator-ui/orchestrator-ui-components": patch
3+
---
4+
5+
new column width and customer fullname hidden

packages/orchestrator-ui-components/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
8080
subscriptionId: {
8181
columnType: ColumnType.DATA,
8282
label: t('id'),
83+
width: '100px',
8384
renderData: (value) => <WfoFirstPartUUID UUID={value} />,
8485
renderDetails: (value) => value,
8586
renderTooltip: (value) => value,
8687
},
8788
description: {
8889
columnType: ColumnType.DATA,
8990
label: t('description'),
90-
width: '400px',
91+
width: '500px',
9192
renderData: (value, record) => (
9293
<Link href={`/subscriptions/${record.subscriptionId}`}>
9394
{value}
@@ -98,13 +99,15 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
9899
status: {
99100
columnType: ColumnType.DATA,
100101
label: t('status'),
102+
width: '120px',
101103
renderData: (value) => (
102104
<WfoSubscriptionStatusBadge status={value} />
103105
),
104106
},
105107
insync: {
106108
columnType: ColumnType.DATA,
107109
label: t('insync'),
110+
width: '80px',
108111
renderData: (value) => <WfoInsyncIcon inSync={value} />,
109112
},
110113
productName: {
@@ -119,7 +122,6 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
119122
customerFullname: {
120123
columnType: ColumnType.DATA,
121124
label: t('customerFullname'),
122-
width: '150px',
123125
},
124126
customerShortcode: {
125127
columnType: ColumnType.DATA,
@@ -129,6 +131,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
129131
startDate: {
130132
columnType: ColumnType.DATA,
131133
label: t('startDate'),
134+
width: '120px',
132135
renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
133136
renderDetails: parseDateToLocaleDateTimeString,
134137
clipboardText: parseDateToLocaleDateTimeString,
@@ -137,6 +140,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
137140
endDate: {
138141
columnType: ColumnType.DATA,
139142
label: t('endDate'),
143+
width: '120px',
140144
renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
141145
renderDetails: parseDateToLocaleDateTimeString,
142146
clipboardText: parseDateToLocaleDateTimeString,
@@ -145,7 +149,6 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
145149
note: {
146150
columnType: ColumnType.DATA,
147151
label: t('note'),
148-
width: '100px',
149152
},
150153
metadata: {
151154
columnType: ColumnType.DATA,

packages/orchestrator-ui-components/src/utils/getDefaultTableConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const getDefaultTableConfig = <T>(storageKey: string) => {
103103
case SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY:
104104
const subscriptionColumns: (keyof SubscriptionListItem)[] = [
105105
'productName',
106+
'customerFullname',
106107
'metadata',
107108
];
108109
return getTableConfig<T>(subscriptionColumns as (keyof T)[]);

0 commit comments

Comments
 (0)