Activate documents module, reorganize sidebar, add cleaning plans to housekeeping
Sidebar restructure: - Основное: Шахматка, Бронирования, Номера, Категории номеров, Доступность - Модули: Уборка + all active addon modules (including Documents) - Управление: План этажей, Каналы, Модули, Настройки - Разработчикам: API ModulesContext: documents module now active by default (version bump to 3) HousekeepingPage: added «Планы уборки» tab with: - Уборка при выезде: auto task creation, priority (high/normal), inspection toggle - Ежедневная уборка: interval (every 1/2/3/7 days), start from day N of stay - Уборка по запросу: guest-initiated via QR, priority selection - Генеральная уборка: deep clean every N days toggle - Проверка после уборки: inspection task after any cleaning - Автоназначение горничной: assign based on shift schedule Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,7 @@ const DEFAULT_STATUSES: Record<string, ModuleStatus> = {
|
||||
'room-service': 'active',
|
||||
'rental': 'active',
|
||||
'migration': 'active',
|
||||
'documents': 'active',
|
||||
}
|
||||
|
||||
interface ModulesContextValue {
|
||||
@@ -26,7 +27,7 @@ interface ModulesContextValue {
|
||||
|
||||
const ModulesContext = createContext<ModulesContextValue | null>(null)
|
||||
|
||||
const MODULES_VERSION = '2'
|
||||
const MODULES_VERSION = '3'
|
||||
|
||||
export function ModulesProvider({ children }: { children: React.ReactNode }) {
|
||||
const [statuses, setStatuses] = useState<Record<string, ModuleStatus>>(() => {
|
||||
|
||||
Reference in New Issue
Block a user