Skip to content

Commit

Permalink
COS-6920: Update one time SLI grouping logic and UI in edit modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasia9090 committed Feb 20, 2025
1 parent 577e5bf commit 20f85b6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ export const ProductItem: FC<ServiceItemProps> = observer(
variant='unstyled'
className='text-xs text-grayModern-500'
placeholder='Add an invoice description...'
defaultValue={service?.tempValue?.description ?? ''}
onBlur={(e) => {
service.updateTemp((prev) => ({
...prev,
description: e.target.value ?? '',
}));
}}
/>
)}
</>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/src/types/__generated__/graphql.types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/store/ContractLineItems/ContractLineItems.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class ContractLineItemsStore implements GroupStore<ServiceLineItem> {
id: payload.parentId,
price: payload.price,
quantity: payload.quantity,
description: payload.description ?? '',
skuId: payload.skuId,
serviceStarted: payload.serviceStarted,
};
Expand Down Expand Up @@ -273,6 +274,7 @@ export class ContractLineItemsStore implements GroupStore<ServiceLineItem> {
},
contractId,
skuId: payload.skuId,
description: payload.description ?? '',
billingCycle: payload.billingCycle,
price:
typeof payload.price === 'string'
Expand Down
1 change: 1 addition & 0 deletions src/store/Invoices/__service__/getInvoice.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type InvoiceQuery = {
};
contractLineItem: {
__typename?: 'ServiceLineItem';
description?: string | null;
serviceStarted: any;
price: number;
billingCycle: Types.BilledType;
Expand Down
1 change: 1 addition & 0 deletions src/store/Invoices/__service__/getInvoice.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ query Invoice($number: String!) {
appSource
}
contractLineItem {
description
serviceStarted
price
billingCycle
Expand Down
1 change: 1 addition & 0 deletions src/store/Invoices/__service__/getInvoices.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export type GetInvoicesQuery = {
};
contractLineItem: {
__typename?: 'ServiceLineItem';
description?: string | null;
serviceStarted: any;
price: number;
billingCycle: Types.BilledType;
Expand Down
1 change: 1 addition & 0 deletions src/store/Invoices/__service__/getInvoices.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ query getInvoices($pagination: Pagination!, $where: Filter, $sort: [SortBy!]) {
appSource
}
contractLineItem {
description
serviceStarted
price
billingCycle
Expand Down

0 comments on commit 20f85b6

Please sign in to comment.