-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat--migrate-SWCR-serverside' of https://github.com/eq…
…uinor/cc-components into feat--migrate-SWCR-serverside
- Loading branch information
Showing
39 changed files
with
328 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/shared/src/packages/sidesheet/src/lib/sidesheet/tabs/swcr/SwcrTab.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 42 additions & 42 deletions
84
...t/src/lib/sidesheet/tabs/swcr/columns.tsx → ...ib/sidesheet/tabs/swcr/detailsColumns.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
import { ColDef, ICellRendererProps } from '@equinor/workspace-ag-grid'; | ||
|
||
import { DescriptionCell } from '../../../../../../table-helpers/src/lib/table/cells/DescriptionCell'; | ||
import { LinkCell } from '../../../../../../table-helpers/src/lib/table/cells/LinkCell'; | ||
import { SwcrBase } from './types'; | ||
|
||
export const columns: ColDef<SwcrBase>[] = [ | ||
{ | ||
field: '#', | ||
valueGetter: (pkg) => pkg.data?.softwareChangeRecordNo, | ||
cellRenderer: (props: ICellRendererProps<SwcrBase, string | null>) => { | ||
return ( | ||
<LinkCell | ||
url={props.data?.softwareChangeRecordUrl} | ||
urlText={props.data?.softwareChangeRecordNo} | ||
/> | ||
); | ||
}, | ||
minWidth: 100, | ||
}, | ||
{ | ||
field: 'Description', | ||
valueGetter: (pkg) => pkg.data?.description, | ||
cellRenderer: (props: ICellRendererProps<SwcrBase>) => ( | ||
<DescriptionCell description={props.value} /> | ||
), | ||
flex: 1, | ||
minWidth: 200, | ||
}, | ||
{ | ||
field: 'Status', | ||
valueGetter: (pkg) => pkg.data?.status, | ||
flex: 1, | ||
minWidth: 100, | ||
}, | ||
{ | ||
field: 'Priority', | ||
valueGetter: (pkg) => pkg.data?.priority, | ||
flex: 1, | ||
minWidth: 100, | ||
}, | ||
]; | ||
import { ColDef, ICellRendererProps } from '@equinor/workspace-ag-grid'; | ||
|
||
import { DescriptionCell } from '../../../../../../table-helpers/src/lib/table/cells/DescriptionCell'; | ||
import { LinkCell } from '../../../../../../table-helpers/src/lib/table/cells/LinkCell'; | ||
import { SwcrBase } from './types'; | ||
|
||
export const columns: ColDef<SwcrBase>[] = [ | ||
{ | ||
field: '#', | ||
valueGetter: (pkg) => pkg.data?.softwareChangeRecordNo, | ||
cellRenderer: (props: ICellRendererProps<SwcrBase, string | null>) => { | ||
return ( | ||
<LinkCell | ||
url={props.data?.softwareChangeRecordUrl} | ||
urlText={props.data?.softwareChangeRecordNo} | ||
/> | ||
); | ||
}, | ||
minWidth: 100, | ||
}, | ||
{ | ||
field: 'Description', | ||
valueGetter: (pkg) => pkg.data?.description, | ||
cellRenderer: (props: ICellRendererProps<SwcrBase>) => ( | ||
<DescriptionCell description={props.value} /> | ||
), | ||
flex: 1, | ||
minWidth: 200, | ||
}, | ||
{ | ||
field: 'Status', | ||
valueGetter: (pkg) => pkg.data?.status, | ||
flex: 1, | ||
minWidth: 100, | ||
}, | ||
{ | ||
field: 'Priority', | ||
valueGetter: (pkg) => pkg.data?.priority, | ||
flex: 1, | ||
minWidth: 100, | ||
}, | ||
]; |
4 changes: 2 additions & 2 deletions
4
libs/shared/src/packages/sidesheet/src/lib/sidesheet/tabs/swcr/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export type SwcrBase = { | ||
softwareChangeRecordNo: string; | ||
softwareChangeRecordId: string; | ||
softwareChangeRecordUrl: string; | ||
status: string; | ||
softwareChangeRecordId: string; | ||
description: string; | ||
priority: string; | ||
status: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { WorkspaceWrapper } from './workspaceConfig'; | ||
export { configure } from './frameworkConfig'; | ||
export { WorkspaceWrapper } from './workspaceConfig'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.