This repository has been archived on 2026-11-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hope-events/frontend/src/content/help/dashboard-admin-users.tsx
T
joshuaandClaude Opus 5.5 cad075bb3f
CI / Backend tests (push) Canceled after 0s
CI / Frontend lint, typecheck, build (push) Canceled after 0s
CI / End-to-end tests (push) Canceled after 0s
CI / Deploy tagged release (push) Canceled after 0s
Campus-scoped staff: help, docs, changelog (1.44.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 17:52:11 +02:00

54 lines
3.3 KiB
TypeScript

import React from "react";
import { Users, UserPlus, ShieldAlert, Eye, MapPinned } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/admin/users. */
export const dashboardAdminUsersHelpContent: HelpContent = {
title: "Managing users",
subtitle: "Create, edit, and manage accounts and roles.",
tabs: [
{
key: "overview",
label: "Overview",
icon: Users,
content: (
<div className="space-y-4">
<p>Search by name, email, or phone, and filter by role or active status. Use &quot;Create user&quot; to add a new account with a name, email, password, phone, and role.</p>
<div className="space-y-4">
<GuideItem icon={UserPlus} title="Editing a user" tone="brand">
Click a row to open the edit modal — you can change name, email, role, phone, notification preference, active status, or set a new password.
</GuideItem>
<GuideItem icon={MapPinned} title="Limit to campuses" tone="violet">
With campuses on (Site settings → Campuses), a supervisor or staff member can be limited to some campuses. They then see only those campuses&apos; events plus events for all campuses: they can scan, register people and take payments for church-wide events, but not change them, cash them up or refund them. They also can&apos;t use the site banner or payment reconciliation, and only message people at their campuses. Leave every box empty for someone who works with every campus. Admins are never limited, and limits are ignored while campuses are off.
</GuideItem>
</div>
</div>
),
},
{
key: "actions",
label: "Row actions",
icon: ShieldAlert,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={Eye} title="Impersonate" tone="violet">
See the site exactly as a user does, to help with a problem (&quot;my ticket isn&apos;t showing&quot;). Give a reason. A bright banner shows while you&apos;re viewing, for up to 30 minutes. It&apos;s strictly read-only: nothing can be registered, paid, changed or sent. The reason and every page you open are recorded in the audit log. You need two-factor authentication on, and admins can&apos;t be impersonated. Optionally, users get an email when this happens (Site Settings → Legal → Support access).
</GuideItem>
<GuideItem icon={Users} title="Sign out everywhere" tone="amber">
Revokes all of that user&apos;s active sessions — useful if a device was lost or access needs to be cut immediately.
</GuideItem>
<GuideItem icon={Users} title="Deactivate" tone="gray">
Soft-disables the account (they can&apos;t log in) without removing any data. Reversible at any time.
</GuideItem>
<GuideItem icon={ShieldAlert} title="Delete data" tone="rose">
Anonymises the user&apos;s name, email, and phone and deactivates the account. This cannot be undone — use it only for genuine data-removal requests, not as a quick way to disable someone.
</GuideItem>
</div>
</div>
),
},
],
};