Skip to content

Conversation

filipvnencak
Copy link
Collaborator

Description of changes

  • Created useProjectDefaultTab hook that saves/retrieves the last visited tab in localStorage
  • Tracks user's tab preferences automatically when they navigate between project tabs
  • Remembers the last tab (overview, browser, tasks, etc.) and uses it as default for new project navigation
  • Fallback to 'overview' if no preference is stored

Technical details

Converted window.location.pathname.split() to React Router hooks in projectMenu.jsx:

  • Added useLocation hook import
  • Replaced window.location.pathname with location.pathname

Additional context

Screen.Recording.2025-09-22.at.10.15.22.mov

@filipvnencak filipvnencak self-assigned this Sep 22, 2025
@filipvnencak filipvnencak added type: enhancement Improvement of existing functionality or minor addition sponsored This is directly sponsored by a client or community member labels Sep 22, 2025
@filipvnencak filipvnencak linked an issue Sep 22, 2025 that may be closed by this pull request
@Innders
Copy link
Member

Innders commented Sep 23, 2025

@martastain could we please get this branch pushed to experimental so we can all play around with it and decide if it works or not. Thanks.

@Innders Innders changed the title YN-0059: Default Project Tab Default Project Tab - YN-0059 Sep 23, 2025
@martastain
Copy link
Member

@martastain could we please get this branch pushed to experimental so we can all play around with it and decide if it works or not. Thanks.

done

@martastain martastain self-requested a review September 23, 2025 07:48
Copy link
Member

@martastain martastain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For standard pages this works perfect, but it does not handle i-frame based addon pages such as node graph or planner

@filipvnencak
Copy link
Collaborator Author

For standard pages this works perfect, but it does not handle i-frame based addon pages such as node graph or planner

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sponsored This is directly sponsored by a client or community member type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

YN-0059: Default Project Tab
3 participants