PromucFlow_constructor/app/client
Hetu Nandu 9d4aae4438
fix: sidebar context switching (#28818)
## Description

The App sidebar introduces a new Focus Entity in Context Switching. In
this, whenever a user clicks the sidebar navigation item, we will ensure
the last visited state is restored for that state. We do this by storing
and restoring the last url on the App Sidebar state before navigating
away. Internal focus entities (Datasource, Query etc) will then restore
their last states in a cascading fashion.

I took this opportunity to also refactor the URL storing of App Page
Level focus, which also relies of storing and restoring urls. This
reduces the tech debt introduced earlier and makes the functionality
more configurable for future use cases.


#### PR fixes following issue(s)
Fixes #28873

#### Media

https://github.com/appsmithorg/appsmith/assets/12022471/47c38835-37c7-4c8c-bad3-b5830702d74b

#### Type of change


- Chore (housekeeping or task changes that don't impact user perception)

## Testing

#### How Has This Been Tested?

- [ ] Manual
- [ ] Jest (Updated existing tests) 
- [ ] Cypress (Made sure all existing tests pass)

#### 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
2023-11-20 13:28:08 +05:30
..
.husky fix:lint staged (#27992) 2023-10-12 20:35:54 +03:00
.yarn chore:update node version to v18 (#26358) 2023-08-15 18:56:04 +05:30
cypress test: Cypress | Flaky fix /Apps/MongoDBShoppingCart_spec.ts for CI runs (#28947) 2023-11-20 11:31:36 +05:30
docker/templates chore: added new relic OTLP exporter (#28480) 2023-11-06 15:05:17 +05:30
generators chore: BaseWidget Restructuring (#26562) 2023-09-11 21:25:11 +05:30
packages docs: WDS dimension tokens (#28879) 2023-11-16 17:06:58 +03:00
perf
public feat: Add IFrame widget for Custom EChart and support for custom functions in property pane (#28513) 2023-11-08 19:25:44 +05:30
src fix: sidebar context switching (#28818) 2023-11-20 13:28:08 +05:30
test chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
typings feat: enable CSS Modules fro WDS (#26162) 2023-09-15 10:17:06 +03:00
.babelrc
.dockerignore
.editorconfig
.eslintrc.base.json chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
.eslintrc.js chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
.gitignore chore: get browser logs from failed cypress tests (#27724) 2023-10-05 14:42:30 +05:30
.lintstagedrc.json fix:lint staged (#27992) 2023-10-12 20:35:54 +03:00
.nvmrc chore:update node version to v18 (#26358) 2023-08-15 18:56:04 +05:30
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml chore:update node version to v18 (#26358) 2023-08-15 18:56:04 +05:30
build.sh fix: Revert "fix: Updates tab title from publish to showcase (#27867)" (#27893) 2023-10-09 14:06:45 +05:30
craco.build.config.js
craco.common.config.js chore: remove postcss-conditionals package (#27984) 2023-10-12 14:04:30 +03:00
craco.dev.config.js
cypress_ci_custom.config.ts test: Cypress | Skip MsSQL_Basic_Spec.ts spec in CI (#28074) 2023-10-13 20:35:05 +05:30
cypress_ci_hosted.config.ts test: Map widget automation (#27901) 2023-10-11 13:04:06 +05:30
cypress_ci.config.ts test: Cypress | CI Stabilize (#27622) 2023-09-27 22:54:27 +05:30
cypress.config.ts test: Cypress | CI Stabilize (#27622) 2023-09-27 22:54:27 +05:30
download-assets.js
jest.config.js chore: added new relic OTLP exporter (#28480) 2023-11-06 15:05:17 +05:30
package.json chore: migrate AWS SDK for JavaScript v2 APIs to v3 (#28631) 2023-11-14 13:47:11 +05:30
README.md
README.old.md
start-https.sh
tailwind.config.js
tsconfig.json
tsconfig.path.json
vercel.json
yarn.lock chore: migrate AWS SDK for JavaScript v2 APIs to v3 (#28631) 2023-11-14 13:47:11 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide