Skip to content

[FEATURE]: Auto-assign selected template in editor #173

Description

@Gautam25Raj

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

  1. In TemplateCatalog.tsx, update the URL of the "Use this template" button to point to /editor?template=${template.id}.
  2. 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.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions