PromucFlow_constructor/app/client/cypress/support/Pages
sneha122 b7c104c66f
fix: ds discard popup issue fixes (#19114)
This PR includes following changes:
- With latest datasource autosave improvements, we do not save the
datasource immediately but save it on explicit click of save button, so
in case user has not saved any changes and tries to leave the page, we
have added a popup to inform users that they have unsaved changes and
whether they would like to save them or not.
- The issue was in case of postgres and authenticated API datasource,
this popup was getting seen even when the user has not made any changes
in the datasource configuration. This PR solves that issue.
- The unsaved changes popup needs to be shown only when user has made
any new changes in the datasource form

TL;DR
- We have used redux form's isDirty method to check if user has made any
new updates to the form or not. This isDirty compares initial value of
datasource form with current form value and if current form value is
different it shows the unsaved changes popup
- The issue occurred because in case of postgres and authenticated API
datasource, we initialise 1 default pair of host address and port
(postgres), and default pairs of headers and query parameters
(Authenticated API). These initial default changes made the form dirty
and so user used to see the popup even when they have not explicitly
made any changes.
- This PR fixes the issue by setting initial form value with these
defaults so they do not make the form dirty.

Fixes #18962 , #18998 

https://user-images.githubusercontent.com/30018882/208931098-b570e3c4-10bc-4b76-bd54-531ccf869436.mov

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2022-12-30 15:53:24 +05:30
..
AppSettings feat: in-app embed settings (#19023) 2022-12-26 10:41:33 +05:30
AggregateHelper.ts feat: in-app embed settings (#19023) 2022-12-26 10:41:33 +05:30
ApiPage.ts test: Automated tests for Bug18376 + few flaky fixes (#18769) 2022-12-09 10:36:52 +05:30
DataSources.ts fix: ds discard popup issue fixes (#19114) 2022-12-30 15:53:24 +05:30
DebuggerHelper.ts fix: Add collapse icon for bottom bar (#16939) 2022-10-20 17:38:48 +05:30
DeployModeHelper.ts test: Script updates for flaky tests to unblock CI (#17264) 2022-10-03 15:25:11 +05:30
EntityExplorer.ts test: Automated tests for Bug18376 + few flaky fixes (#18769) 2022-12-09 10:36:52 +05:30
FakerHelper.ts test: Script updates for flaky tests (#16631) 2022-09-12 09:48:44 +05:30
GitSync.ts test: Automated tests for Bug18376 + few flaky fixes (#18769) 2022-12-09 10:36:52 +05:30
HomePage.ts fix: hide the fork template button when there are no workspaces to fork to (#19226) 2022-12-29 17:01:10 +05:30
InviteModal.ts feat: in-app embed settings (#19023) 2022-12-26 10:41:33 +05:30
JSEditor.ts test: Script updates for flaky tests to unblock CI (#17469) 2022-10-13 12:54:09 +05:30
LibraryInstaller.ts feat: Import javascript libraries (#17895) 2022-12-21 22:44:47 +05:30
PropertyPane.ts chore: Property pane search input focus (#18858) 2022-12-15 16:25:52 +05:30
Table.ts test: Script updates for flaky tests (#16355) 2022-09-02 06:35:45 +05:30
TableV2.ts feat: Autoassigns column datatype in table widget (#16701) 2022-09-29 10:56:08 +05:30