feat(admin): groups management UI in the console

Add a super-admin-only Groups tab to create, edit and delete groups
(name, admin ids, owner scope). Routes now require a group via a select
in the editor, group names are shown on route cards, and the new
useMe/useGroups composables back the UI.
This commit is contained in:
RhenCloud 2026-08-02 08:16:05 +08:00
parent 537f4cbb84
commit 62985a2f3f
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
8 changed files with 382 additions and 9 deletions

View file

@ -14,6 +14,21 @@ export interface Route {
threadId?: string;
};
lang?: string;
groupId?: string;
}
export interface Group {
id: string;
name: string;
adminIds: string[];
owners?: string[];
}
export interface Me {
login: string;
userId: string;
isSuper: boolean;
groups: Group[];
}
export const FILTER_TYPES = ["event", "repo", "actor", "action", "branch", "keyword"] as const;