Initial commit: ArchiTools modular dashboard platform
Complete Next.js 16 application with 13 fully implemented modules: Email Signature, Word XML Generator, Registratura, Dashboard, Tag Manager, IT Inventory, Address Book, Password Vault, Mini Utilities, Prompt Generator, Digital Signatures, Word Templates, and AI Chat. Includes core platform systems (module registry, feature flags, storage abstraction, i18n, theming, auth stub, tagging), 16 technical documentation files, Docker deployment config, and legacy HTML tool reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
51
src/config/navigation.ts
Normal file
51
src/config/navigation.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { getAllModules, MODULE_CATEGORY_LABELS } from '@/core/module-registry';
|
||||
import type { ModuleCategory } from '@/core/module-registry';
|
||||
|
||||
export interface NavGroup {
|
||||
category: ModuleCategory;
|
||||
label: string;
|
||||
items: NavItem[];
|
||||
}
|
||||
|
||||
export interface NavItem {
|
||||
id: string;
|
||||
label: string;
|
||||
icon: string;
|
||||
href: string;
|
||||
featureFlag: string;
|
||||
}
|
||||
|
||||
const CATEGORY_ORDER: ModuleCategory[] = [
|
||||
'operations',
|
||||
'generators',
|
||||
'management',
|
||||
'tools',
|
||||
'ai',
|
||||
];
|
||||
|
||||
export function buildNavigation(): NavGroup[] {
|
||||
const modules = getAllModules();
|
||||
const groups: NavGroup[] = [];
|
||||
|
||||
for (const category of CATEGORY_ORDER) {
|
||||
const items = modules
|
||||
.filter((m) => m.category === category)
|
||||
.map((m) => ({
|
||||
id: m.id,
|
||||
label: m.name,
|
||||
icon: m.icon,
|
||||
href: m.route,
|
||||
featureFlag: m.featureFlag,
|
||||
}));
|
||||
|
||||
if (items.length > 0) {
|
||||
groups.push({
|
||||
category,
|
||||
label: MODULE_CATEGORY_LABELS[category],
|
||||
items,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return groups;
|
||||
}
|
||||
Reference in New Issue
Block a user