PromucFlow_constructor/app/client
Rimil Dey 4094d49f06
fix: Sanitise toast error msgs (#22544)
## Description

Currently, the error messages in the toasts contain the names of the
errors (like Reference error, uncaught promise rejection error, etc.,).
These are unhelpful to users (especially if they are not programmers)
and do not convey any actionable feedback to the user who is trying to
fix and debug the app.

You can see it in action
[here](https://www.loom.com/share/e946f779dd1147f38eec1588a84821b2).

This PR aims to remove the names of these errors from the toast messages
so that the action to fix them can be highlighted. We are retaining the
names of the errors for the console, so that programmers using the
console, can get a full context of the error.

Fixes #22318

Media

Previous behavior -
https://www.loom.com/share/e946f779dd1147f38eec1588a84821b2

Current behavior -
https://www.loom.com/share/83fd8d08ed114f8b830acadb9894e4b1


## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?

- Manual
- Jest
- Cypress

### Test Plan
- Reference error check
- Uncaught promise rejection check

### Issues raised during DP testing
- none

## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer-reviewed by QA
- [x] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [x] Added Test Plan Approved label after reviewing all Cypress test
2023-05-31 12:14:07 +05:30
..
.husky chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
.yarn chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
cypress fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
docker chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
generators chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
packages chore: Improve a11y of loading state of button (#23812) 2023-05-30 15:37:49 +03:00
perf
public chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
src fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
test feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
typings fix: display name validation (client) (#22938) 2023-05-04 18:29:57 +05:30
webpack feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
.babelrc feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.eslintrc.js chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.gitignore chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.lintstagedrc chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
.nvmrc
.prettierignore ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
.prettierrc chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
.sentryclirc
.yarnrc.yml chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
build.sh ci: move yarn prebuild command to build.sh (#23227) 2023-05-11 18:35:32 +05:30
craco.build.config.js fix: don’t cache icons by the service worker (#23558) 2023-05-24 12:50:26 +05:30
craco.common.config.js feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
craco.dev.config.js chore : disable react overlay for warnings/error in dev mode (#23620) 2023-05-23 14:54:41 +05:30
cypress_ci-toremove.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
cypress_ci.config.ts test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
cypress.config.ts chore : disable hot reloading of cypress tests to reduce memory overload (#23621) 2023-05-24 15:48:34 +05:30
Dockerfile
download-assets.js feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
jest.config.js chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
package.json chore: test performance (#23799) 2023-05-29 15:28:51 +03:00
README.md
README.old.md
start-https.sh chore: Fail when backend has a trailing slash (#23437) 2023-05-17 13:56:23 +05:30
tailwind.config.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
tsconfig.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
tsconfig.path.json
vercel.json
yarn.lock chore: Improve a11y of loading state of button (#23812) 2023-05-30 15:37:49 +03:00

Appsmith Client

This project was bootstrapped with Create React App.

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