Skip to content

Fixing Usability: Retain project selection when navigating to settings,search etc#313

Open
dibyanshu-pal-kushwaha wants to merge 1 commit intoStatTag:masterfrom
dibyanshu-pal-kushwaha:Retain-project-selection
Open

Fixing Usability: Retain project selection when navigating to settings,search etc#313
dibyanshu-pal-kushwaha wants to merge 1 commit intoStatTag:masterfrom
dibyanshu-pal-kushwaha:Retain-project-selection

Conversation

@dibyanshu-pal-kushwaha
Copy link

@dibyanshu-pal-kushwaha dibyanshu-pal-kushwaha commented Feb 4, 2026

Description: This PR addresses by preserving the currently selected project when navigating away from the current selected project to Settings, Search, or About etc and returning.

Fixes : #287

Changes :

  1. Created contexts/Projects.js : Created a new React Context to manage shared project state.
  2. Updated App.js : Moved selectedProjectId to App, making it the single source of truth and Context Provider.
  3. Updated app/routes.js : Updated app/Routes.js to wrap ProjectPage with the context consumer and pass global state and setter as props.
  4. Modified Project.page (ie : handleSelectProjectListItem & handleLoadProjectListResponse)

Screenshots:
Selected a project :
Opened and selected any project:

us1

Clicked on the Search option :

us2

Finally comeback to HomePage and the selected Project remained as it was:

us3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usability: Retain project selection when navigating to settings/search/etc.

1 participant