import type { ModuleConfig } from "@/core/module-registry/types";
import { registerModules } from "@/core/module-registry";

import { registraturaConfig } from "@/modules/registratura/config";
import { emailSignatureConfig } from "@/modules/email-signature/config";
import { wordXmlConfig } from "@/modules/word-xml/config";
import { promptGeneratorConfig } from "@/modules/prompt-generator/config";
import { digitalSignaturesConfig } from "@/modules/digital-signatures/config";
import { passwordVaultConfig } from "@/modules/password-vault/config";
import { itInventoryConfig } from "@/modules/it-inventory/config";
import { addressBookConfig } from "@/modules/address-book/config";
import { wordTemplatesConfig } from "@/modules/word-templates/config";
import { tagManagerConfig } from "@/modules/tag-manager/config";
import { miniUtilitiesConfig } from "@/modules/mini-utilities/config";
import { aiChatConfig } from "@/modules/ai-chat/config";
import { hotDeskConfig } from "@/modules/hot-desk/config";
import { visualCopilotConfig } from "@/modules/visual-copilot/config";
import { parcelSyncConfig } from "@/modules/parcel-sync/config";
import { geoportalConfig } from "@/modules/geoportal/config";

/**
 * Toate configurările modulelor ArchiTools, ordonate după navOrder.
 * Dashboard-ul nu este inclus deoarece este pagina principală, nu un modul standard.
 */
export const MODULE_CONFIGS: ModuleConfig[] = [
  registraturaConfig, // navOrder: 10  | operations
  passwordVaultConfig, // navOrder: 11  | operations
  emailSignatureConfig, // navOrder: 20  | generators
  wordXmlConfig, // navOrder: 21  | generators
  wordTemplatesConfig, // navOrder: 22  | generators
  digitalSignaturesConfig, // navOrder: 30  | management
  itInventoryConfig, // navOrder: 31  | management
  addressBookConfig, // navOrder: 32  | management
  hotDeskConfig, // navOrder: 33  | management
  tagManagerConfig, // navOrder: 40  | tools
  miniUtilitiesConfig, // navOrder: 41  | tools
  parcelSyncConfig, // navOrder: 42  | tools
  geoportalConfig, // navOrder: 43  | tools
  promptGeneratorConfig, // navOrder: 50  | ai
  aiChatConfig, // navOrder: 51  | ai
  visualCopilotConfig, // navOrder: 52  | ai
];

// Înregistrare automată a tuturor modulelor în registru
registerModules(MODULE_CONFIGS);
