Skip to content

Commit e624224

Browse files
Update content on account access tab of admin page (#1460)
1 parent 16d2793 commit e624224

File tree

6 files changed

+17
-22
lines changed

6 files changed

+17
-22
lines changed

src/components/tables/AccessGrants/AccessLinks/Dialog/index.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ function PrefixInvitationDialog({ open, setOpen }: Props) {
6565
</DialogTitle>
6666

6767
<DialogContent>
68-
{/* <Typography sx={{ mb: 3 }}>
69-
<FormattedMessage id="admin.users.prefixInvitation.message" />
70-
</Typography> */}
71-
7268
{serverError ? (
7369
<Box sx={{ mb: 3 }}>
7470
<Error

src/components/tables/RowActions/AccessGrants/DeleteButton.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { useConfirmationModalContext } from 'context/Confirmation';
55
import { useZustandStore } from 'context/Zustand/provider';
66
import { useState } from 'react';
77
import { FormattedMessage, useIntl } from 'react-intl';
8+
import { SelectTableStoreNames } from 'stores/names';
89
import {
910
SelectableTableStore,
1011
selectableTableStoreSelectors,
1112
} from 'stores/Tables/Store';
12-
import { SelectTableStoreNames } from 'stores/names';
1313
import ConfirmationAlert from '../Shared/ConfirmationAlert';
1414
import RevokeGrant from './RevokeGrant';
1515

@@ -111,7 +111,7 @@ function DeleteButton({ selectTableStoreName }: Props) {
111111
disabled={!selectionsExist}
112112
onClick={handlers.showConfirmationDialog}
113113
>
114-
<FormattedMessage id="cta.revoke" />
114+
<FormattedMessage id="cta.remove" />
115115
</Button>
116116

117117
<Dialog open={showProgress} maxWidth="md">
@@ -124,9 +124,9 @@ function DeleteButton({ selectTableStoreName }: Props) {
124124
key={`revoke-grant-${index}`}
125125
grant={item}
126126
onFinish={onFinish}
127-
runningMessageID="common.revoking"
127+
runningMessageID="common.removing"
128128
selectTableStoreName={selectTableStoreName}
129-
successMessageID="common.revoked"
129+
successMessageID="common.removed"
130130
/>
131131
)}
132132
/>

src/components/tables/cells/refreshTokens/RevokeToken.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { Stack, TableCell, Tooltip, useTheme } from '@mui/material';
22
import { PostgrestError } from '@supabase/postgrest-js';
33
import { INVALID_TOKEN_INTERVAL, updateRefreshTokenValidity } from 'api/tokens';
4+
import SafeLoadingButton from 'components/SafeLoadingButton';
45
import Error from 'components/shared/Error';
56
import { sample_blue } from 'context/Theme';
67
import { useZustandStore } from 'context/Zustand/provider';
78
import { WarningCircle } from 'iconoir-react';
89
import { useState } from 'react';
910
import { FormattedMessage } from 'react-intl';
11+
import { SelectTableStoreNames } from 'stores/names';
1012
import {
1113
SelectableTableStore,
1214
selectableTableStoreSelectors,
1315
} from 'stores/Tables/Store';
14-
import { SelectTableStoreNames } from 'stores/names';
15-
import SafeLoadingButton from 'components/SafeLoadingButton';
1616

1717
interface Props {
1818
id: string;
@@ -63,7 +63,7 @@ function RevokeTokenButton({ id }: Props) {
6363
onClick={revokeToken}
6464
variant="text"
6565
>
66-
<FormattedMessage id="cta.revoke" />
66+
<FormattedMessage id="cta.remove" />
6767
</SafeLoadingButton>
6868

6969
{error ? (

src/lang/en-US/AdminPage.ts

+7-8
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ export const AdminPage: Record<string, string> = {
8989
'admin.billing.addPaymentMethods.title': `Add a payment method`,
9090
'admin.billing.addPaymentMethods.stripeLoadError': `Unable to load the forms from Stripe. ${Errors['error.tryAgain']}`,
9191

92-
'admin.grants.confirmation.alert': `Access to all items will be revoked and this action cannot be undone. Please review the list to continue.`,
92+
'admin.grants.confirmation.alert': `Access to all items will be removed and this action cannot be undone. Please review the list to continue.`,
9393

94-
'admin.users.cta.prefixInvitation': `Manage Invitations`,
95-
'admin.users.prefixInvitation.header': `Manage Invitations`,
96-
'admin.users.prefixInvitation.message': `This is a placeholder for a description.`,
94+
'admin.users.cta.prefixInvitation': `Add Users`,
95+
'admin.users.prefixInvitation.header': `Add Users`,
9796
'admin.users.prefixInvitation.label.capability': `Capability`,
9897
'admin.users.prefixInvitation.label.type': `Type`,
99-
'admin.users.prefixInvitation.cta.generateLink': `Generate Invitation`,
98+
'admin.users.prefixInvitation.cta.generateLink': `Create Invite Link`,
10099
'admin.users.confirmation.listItem': `{identifier} with {capability} access.`,
101100

102101
'admin.prefix.cta.issueGrant': `Grant Access`,
@@ -181,15 +180,15 @@ export const AdminPage: Record<string, string> = {
181180
'accessGrants.message1': `No results found.`,
182181
'accessGrants.message2': `We couldn't find any results matching your search. Please try a different filter.`,
183182

184-
'accessGrants.table.accessLinks.title': `Active Invitations`,
183+
'accessGrants.table.accessLinks.title': `Active Invite Links`,
185184
'accessGrants.table.accessLinks.cta.generate': `Create Links`,
186185
'accessGrants.table.accessLinks.header.noData': `No active invitations found.`,
187-
'accessGrants.table.accessLinks.message.noData': `To create an invitation, click the "Generate Invitation" button above. Invitations will be listed here while they are live.`,
186+
'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.`,
188187
'accessGrants.table.accessLinks.label.filter': `Filter Prefix or Capability`,
189188
'accessGrants.table.accessLinks.label.provisioningPrefix': `Provisioner`,
190189
'accessGrants.table.accessLinks.label.grantedPrefix': `Prefix`,
191190
'accessGrants.table.accessLinks.label.capability': `Capability`,
192-
'accessGrants.table.accessLinks.label.url': `URL`,
191+
'accessGrants.table.accessLinks.label.url': `Invite Link`,
193192
'accessGrants.table.accessLinks.label.lastUpdated': `Last Updated`,
194193
'accessGrants.table.accessLinks.label.actions': `Actions`,
195194
'accessGrants.table.accessLinks.delete.confirm': `All items will be disabled and this action cannot be undone. Please review the list to continue.`,

src/lang/en-US/CTAs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const CTAs: Record<string, string> = {
4646
'cta.add': `Add`,
4747
'cta.transform': `Transform`,
4848
'cta.back': `Back`,
49-
'cta.revoke': `Revoke`,
49+
'cta.remove': `Remove`,
5050
'cta.goToDetails': `See Details`,
5151
'cta.goToAll': `See all`,
5252
// These are dynamically created in the Save button

src/lang/en-US/CommonMessages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export const CommonMessages: Record<string, string> = {
4545
'common.failedFetch': `Unable to reach server`,
4646
'common.missingError': `Something went wrong`,
4747
'common.exampleName': `marketing_data`,
48-
'common.revoking': `Revoking...`,
49-
'common.revoked': `Revoked`,
48+
'common.removing': `Removing...`,
49+
'common.removed': `Removed`,
5050
'common.default': `Default`,
5151
'common.public': `Public`,
5252
'common.private': `Private`,

0 commit comments

Comments
 (0)