Gate Finance behind a super-admin business module.

Add finance to the modules picker and hide sidebar, home tile, and customer invoice actions when it is disabled.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-11 15:23:56 +03:30
co-authored by Cursor
parent 917b840ee5
commit a50685ec69
6 changed files with 22 additions and 11 deletions
@@ -6,6 +6,7 @@ export const BUSINESS_DASHBOARD_MODULE_IDS = [
'blog',
'warehouse',
'videos',
'finance',
] as const
/** Optional customer-dashboard modules. Always-on: home, profile, addresses, orders, favorites. */
@@ -32,6 +33,7 @@ export const BUSINESS_DASHBOARD_MODULE_LABELS: Record<
blog: 'Blog',
warehouse: 'Warehouse',
videos: 'Videos',
finance: 'Finance',
}
export const CUSTOMER_MODULE_LABELS: Record<CustomerModuleId, string> = {