Map admins: owners invite friends to co-manage maps
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 6m2s

Owners can invite players by name from the map workshop; invitees accept
from their dashboard and then manage the map (details, locations,
submission, refresh, contributions, appeals) through owner-delegated
checks. Adds the map_admins table, invite/admin API endpoints, dashboard
invite box, workshop admin management, and Russian translations.
This commit is contained in:
2026-10-31 17:28:05 +05:00
parent 0d62f08e77
commit 05854818a0
11 changed files with 603 additions and 18 deletions

View File

@@ -11,7 +11,9 @@ import type { MapListing } from "@/lib/catalog";
import type { ProcessingJob } from "@/shared/processing-progress";
import { ProcessingProgress } from "./ProcessingProgress";
import { ImportMap } from "./MapTransfer";
import { AdminInvites } from "./AdminInvites";
type Draft = MapListing & {
access?: "owner" | "admin";
upload_jobs: ProcessingJob | null;
};
export function Dashboard() {
@@ -128,6 +130,7 @@ export function Dashboard() {
</Link>
</div>
)}
<AdminInvites onChange={load} />
{maps.map((m) => (
<article className="draft-row" key={m.id}>
<div>
@@ -135,6 +138,9 @@ export function Dashboard() {
{m.source === "plugin" ? t("SERVER EXPORT") : t("PLAYER CAPTURE")}
</span>
<h3>{m.name}</h3>
{m.access === "admin" && (
<span className="badge">{t("Map admin")}</span>
)}{" "}
<span className="badge">
{m.contribution_status
? t("Contribution: {status}", {