PromucFlow_constructor/app/client/src/ce
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 feat: deprecate duplicate button (#23461) 2023-05-24 10:34:52 +05:30
api feat: Adds option to fork an app within the app editor (#23158) 2023-05-30 14:54:38 +05:30
components/editorComponents/GPT chore: Switch environment CE BE code split (#23755) 2023-05-26 21:50:59 +05:30
configs chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
constants chore: intercom trigger added for gsheets auth failure (#23664) 2023-05-30 17:19:35 +05:30
entities/DataTree 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
mocks refactor: Invite modal component to support single & multi-select dropdown options (#17073) 2022-09-29 09:53:25 +00:00
pages feat: in-app ramps for "invite user to an application" and "custom roles" (#23588) 2023-05-30 10:59:01 +05:30
reducers feat: deprecate duplicate button (#23461) 2023-05-24 10:34:52 +05:30
sagas fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
selectors feat: deprecate duplicate button (#23461) 2023-05-24 10:34:52 +05:30
utils chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
workers fix: Get default value from entityTree instead of configTree (#22682) 2023-04-27 17:41:40 +01:00
AppRouter.tsx fix: country flag emojis not working in chromium browsers on windows for airgapped instances. (#23091) 2023-05-09 10:44:27 +05:30