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

new column width and customer fullname hidden #1571

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions .changeset/wild-pandas-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@orchestrator-ui/orchestrator-ui-components": patch
---

new column width and customer fullname hidden
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
subscriptionId: {
columnType: ColumnType.DATA,
label: t('id'),
width: '100px',
renderData: (value) => <WfoFirstPartUUID UUID={value} />,
renderDetails: (value) => value,
renderTooltip: (value) => value,
},
description: {
columnType: ColumnType.DATA,
label: t('description'),
width: '400px',
width: '500px',
renderData: (value, record) => (
<Link href={`/subscriptions/${record.subscriptionId}`}>
{value}
Expand All @@ -98,13 +99,15 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
status: {
columnType: ColumnType.DATA,
label: t('status'),
width: '120px',
renderData: (value) => (
<WfoSubscriptionStatusBadge status={value} />
),
},
insync: {
columnType: ColumnType.DATA,
label: t('insync'),
width: '80px',
renderData: (value) => <WfoInsyncIcon inSync={value} />,
},
productName: {
Expand All @@ -119,7 +122,6 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
customerFullname: {
columnType: ColumnType.DATA,
label: t('customerFullname'),
width: '150px',
},
customerShortcode: {
columnType: ColumnType.DATA,
Expand All @@ -129,6 +131,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
startDate: {
columnType: ColumnType.DATA,
label: t('startDate'),
width: '120px',
renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
renderDetails: parseDateToLocaleDateTimeString,
clipboardText: parseDateToLocaleDateTimeString,
Expand All @@ -137,6 +140,7 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
endDate: {
columnType: ColumnType.DATA,
label: t('endDate'),
width: '120px',
renderData: (value) => <WfoDateTime dateOrIsoString={value} />,
renderDetails: parseDateToLocaleDateTimeString,
clipboardText: parseDateToLocaleDateTimeString,
Expand All @@ -145,7 +149,6 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
note: {
columnType: ColumnType.DATA,
label: t('note'),
width: '100px',
},
metadata: {
columnType: ColumnType.DATA,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.9.1';
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.10.0';
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const getDefaultTableConfig = <T>(storageKey: string) => {
case SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY:
const subscriptionColumns: (keyof SubscriptionListItem)[] = [
'productName',
'customerFullname',
'metadata',
];
return getTableConfig<T>(subscriptionColumns as (keyof T)[]);
Expand Down
Loading