PromucFlow_constructor/app/client/src/ce/sagas
Rishabh Rathod f49cf0a219
fix: remove redundant eval trigger (#36433)
## Description

We removed the fetchPublishedPage action from the page switch flow in
App Viewer as the consolidated API now loads the migratedDSL.
- PageSaga code was refactored to make sure the `postFetchPublishedPage`
logic is common for both the init and switch page to ease maintenance.

Fixes #36237 

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11132731783>
> Commit: 026ef4e704ce878be75446d470eef1af842aff39
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11132731783&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Tue, 01 Oct 2024 21:32:17 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


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

## Summary by CodeRabbit

- **New Features**
- Enhanced handling of page fetching with the addition of new action
types for managing published page resources.
- Introduced new functions to streamline canvas layout updates and
post-fetch processes.

- **Bug Fixes**
- Resolved issues related to fetching published page resources and
improved error handling.

- **Refactor**
- Simplified the logic in the `PageSagas` for better organization and
reduced code duplication.
- Improved the control flow in the `AppViewer` component for fetching
page resources.

- **Tests**
- Updated tests to reflect changes in action payload structures and new
action types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-02 13:27:44 +05:30
..
__tests__ fix: remove redundant eval trigger (#36433) 2024-10-02 13:27:44 +05:30
ActionExecution chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
analyticsSaga.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ApiCallerSaga.test.ts chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
ApiCallerSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ApplicationSagas.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
EnvironmentSagas.ts chore: code split for EE PR 2169 (#26669) 2023-09-11 14:09:41 +07:00
GitExtendedSagas.ts fix: minor changes for ee cd requirements (#30802) 2024-02-01 15:03:48 +05:30
helpers.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
index.tsx chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
InferAffectedJSObjects.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
JSActionSagas.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
NavigationSagas.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
PageSagas.tsx fix: remove redundant eval trigger (#36433) 2024-10-02 13:27:44 +05:30
SuperUserSagas.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
tenantSagas.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
userSagas.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WorkspaceSagas.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00