[Command Menu] Refactor layout customization conditional availability [Warning] (#19974)

closes
https://discord.com/channels/1130383047699738754/1494312529286004837
This commit is contained in:
nitin
2026-04-24 15:48:02 +05:30
committed by GitHub
parent 3deb467845
commit 097432d3a2
20 changed files with 374 additions and 61 deletions
@@ -5,7 +5,8 @@ import { type ObjectRecord } from './ObjectRecord';
export type CommandMenuContextApi = {
pageType: ContextStorePageType;
isInSidePanel: boolean;
isPageInEditMode: boolean;
isDashboardPageLayoutInEditMode: boolean;
isLayoutCustomizationModeEnabled: boolean;
favoriteRecordIds: string[];
isSelectAll: boolean;
hasAnySoftDeleteFilterOnView: boolean;
@@ -6,7 +6,8 @@ const buildContext = (
): CommandMenuContextApi => ({
pageType: ContextStorePageType.Index,
isInSidePanel: false,
isPageInEditMode: false,
isDashboardPageLayoutInEditMode: false,
isLayoutCustomizationModeEnabled: false,
favoriteRecordIds: [],
isSelectAll: false,
hasAnySoftDeleteFilterOnView: false,
@@ -6,7 +6,8 @@ const buildContext = (
): CommandMenuContextApi => ({
pageType: ContextStorePageType.Index,
isInSidePanel: false,
isPageInEditMode: false,
isDashboardPageLayoutInEditMode: false,
isLayoutCustomizationModeEnabled: false,
favoriteRecordIds: [],
isSelectAll: false,
hasAnySoftDeleteFilterOnView: false,