feat: open properties panel and convert tab when navigating from jobs page #197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Clickup id: 86aabdjht
@krokicki
This PR ensures that the Properties panel is automatically open to the "Convert" tab when navigating to a path in the file browser from the jobs page.
A new method
setLayoutWithPropertiesOpen
is added toPreferencesContext
, allowing components to programmatically update the layout to open the properties drawer (with or without the sidebar) and persist this state.Layout constants (such as panel configurations and default layouts) are centralized in
src/constants/layoutConstants.ts
for consistency and maintainability between theuseLayoutPrefs
hook andPreferencesContext
.The file path link in the jobs table now uses a custom click handler to update the layout using
setLayoutWithPropertiesOpen
.When navigating from the jobs table to a file's properties via the file path link, the "Convert" tab in the properties drawer is automatically activated. This is achieved by passing state through the router and updating the drawer's tab selection logic.