feat(housekeeping): complete people moderation parity
This commit is contained in:
1 parent
3d385d1869
commit
29fe22297b
41 files changed
+3465
-580
No files matched your search
@@ -121,6 +121,21 @@ export function PeopleStaffPage({ context, result }: PeopleStaffPageProps) {
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
) : data.kind === "moderation-team" ? (
|
||||
<ul className="space-y-2">
|
||||
{data.page.items.map((member) => (
|
||||
<li
|
||||
key={member.id}
|
||||
className="rounded-lg border border-[var(--admin-border)] bg-[var(--admin-surface)] p-4"
|
||||
>
|
||||
<a href={member.href}>{member.username}</a>
|
||||
<p>
|
||||
{member.openCfh} CFH · {member.openTickets} tickets ·{" "}
|
||||
{member.actionCount} actions
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
@@ -131,7 +146,9 @@ export function PeopleStaffPage({ context, result }: PeopleStaffPageProps) {
|
||||
export async function renderPeopleStaffPage(input: HousekeepingPageInput) {
|
||||
const routeId = input.match.routeId;
|
||||
const result =
|
||||
routeId === "people.staff.applications" || routeId === "people.staff.teams"
|
||||
routeId === "people.staff.applications" ||
|
||||
routeId === "people.staff.teams" ||
|
||||
routeId === "people.staff.moderation-team"
|
||||
? await peopleStaffQuery.run(input.context, {
|
||||
routeId,
|
||||
list: parsePeopleListInput(input.searchParams ?? {}),
|
||||
|
||||
Reference in new issue
Block a user