Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions .changeset/shaky-poets-wear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@siafoundation/indexd-types': minor
'indexd': minor
---

Removed serviceAccount, as it is no longer supplied. Closes https://github.com/SiaFoundation/indexd/issues/794
4 changes: 0 additions & 4 deletions apps/indexd/components/Data/Accounts/SidePanelAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ export function SidePanelAccount() {
value={account.description}
variant="column"
/>
<InfoRow
label="Service account"
value={account.serviceAccount ? 'Yes' : 'No'}
/>
<InfoRow
label="Max pinned data"
value={account.displayFields.maxPinnedData}
Expand Down
12 changes: 0 additions & 12 deletions apps/indexd/components/Data/Accounts/accountsColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ export const accountsColumns: ColumnDef<AccountData>[] = [
cell: ({ row }) => <Text>{row.original.description}</Text>,
meta: { className: 'justify-start', ...hashColumnWidth },
},
{
id: 'serviceAccount',
header: ({ table, column }) => (
<TableHeader table={table} column={column} className="justify-end">
Service account
</TableHeader>
),
cell: ({ row }) => (
<Text>{row.original.serviceAccount ? 'Yes' : 'No'}</Text>
),
meta: { className: 'justify-end', ...smallColumnWidth },
},
{
id: 'maxPinnedData',
Comment thread
telestrial marked this conversation as resolved.
header: ({ table, column }) => (
Expand Down
1 change: 0 additions & 1 deletion apps/indexd/components/Data/Accounts/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export function transformAccount(account: Account): AccountData {
id: account.accountKey,
publicKey: account.accountKey,
description: account.description,
serviceAccount: account.serviceAccount,
maxPinnedData: account.maxPinnedData,
pinnedData: account.pinnedData,
lastUsed: account.lastUsed,
Expand Down
1 change: 0 additions & 1 deletion apps/indexd/components/Data/Accounts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export type AccountData = {
id: string
publicKey: string
description: string
serviceAccount: boolean
maxPinnedData: number
pinnedData: number
lastUsed: string
Expand Down
1 change: 0 additions & 1 deletion libs/indexd-types/src/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export const adminAccountsRoute = '/accounts'
export type AdminAccountsParams = {
offset?: number
limit?: number
serviceaccount?: boolean
connectkey?: string
}
export type AdminAccountsPayload = void
Expand Down
1 change: 0 additions & 1 deletion libs/indexd-types/src/admin/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export type Account = {
description: string
pinnedData: number
maxPinnedData: number
serviceAccount: boolean
lastUsed: string
logoURL: string
serviceURL: string
Expand Down
Loading