PromucFlow_constructor/app/client/src/reducers/uiReducers
Hetu Nandu fc34360b2a
fix: Context Switching fixes for Copy and Delete (#29841)
## Description
Fixes issues related to Segmented Lists around Copy / Delete
interactions

- It introduces a method to remove any focus history for a url. This is
added whenever we delete or move an item to another page
- It manages redirects after deleting a JS / Query / Datasource


#### PR fixes following issue(s)
Fixes #29697
Fixes #29694
Fixes #29700
Fixes #29699

#### Type of change

- Bug fix (non-breaking change which fixes an issue)

## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] 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:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


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

- **New Features**
- Implemented new redirect logic after deleting JavaScript collections,
actions, and datasources to enhance user experience.
- Added custom routing for JavaScript collection creation and
management.

- **Enhancements**
- Updated focus history handling to improve navigation and entity
tracking within the app.

- **Bug Fixes**
- Fixed entity identification logic in test paths to ensure accurate
testing scenarios.

- **Refactor**
- Centralized datasource grouping logic for better maintainability and
performance.
- Optimized widget deletion process to handle multiple widgets
efficiently.

- **Documentation**
	- No user-facing documentation updates in this release.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-27 14:17:35 +05:30
..
actionSelectorReducer.ts
activeFieldEditorReducer.ts chore: Refactor debugger analytics for active fields (#28036) 2023-10-16 09:22:11 +05:30
analyticsReducer.ts
appCollabReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
appSettingsPaneReducer.ts
appThemingReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
appViewReducer.tsx
authReducer.ts
autoHeightReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
canvasSelectionReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
crudInfoModalReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
datasourceNameReducer.ts
datasourcePaneReducer.ts chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
debuggerReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
dragResizeReducer.ts feat: add layouts and widgets for sections and zones. (#29713) 2023-12-26 09:16:58 -05:00
errorReducer.tsx chore: show stack trace with the failing action type for cypress (#25037) 2023-07-10 11:23:45 +05:30
focusHistoryReducer.ts fix: Context Switching fixes for Copy and Delete (#29841) 2023-12-27 14:17:35 +05:30
gitSyncReducer.ts feat: autocommit UI integration (#29755) 2023-12-22 16:36:54 +05:30
globalSearchReducer.ts chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
guidedTourReducer.ts
helpReducer.ts
importedCollectionsReducer.ts
importReducer.ts
jsObjectNameReducer.tsx
jsPaneReducer.ts
layoutConversionReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
libraryReducer.ts chore: remove xml parser v3 as a default library (#28012) 2023-10-20 11:08:47 +05:30
mainCanvasReducer.ts
modalActionReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
onBoardingReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
oneClickBindingReducer.ts feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
pageCanvasStructureReducer.ts
pageWidgetsReducer.test.ts
pageWidgetsReducer.ts feat: Shared Package for DSL based operations (#23894) 2023-06-26 12:25:55 +05:30
propertyPaneReducer.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
providerReducer.ts
reflowReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
releasesReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
tableFilterPaneReducer.tsx
templateReducer.ts feat: adds see more to canvas starter templates (#29777) 2023-12-27 10:29:33 +05:30
themeReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
tourReducer.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
usersReducer.ts feat: make features call a blocking API call for page load (#27974) 2023-10-11 23:19:19 +05:30
websocketReducer.ts