Skip to content

Commit ce2d607

Browse files
chore: remove projects column from service accounts table (#1589)
1 parent 166175f commit ce2d607

4 files changed

Lines changed: 3 additions & 88 deletions

File tree

‎web/sdk/react/views-new/service-accounts/components/projects-cell.module.css‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎web/sdk/react/views-new/service-accounts/components/projects-cell.tsx‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎web/sdk/react/views-new/service-accounts/components/service-account-columns.tsx‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import type { ServiceUser } from '@raystack/proton/frontier';
1212
import type { Timestamp } from '@bufbuild/protobuf/wkt';
1313
import { timestampToDayjs } from '~/utils/timestamp';
14-
import { ProjectsCell } from './projects-cell';
1514
import styles from './service-account-columns.module.css';
1615

1716
export interface ServiceAccountMenuPayload {
@@ -26,14 +25,12 @@ interface GetColumnsOptions {
2625
dateFormat: string;
2726
menuHandle: MenuHandle;
2827
canUpdateWorkspace: boolean;
29-
orgId: string;
3028
}
3129

3230
export const getColumns = ({
3331
dateFormat,
3432
menuHandle,
35-
canUpdateWorkspace,
36-
orgId
33+
canUpdateWorkspace
3734
}: GetColumnsOptions): DataTableColumnDef<ServiceUser, unknown>[] => [
3835
{
3936
header: 'Name',
@@ -43,20 +40,6 @@ export const getColumns = ({
4340
return <Text size="regular">{value}</Text>;
4441
}
4542
},
46-
{
47-
header: 'Projects',
48-
id: 'projects',
49-
accessorKey: 'id',
50-
enableSorting: false,
51-
styles: {
52-
cell: { maxWidth: '600px' },
53-
header: { maxWidth: '600px' }
54-
},
55-
cell: ({ getValue }) => {
56-
const serviceUserId = getValue() as string;
57-
return <ProjectsCell serviceUserId={serviceUserId} orgId={orgId} />;
58-
}
59-
},
6043
{
6144
header: 'Created On',
6245
accessorKey: 'createdAt',

‎web/sdk/react/views-new/service-accounts/service-accounts-view.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ export function ServiceAccountsView({
120120
getColumns({
121121
dateFormat,
122122
menuHandle: serviceAccountMenuHandle,
123-
canUpdateWorkspace,
124-
orgId
123+
canUpdateWorkspace
125124
}),
126-
[dateFormat, canUpdateWorkspace, orgId]
125+
[dateFormat, canUpdateWorkspace]
127126
);
128127

129128
const handleCreated = (serviceUserId: string) => {

0 commit comments

Comments
 (0)