Skip to content

Commit 770437f

Browse files
committed
Terminology pass: clarify revoked vs pending moderation states
1 parent 0277d63 commit 770437f

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/components/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,14 +1763,14 @@ export function Sidebar() {
17631763

17641764
<section className="panel-section">
17651765
<details className="compact-details">
1766-
<summary>More</summary>
1766+
<summary>Tools & Data</summary>
17671767
<div className="section-heading">
1768-
<p className="field-help">Cloud Auth & Sync</p>
1768+
<p className="field-help">Cloud Sync</p>
17691769
<InfoTip text="Sync Site Library and Simulation Library through Cloudflare D1. Access is enforced by Cloudflare Access at the edge, and ownership/sharing metadata is persisted server-side." />
17701770
</div>
17711771
<AuthSyncPanel />
17721772
<div className="section-heading">
1773-
<p className="field-help">Local Data Safety</p>
1773+
<p className="field-help">Local Storage Safety</p>
17741774
<InfoTip text="Your site and simulation libraries are saved in this browser origin. Export backups regularly, and use Restore Snapshot if data looks missing after refresh." />
17751775
</div>
17761776
{storageOriginWarning ? <p className="field-help warning-text">{storageOriginWarning}</p> : null}

src/components/UserAdminPanel.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ export function UserAdminPanel() {
317317
try {
318318
await updateUserApproval(user.id, false);
319319
await refreshAdminData();
320-
setStatus(`Set ${user.username} to pending access.`);
320+
setStatus(
321+
`${user.isApproved ? "Revoked access for" : "Set pending access for"} ${user.username}.`,
322+
);
321323
} catch (error) {
322324
const message = getUiErrorMessage(error);
323325
setStatus(`Reject failed: ${message}`);
@@ -720,7 +722,7 @@ export function UserAdminPanel() {
720722
{managedUser.isApproved ? "Revoke Access" : "Approve Access"}
721723
</button>
722724
<button className="inline-action" onClick={() => void rejectUser(managedUser)} type="button">
723-
Set Pending
725+
{managedUser.isApproved ? "Revoke To Revoked State" : "Set Pending"}
724726
</button>
725727
<button className="inline-action" onClick={() => void toggleAdmin(managedUser)} type="button">
726728
{managedUser.isAdmin ? "Set User" : "Set Admin"}
@@ -730,7 +732,8 @@ export function UserAdminPanel() {
730732
</button>
731733
</div>
732734
<p className="field-help">
733-
Set Pending removes approval only. It does not delete the account and the user can still update profile while pending.
735+
Set Pending keeps unapproved users in the pending queue. Revoke moves an approved user to revoked
736+
state without deleting the account.
734737
</p>
735738
</div>
736739
</ModalOverlay>

0 commit comments

Comments
 (0)