From e624224a68bf7e9be14f00b96497bfa5bd16fb3a Mon Sep 17 00:00:00 2001 From: Kiahna Tucker <77648584+kiahna-tucker@users.noreply.github.com> Date: Tue, 11 Feb 2025 09:38:14 -0500 Subject: [PATCH] Update content on account access tab of admin page (#1460) --- .../AccessGrants/AccessLinks/Dialog/index.tsx | 4 ---- .../RowActions/AccessGrants/DeleteButton.tsx | 8 ++++---- .../tables/cells/refreshTokens/RevokeToken.tsx | 6 +++--- src/lang/en-US/AdminPage.ts | 15 +++++++-------- src/lang/en-US/CTAs.ts | 2 +- src/lang/en-US/CommonMessages.ts | 4 ++-- 6 files changed, 17 insertions(+), 22 deletions(-) diff --git a/src/components/tables/AccessGrants/AccessLinks/Dialog/index.tsx b/src/components/tables/AccessGrants/AccessLinks/Dialog/index.tsx index 1ee7934e8..5a21fc0ac 100644 --- a/src/components/tables/AccessGrants/AccessLinks/Dialog/index.tsx +++ b/src/components/tables/AccessGrants/AccessLinks/Dialog/index.tsx @@ -65,10 +65,6 @@ function PrefixInvitationDialog({ open, setOpen }: Props) { - {/* - - */} - {serverError ? ( - + @@ -124,9 +124,9 @@ function DeleteButton({ selectTableStoreName }: Props) { key={`revoke-grant-${index}`} grant={item} onFinish={onFinish} - runningMessageID="common.revoking" + runningMessageID="common.removing" selectTableStoreName={selectTableStoreName} - successMessageID="common.revoked" + successMessageID="common.removed" /> )} /> diff --git a/src/components/tables/cells/refreshTokens/RevokeToken.tsx b/src/components/tables/cells/refreshTokens/RevokeToken.tsx index 56ffaca81..6f52aec0e 100644 --- a/src/components/tables/cells/refreshTokens/RevokeToken.tsx +++ b/src/components/tables/cells/refreshTokens/RevokeToken.tsx @@ -1,18 +1,18 @@ import { Stack, TableCell, Tooltip, useTheme } from '@mui/material'; import { PostgrestError } from '@supabase/postgrest-js'; import { INVALID_TOKEN_INTERVAL, updateRefreshTokenValidity } from 'api/tokens'; +import SafeLoadingButton from 'components/SafeLoadingButton'; import Error from 'components/shared/Error'; import { sample_blue } from 'context/Theme'; import { useZustandStore } from 'context/Zustand/provider'; import { WarningCircle } from 'iconoir-react'; import { useState } from 'react'; import { FormattedMessage } from 'react-intl'; +import { SelectTableStoreNames } from 'stores/names'; import { SelectableTableStore, selectableTableStoreSelectors, } from 'stores/Tables/Store'; -import { SelectTableStoreNames } from 'stores/names'; -import SafeLoadingButton from 'components/SafeLoadingButton'; interface Props { id: string; @@ -63,7 +63,7 @@ function RevokeTokenButton({ id }: Props) { onClick={revokeToken} variant="text" > - + {error ? ( diff --git a/src/lang/en-US/AdminPage.ts b/src/lang/en-US/AdminPage.ts index 8b09dfc43..649c56068 100644 --- a/src/lang/en-US/AdminPage.ts +++ b/src/lang/en-US/AdminPage.ts @@ -89,14 +89,13 @@ export const AdminPage: Record = { 'admin.billing.addPaymentMethods.title': `Add a payment method`, 'admin.billing.addPaymentMethods.stripeLoadError': `Unable to load the forms from Stripe. ${Errors['error.tryAgain']}`, - 'admin.grants.confirmation.alert': `Access to all items will be revoked and this action cannot be undone. Please review the list to continue.`, + 'admin.grants.confirmation.alert': `Access to all items will be removed and this action cannot be undone. Please review the list to continue.`, - 'admin.users.cta.prefixInvitation': `Manage Invitations`, - 'admin.users.prefixInvitation.header': `Manage Invitations`, - 'admin.users.prefixInvitation.message': `This is a placeholder for a description.`, + 'admin.users.cta.prefixInvitation': `Add Users`, + 'admin.users.prefixInvitation.header': `Add Users`, 'admin.users.prefixInvitation.label.capability': `Capability`, 'admin.users.prefixInvitation.label.type': `Type`, - 'admin.users.prefixInvitation.cta.generateLink': `Generate Invitation`, + 'admin.users.prefixInvitation.cta.generateLink': `Create Invite Link`, 'admin.users.confirmation.listItem': `{identifier} with {capability} access.`, 'admin.prefix.cta.issueGrant': `Grant Access`, @@ -181,15 +180,15 @@ export const AdminPage: Record = { 'accessGrants.message1': `No results found.`, 'accessGrants.message2': `We couldn't find any results matching your search. Please try a different filter.`, - 'accessGrants.table.accessLinks.title': `Active Invitations`, + 'accessGrants.table.accessLinks.title': `Active Invite Links`, 'accessGrants.table.accessLinks.cta.generate': `Create Links`, 'accessGrants.table.accessLinks.header.noData': `No active invitations found.`, - 'accessGrants.table.accessLinks.message.noData': `To create an invitation, click the "Generate Invitation" button above. Invitations will be listed here while they are live.`, + 'accessGrants.table.accessLinks.message.noData': `To create an invitation, click the "Create Invite Link" button above. Invitations will be listed here while they are live.`, 'accessGrants.table.accessLinks.label.filter': `Filter Prefix or Capability`, 'accessGrants.table.accessLinks.label.provisioningPrefix': `Provisioner`, 'accessGrants.table.accessLinks.label.grantedPrefix': `Prefix`, 'accessGrants.table.accessLinks.label.capability': `Capability`, - 'accessGrants.table.accessLinks.label.url': `URL`, + 'accessGrants.table.accessLinks.label.url': `Invite Link`, 'accessGrants.table.accessLinks.label.lastUpdated': `Last Updated`, 'accessGrants.table.accessLinks.label.actions': `Actions`, 'accessGrants.table.accessLinks.delete.confirm': `All items will be disabled and this action cannot be undone. Please review the list to continue.`, diff --git a/src/lang/en-US/CTAs.ts b/src/lang/en-US/CTAs.ts index 1410a0e5c..49608fac7 100644 --- a/src/lang/en-US/CTAs.ts +++ b/src/lang/en-US/CTAs.ts @@ -46,7 +46,7 @@ export const CTAs: Record = { 'cta.add': `Add`, 'cta.transform': `Transform`, 'cta.back': `Back`, - 'cta.revoke': `Revoke`, + 'cta.remove': `Remove`, 'cta.goToDetails': `See Details`, 'cta.goToAll': `See all`, // These are dynamically created in the Save button diff --git a/src/lang/en-US/CommonMessages.ts b/src/lang/en-US/CommonMessages.ts index 7cef7c6c8..c04e54cc6 100644 --- a/src/lang/en-US/CommonMessages.ts +++ b/src/lang/en-US/CommonMessages.ts @@ -45,8 +45,8 @@ export const CommonMessages: Record = { 'common.failedFetch': `Unable to reach server`, 'common.missingError': `Something went wrong`, 'common.exampleName': `marketing_data`, - 'common.revoking': `Revoking...`, - 'common.revoked': `Revoked`, + 'common.removing': `Removing...`, + 'common.removed': `Removed`, 'common.default': `Default`, 'common.public': `Public`, 'common.private': `Private`,