PromucFlow_constructor/app/client/src/layoutSystems/common
Jacques Ikot 9cd1be5014
fix: add isPreviewMode check for showing bb onboarding (#33956)
## Description
Building blocks onboarding banner was showing to users while in preview
mode. This PR checks for isPreviewMode and sets the building blocks
onboarding to hide when in preview mode.


Fixes #33954

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9364855811>
> Commit: e7c0ee51484adbe1e73d3941dc7e99469ae7fdc3
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9364855811&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->






## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Onboarding component now respects the preview mode setting, ensuring
it does not render when in preview mode.

- **Tests**
- Added test cases to verify that the onboarding component does not
render in preview mode for both "Non-AirGap Edition" and "AirGap
Edition".
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-04 11:42:49 +01:00
..
canvasArenas chore: RMVF based changes for DnD, Modals, and Space distribution. (#31980) 2024-04-05 11:16:07 +05:30
canvasViewer chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
draggable feat: Refactor isCurrentWidgetFocused to isWidgetFocused (#32990) 2024-05-06 13:59:42 +05:30
dropTarget fix: add isPreviewMode check for showing bb onboarding (#33956) 2024-06-04 11:42:49 +01:00
DSLConversions chore: Update DSL for Anvil (#27966) 2023-10-19 20:50:17 +05:30
mainContainerResizer feat: Anvil Widget Name Component (#33062) 2024-05-03 15:50:37 +05:30
modalOverlay fix: Closing modal in Split view, exits code mode (#32119) 2024-03-27 14:38:28 +00:00
resizer feat: Refactor isCurrentWidgetFocused to isWidgetFocused (#32990) 2024-05-06 13:59:42 +05:30
snipeable chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
utils feat: implement dropping building blocks on canvas (#31857) 2024-04-16 09:41:09 +01:00
widgetComponent chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
widgetName feat: Refactor isCurrentWidgetFocused to isWidgetFocused (#32990) 2024-05-06 13:59:42 +05:30
selectors.ts feat: enable DnD for entire modal widget(including header and footer). (#33580) 2024-05-21 14:54:07 +05:30
types.ts chore: register offset values as per parent drop target in Anvil (#28757) 2023-11-15 18:02:12 +05:30
useLayoutSystemFeatures.ts chore: clean up space distribution feature in Anvil (#31468) 2024-03-06 12:59:44 +05:30