Affected Apps / Packages
Portfolio (apps/portfolio)
Metadata
- Suggested Branch: feat/portfolio-use-template-editor
- Suggested PR Title: [Feature] [Portfolio]: automatically load template selection in editor
Is your feature request related to a problem?
Yes. Clicking "Use this template" on a card in the template catalog redirects the user to the dashboard but does not apply the selected template choice to the active workspace.
Describe the solution you'd like
- In
TemplateCatalog.tsx, update the URL of the "Use this template" button to point to /editor?template=${template.id}.
- In
PortfolioEditorWorkspace.tsx, read the template parameter from the URL on load. If the template parameter is valid, set the active template in the store.
- Strip the query parameter from the browser address bar once the template has been assigned to prevent it from re-applying on reload.
Describe alternatives you've considered
No response
Additional Context
No response
Affected Apps / Packages
Portfolio (apps/portfolio)
Metadata
Is your feature request related to a problem?
Yes. Clicking "Use this template" on a card in the template catalog redirects the user to the dashboard but does not apply the selected template choice to the active workspace.
Describe the solution you'd like
TemplateCatalog.tsx, update the URL of the "Use this template" button to point to/editor?template=${template.id}.PortfolioEditorWorkspace.tsx, read thetemplateparameter from the URL on load. If the template parameter is valid, set the active template in the store.Describe alternatives you've considered
No response
Additional Context
No response