PromucFlow_constructor/app/client/src/selectors
Hetu Nandu 721767d742
feat: URL Navigation for Widgets (#20202)
## Description

Widget selection is driven by URL changes. This would fix browser
navigation for users as they can use browser back/forward buttons to
travel across older contexts on Appsmith.

> Fixing browser URL navigation for widgets

Fixes #19571


Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video


## Type of change

> Please delete options that are not relevant.

- New feature (non-breaking change which adds functionality)


## How Has This Been Tested?

- Manual
- Jest
- Cypress

### Test Plan
> Add Testsmith [test
cases](https://github.com/appsmithorg/TestSmith/issues/2171) links that
relate to this PR

### Issues raised during DP testing
- [X] When a selected widget is below viewport and user refreshes the
page, then the widget property pane is open but the page does not
navigate to the selected widget
https://loom.com/share/09f1eda2f02d474981a0d48e4a6419ec

- [ ] Drop 2 widgets one at a time > Delete both the widgets > Now click
on back button of the browser > Observe the url it shows the widget id
in the URL but the canvas remains empty
https://loom.com/share/53cae28a5d224e67b783c8ccf53745f5
Dev Response: This issue is valid but not a major inconvenience. We will
try to track it and see if it needed to be addressed. Many other web
tools do not handle such cases


- [X] Canvas scrolls down when all widgets are selected.
https://loom.com/share/c8a68dadcdb040779abd3a73bde2b06c

- [X] Widget is not getting highlighted when added from the API editor
page. Please refer to the attached
video:-https://jiju8jbmwa.vmaker.com/record/IkwiAqFgafK9dVmu



## 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:
- [ ] Test plan has been approved by relevant developers
- [x] Test plan has been peer reviewed by QA
- [ ] 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
- [ ] Added Test Plan Approved label after reveiwing all Cypress test

---------

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-02-21 19:08:16 +05:30
..
actionSelectors.tsx feat: Import javascript libraries (#17895) 2022-12-21 22:44:47 +05:30
analyticsSelectors.tsx chore: send segment anonymous id (#19122) 2023-01-06 19:39:38 +05:30
apiPaneSelectors.ts chore: Context switching - Api right pane tabs (#17473) 2022-11-25 09:17:00 +05:30
appCollabSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
applicationSelectors.tsx feat: in-app embed settings (#19023) 2022-12-26 10:41:33 +05:30
appSettingsPaneSelectors.tsx fix: Updating page permissions in view mode to solve error message for updating the page (#18946) 2022-12-14 20:32:13 +05:30
appThemingSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
appViewSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
authSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
autoHeightSelectors.ts feat: Automatic height updates for widgets based on contents (Auto Height) (#18341) 2022-11-23 15:18:23 +05:30
canvasSelectors.ts chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
crudInfoModalSelectors.ts chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
dataTreeSelectors.ts feat: List V2 (#15839) 2023-02-14 17:07:31 +01:00
debuggerSelectors.test.ts feat: Error handling phase 1 (#20629) 2023-02-18 18:25:46 +05:30
debuggerSelectors.tsx feat: Error handling phase 1 (#20629) 2023-02-18 18:25:46 +05:30
editorContextSelectors.ts chore: Revert "feat: move the widget creation CTA off the Entity explorer (#… (#20335) 2023-02-03 14:47:01 +06:00
editorSelectors.tsx feat: List V2 (#15839) 2023-02-14 17:07:31 +01:00
entitiesSelector.ts chore: fix js object flaky tests (#20106) 2023-02-01 20:15:25 +05:30
errorSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
explorerSelector.ts feat: New settings pane (#16361) 2022-12-02 11:19:51 +05:30
focusHistorySelectors.ts feat: Maintain Focus and Context Phase 1 (#16317) 2022-10-17 20:46:38 +05:30
formSelectors.ts chore: update imports for code split (#19085) 2022-12-22 12:04:28 +05:30
gitSyncSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
globalSearchSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
helpSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
jsPaneSelectors.ts chore: Fixing broken client build (#17634) 2022-10-18 10:53:18 +05:30
lintingSelectors.ts chore: linting performance improvement (#18101) 2022-11-18 15:53:24 +05:30
mainCanvasSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
multiPaneSelectors.ts feat: Multi Pane IDE: Phase 1 (#19261) 2023-01-09 10:54:41 +05:30
navigationSelectors.ts feat: URL Navigation for Widgets (#20202) 2023-02-21 19:08:16 +05:30
onboardingSelectors.tsx feat: Handle permission driven views for auto-saving pages and action… (#16950) 2022-12-01 12:00:50 +05:30
pageListSelectors.tsx feat: New settings pane (#16361) 2022-12-02 11:19:51 +05:30
propertyPaneSelectors.tsx chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
queryPaneSelectors.ts chore: Fixing broken client build (#17634) 2022-10-18 10:53:18 +05:30
settingsSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
tableFilterSelectors.tsx chore: Refactor getSelectedWidget selector (#16647) 2022-09-15 05:44:11 +00:00
templatesSelectors.tsx feat: fork templates inside an existing app (#17184) 2022-09-30 19:11:04 +05:30
themeSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
tourSelectors.tsx chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
ui.tsx feat: [Context Switching] Maintain datasource collapse state (#17616) 2022-12-05 11:28:17 +05:30
usersSelectors.tsx chore: Remove Maps API Key env variable for client (#19486) 2023-02-07 14:53:15 +05:30
websocketSelectors.ts chore: code split sagas and reducer's index file (#16261) 2022-08-24 17:46:32 +05:30
widgetEnhancementSelectors.ts fix: Remove auto-height from list widget's children (#18755) 2022-12-18 01:33:35 +05:30
widgetReflowSelectors.tsx fix: Reflow while resizing does not reflow as expected (#17243) 2022-10-06 12:43:18 +05:30
widgetSelectors.test.tsx fix: auto height limits container select (#18546) 2022-11-30 13:02:36 +05:30
widgetSelectors.ts fix: auto height limits container select (#18546) 2022-11-30 13:02:36 +05:30