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

@@ -367,6 +367,44 @@ export type Database = {
Update: Partial<AppealRecord>;
Relationships: [];
};
map_admins: {
Row: {
created_at: string;
dataset_id: string;
id: string;
invited_by: string;
responded_at: string | null;
state: string;
user_id: string;
};
Insert: {
created_at?: string;
dataset_id: string;
id?: string;
invited_by: string;
responded_at?: string | null;
state?: string;
user_id: string;
};
Update: {
created_at?: string;
dataset_id?: string;
id?: string;
invited_by?: string;
responded_at?: string | null;
state?: string;
user_id?: string;
};
Relationships: [
{
foreignKeyName: "map_admins_dataset_id_fkey";
columns: ["dataset_id"];
isOneToOne: false;
referencedRelation: "datasets";
referencedColumns: ["id"];
},
];
};
catalog_servers: {
Row: {
address: string | null;