/* ---------------------------------------------------------------------------
 * Resource registry — single source of truth for sidebar navigation.
 *
 * Groups are populated incrementally across steps 8–10 of the Backstage
 * rebuild. The display order inside each group matches sidebar order.
 * ------------------------------------------------------------------------- */

import type { ResourceGroup } from '../resource-types';
import { dispatchesResource } from './dispatches';
import { roadmapResource } from './roadmap';
import { eventsResource } from './events';
import { usersResource } from './users';
import { invitationsResource } from './invitations';
import { joinRequestsResource } from './join-requests';
import { activityResource } from './activity';

export const groups: ResourceGroup[] = [
  {
    key: 'publishing',
    label: 'Publishing',
    resources: [dispatchesResource, roadmapResource, eventsResource],
  },
  {
    key: 'council',
    label: 'The council',
    resources: [usersResource, invitationsResource, joinRequestsResource],
  },
  {
    key: 'system',
    label: 'System',
    resources: [activityResource],
  },
];
