feat: Display Settings UI + Company Category/Type sync
- Add /admin/display-settings page with Kiosk and Mobile sections - Company category checkbox filter + excluded companies searchable multi-select - New DB tables: company_categories, company_types (migration 064) - Sync COMPANY_CATEGORIES via CompanyCategories entity (id/name/isActive) - Sync COMPANY_TYPES via Companies.companyType picklist - Add to EntityType, ENTITY_DEPENDENCIES, sync-helpers, entity-mapper, entity-sync - New API routes: /api/admin/display-settings (GET/POST), /api/data/company-categories, /api/data/companies-list - Update all 4 routes (kiosk/stats, kiosk/activity, mobile/tickets, mobile/dashboard) to filter by kiosk_settings company_category_ids + excluded_company_ids - Add Display Settings nav link (SlidersHorizontal icon) to Admin menu - Seed kiosk_settings: kiosk_company_category_ids=1, mobile_company_category_ids=1
This commit is contained in:
parent
89dbe6155b
commit
07067bef19
16 changed files with 847 additions and 85 deletions
|
|
@ -26,6 +26,7 @@ import {
|
|||
Sun,
|
||||
BarChart3,
|
||||
DollarSign,
|
||||
SlidersHorizontal,
|
||||
} from 'lucide-react';
|
||||
import {
|
||||
NavigationMenu,
|
||||
|
|
@ -179,6 +180,12 @@ const navigationItems: NavItem[] = [
|
|||
icon: DollarSign,
|
||||
description: 'Sync invoices, payments, deposits, transactions and financial reports'
|
||||
},
|
||||
{
|
||||
title: 'Display Settings',
|
||||
href: '/admin/display-settings',
|
||||
icon: SlidersHorizontal,
|
||||
description: 'Configure company filters for Kiosk and Mobile dashboards'
|
||||
},
|
||||
{
|
||||
title: 'Data Browser',
|
||||
href: '/admin/data-browser',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue