final polish phase 1

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-27 21:27:37 +00:00
parent 627938aa95
commit 5f9a4b8dca
25 changed files with 3286 additions and 1397 deletions

View File

@@ -1,6 +1,7 @@
/**
* Page Context - Shares current page info with header
* Allows pages to set title, parent module, badge for display in AppHeader
* Dashboard mode: enables "All Sites" option in site selector
*/
import React, { createContext, useContext, useState, ReactNode } from 'react';
@@ -11,6 +12,15 @@ interface PageInfo {
icon: ReactNode;
color: 'blue' | 'green' | 'purple' | 'orange' | 'red' | 'indigo' | 'yellow' | 'pink' | 'emerald' | 'cyan' | 'amber' | 'teal';
};
/** Completely hide site/sector selectors in app header */
hideSelectors?: boolean;
hideSectorSelector?: boolean; // Hide sector selector in app header (for dashboard)
/** Dashboard mode: show "All Sites" option in site selector */
showAllSitesOption?: boolean;
/** Current site filter for dashboard mode ('all' or site id) */
siteFilter?: 'all' | number;
/** Callback when site filter changes in dashboard mode */
onSiteFilterChange?: (value: 'all' | number) => void;
}
interface PageContextType {