/**
 * All 25 registered modules — source of truth: server/index.ts:92-118.
 * rdocs and rdesign are commented out upstream.
 */
export interface ModuleEntry {
  id: string;
  name: string;
  /** Primary custom element on the module's main route, if any */
  primarySelector?: string;
}

export const MODULES: ModuleEntry[] = [
  { id: "rspace",    name: "rSpace",    primarySelector: undefined },          // canvas — serves pre-built HTML
  { id: "rbooks",    name: "rBooks",    primarySelector: "folk-book-shelf" },
  { id: "rpubs",     name: "rPubs",     primarySelector: "folk-pubs-editor" },
  { id: "rcart",     name: "rCart",     primarySelector: "folk-cart-shop" },
  { id: "rswag",     name: "rSwag",     primarySelector: "folk-swag-designer" },
  { id: "rchoices",  name: "rChoices",  primarySelector: "folk-choices-dashboard" },
  { id: "rflows",    name: "rFlows",    primarySelector: "folk-flows-app" },
  { id: "rfiles",    name: "rFiles",    primarySelector: "folk-file-browser" },
  { id: "rforum",    name: "rForum",    primarySelector: "folk-forum-dashboard" },
  { id: "rwallet",   name: "rWallet",   primarySelector: "folk-wallet-viewer" },
  { id: "rvote",     name: "rVote",     primarySelector: "folk-vote-dashboard" },
  { id: "rnotes",    name: "rNotes",    primarySelector: "folk-notes-app" },
  { id: "rmaps",     name: "rMaps",     primarySelector: "folk-map-viewer" },
  { id: "rtasks",    name: "rTasks",    primarySelector: "folk-tasks-board" },
  { id: "rtrips",    name: "rTrips",    primarySelector: "folk-trips-planner" },
  { id: "rcal",      name: "rCal",      primarySelector: "folk-calendar-view" },
  { id: "rnetwork",  name: "rNetwork",  primarySelector: "folk-graph-viewer" },
  { id: "rtube",     name: "rTube",     primarySelector: "folk-video-player" },
  { id: "rinbox",    name: "rInbox",    primarySelector: "folk-inbox-client" },
  { id: "rdata",     name: "rData",     primarySelector: "folk-analytics-view" },
  { id: "rsplat",    name: "rSplat",    primarySelector: "folk-splat-viewer" },
  { id: "rphotos",   name: "rPhotos",   primarySelector: "folk-photo-gallery" },
  { id: "rsocials",  name: "rSocials",  primarySelector: undefined },          // HTML hub page, no main element
  { id: "rschedule", name: "rSchedule", primarySelector: "folk-schedule-app" },
  { id: "rmeets",    name: "rMeets",    primarySelector: undefined },          // HTML hub page
];
