PromucFlow_constructor/app/client/src
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
..
actions chore: Send orgId and instanceId on page create analytic events (#23489) 2023-05-29 18:05:38 +05:30
api chore: Send default environmentId in header of all api call (#23745) 2023-05-26 15:22:20 +05:30
assets feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
ce fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
components fix: Update connection mode DropDown by Segmented Control (#23730) 2023-05-29 16:45:52 +05:30
constants fix: api url dynamic bindings (#23696) 2023-05-26 15:43:18 +05:30
ee fix: Fixes bug of gsheets not going into edit mode (#23839) 2023-05-30 09:00:52 +05:30
enterprise chore: Format files to match prettier rules and exclude third-party files (#21586) 2023-03-20 19:04:31 +05:30
entities chore: intercom trigger added for gsheets auth failure (#23664) 2023-05-30 17:19:35 +05:30
globalStyles fix: ads-v2 fixes (#23543) 2023-05-29 13:40:41 +08:00
icons feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
mockComponentProps
mockResponses ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
mocks
navigation feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
normalizers 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
pages chore: intercom trigger added for gsheets auth failure (#23664) 2023-05-30 17:19:35 +05:30
polyfills 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
reducers fix: Fixes bug of gsheets not going into edit mode (#23839) 2023-05-30 09:00:52 +05:30
reflow 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
resizable fix: resizable max height (#23143) 2023-05-22 13:29:29 +05:30
sagas fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
selectors feat: peek overlay nested properties + perf improvements (#23414) 2023-05-26 17:12:10 +05:30
templates
theme 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
transformers feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
usagePulse fix: sending usage pulse when the app is private and user is logged in. (#22933) 2023-05-08 14:33:21 +05:30
utils chore: intercom trigger added for gsheets auth failure (#23664) 2023-05-30 17:19:35 +05:30
WidgetQueryGenerators chore: [One-click binding] Mongo db widget query generator (#22226) 2023-04-13 15:48:51 +05:30
widgets fix: Fixed event gets triggered even when option is not changed (#23747) 2023-05-30 10:44:06 +05:30
workers fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
App.css
AppErrorBoundry.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
config.d.ts 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
Globals.d.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
index.css fix: ads-v2 fixes (#23543) 2023-05-29 13:40:41 +08:00
index.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
LandingScreen.tsx 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
react-app-env.d.ts
RouteBuilder.test.ts fix: Encode query params in URLs (#22594) 2023-05-03 09:00:27 +05:30
RouteBuilder.ts fix: Encode query params in URLs (#22594) 2023-05-03 09:00:27 +05:30
RouteChangeListener.tsx chore: Add new navigation scenarios for route change event (#21682) 2023-03-30 11:03:29 +05:30
RouteParamsMiddleware.ts feat: deprecate duplicate button (#23461) 2023-05-24 10:34:52 +05:30
serviceWorker.js fix: don’t cache icons by the service worker (#23558) 2023-05-24 12:50:26 +05:30
store.ts 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
wdyr.ts