PromucFlow_constructor/app/client
Hetu Nandu e99cc39e47
chore: Block Selections when Canvas is in Side by Side mode (#31587)
## Description

This pull request aims to enhance the user experience within the
application by modifying the canvas behavior when it is displayed in
"Side by Side" mode alongside Queries or JavaScript sections. The key
change is the disabling of direct selections on the canvas, allowing
interactions with canvas elements only through cmd + click or by
clicking on the widget's name. This adjustment is intended to facilitate
a view-only mode for the canvas during Queries or JS editing, thereby
improving layout and user interaction.

Additionally, the PR introduces enhancements to the application's
testing framework, focusing on improving test reliability in scenarios
involving UI interaction and state changes. Notable updates include:

- Improved error tooltip handling in CurrencyInput_spec.js.
- Ensured page state saving before verifying element presence in
Listv2_BasicChildWidgetInteraction_spec.js.
- Replaced cy.wait("@updateLayout") with cy.assertPageSave() and
introduced a delay in Listv2_spec.js to accommodate functionality
changes.
- Implemented visibility checks in
TableV2_Button_Icon_validation_spec.js to prevent timing-related test
failures.
These technical updates collectively aim to bolster the application's
testing framework, enhancing the reliability and accuracy of automated
tests, especially in UI interaction and state change scenarios.


#### PR fixes following issue(s)
Fixes #30864

## Automation

/ok-to-test tags="@tag.Widget"
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]  
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8259916944>
> Commit: `15e1cf937a9d15adaea68e16a55006d993a07cbf`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8259916944&attempt=1"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

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





















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

- **New Features**
	- Added new constants for widget selection and focus management.
- Introduced a new event type for tracking widget selections in code
mode.
- **Tests**
- Enhanced test assertions and interactions for better reliability and
error handling in various widgets.
- **Refactor**
- Improved widget selection logic and URL handling for a more intuitive
user experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-13 11:53:49 +05:30
..
.husky
.yarn
cypress chore: Block Selections when Canvas is in Side by Side mode (#31587) 2024-03-13 11:53:49 +05:30
docker/templates chore: Remove unused services (#30292) 2024-01-23 05:43:16 +05:30
generators chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
packages fix: focused state not working on storybook's complex form story due to z-index (#31540) 2024-03-06 11:54:20 +03:00
perf
public chore: [Map chart widget] Replace fusion charts with Echarts as chart provider (#31482) 2024-03-08 13:38:55 +05:30
src chore: Block Selections when Canvas is in Side by Side mode (#31587) 2024-03-13 11:53:49 +05:30
test chore: Remove unused services (#30292) 2024-01-23 05:43:16 +05:30
typings
.babelrc
.dockerignore
.editorconfig
.eslintrc.base.json fix: add testing library eslint rules (#31028) 2024-02-12 18:59:10 +03:00
.eslintrc.js fix: add testing library eslint rules (#31028) 2024-02-12 18:59:10 +03:00
.gitignore
.lintstagedrc.json chore: Switch to gitleaks from git-secrets (#29103) 2023-11-28 06:32:20 +05:30
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml
build.sh chore: include client build source map (#30664) 2024-02-26 15:30:36 +05:30
craco.build.config.js
craco.common.config.js fix: Client development build performance (#31390) 2024-03-04 10:52:06 +03:00
craco.dev.config.js fix: Client development build performance (#31390) 2024-03-04 10:52:06 +03:00
cypress_ci_custom.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress_ci_hosted.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress_ci.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress-add-tags.js test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
download-assets.js
jest.config.js chore: Show commit SHA instead of SNAPSHOT version (#30850) 2024-02-02 09:52:34 +05:30
package.json chore: workflow ds icon update and beta card updates (#31681) 2024-03-12 14:00:42 +05:30
README.md
README.old.md
start-https.sh chore: Remove unused services (#30292) 2024-01-23 05:43:16 +05:30
tailwind.config.js
tsconfig.json fix: Client development build performance (#31390) 2024-03-04 10:52:06 +03:00
tsconfig.path.json
vercel.json
yarn.lock chore: workflow ds icon update and beta card updates (#31681) 2024-03-12 14:00:42 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide