PromucFlow_constructor/app/client/src/ee
Diljit 4cb6ff03f9
chore: Prefetch module apis in service worker (#34003)
## Description
This PR has the following changes
- Modify the prefetch api cache strategy to handle multiple prefetch
requests.
- Convert the service worker files from js to ts
- Code splitting of CE and EE for service worker utils to handle EE
specific changes
- Jest test cases for the updated logic


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## 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/9511154598>
> Commit: 785197e27873e71ed457f785a73d4ea57f379213
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9511154598&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->





















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


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

- **New Features**
- Enhanced API request handling with new utility functions and caching
strategies for service worker operations.
- Updated service worker configuration to TypeScript for improved type
safety and maintainability.
- Added type definitions for `node-fetch` to support new service worker
functionalities.

- **Refactor**
- Consolidated `view` and `edit` endpoint URL construction in
`ConsolidatedPageLoadApi` for better code maintainability.

- **Chores**
- Updated dependencies in `package.json` for better development
experience and compatibility.
- Added tests for new service worker utility functions to ensure
reliability and correctness.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-14 16:30:23 +05:30
..
actions feat: workflow analytics code split and housekeeping (#31425) 2024-03-04 15:33:05 +05:30
api fix: Workspace name editor input going away on hovering other menu items of workspace (#33179) 2024-05-06 17:36:12 +05:30
components fix: code split for run history resize issue in workflows editor (#34049) 2024-06-06 21:21:24 +05:30
configs fix: set eval version for workflows artefact (#34197) 2024-06-12 13:07:07 +05:30
constants fix: Workspace name editor input going away on hovering other menu items of workspace (#33179) 2024-05-06 17:36:12 +05:30
entities chore: Import debugger fixes (#31080) 2024-02-14 12:00:18 +05:30
hooks revert: multi env switcher view mode changes (#32360) 2024-04-03 15:50:58 +05:30
mocks
navigation fix: [IDE] Page switch and State switch have deep links to entity to avoid interim load state (#32980) 2024-04-29 10:31:27 +05:30
pages chore: reconnect modal refactor for package import (#31674) 2024-03-12 17:24:19 +05:30
plugins/Linting chore: add new custom linter for module inputs (#33940) 2024-06-05 21:09:12 +05:30
reducers fix: Workspace name editor input going away on hovering other menu items of workspace (#33179) 2024-05-06 17:36:12 +05:30
sagas chore: constrain the diff on only affected JS actions (#33435) 2024-05-27 11:45:10 +05:30
selectors chore: Refactoring code to show plugin based icons for module instances on EE (#31713) 2024-03-13 11:11:36 +05:30
types feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
utils chore: Prefetch module apis in service worker (#34003) 2024-06-14 16:30:23 +05:30
workers chore: Add override context during runtime params eval (#33809) 2024-05-31 12:59:44 +05:30
AppRouter.tsx
RouteBuilder.ts chore: route builder refactor (#27905) 2023-10-12 11:01:22 +05:30
RouteParamsMiddleware.ts chore: Refactor URLAssembly to throw error on missing pageId for app route resolution only (#28527) 2023-11-02 15:55:24 +05:30