Skip to content

Build VS Code extension for subscription template live preview #621

Description

@Smartdevs17

Context

Developers building email and notification templates must deploy changes and trigger an email to preview the rendered output, severely slowing iteration.

Current Limitation/Problem

No local preview for templates. Developers use trial-and-error deployment to review template rendering.

Expected Outcome

VS Code extension (subtrackr-template-preview) with live template preview side panel: parse template, render with mock data, show AST tree view, and validate syntax on save.

Acceptance Criteria

  • VS Code extension published to marketplace: subtrackr-template-preview
  • Side panel: live preview of rendered template with mock data (auto-refresh on save)
  • Variable injection: right-click variable -> edit mock value in context menu
  • AST tree view: show parsed template structure in VS Code tree view
  • Validation: syntax errors highlighted inline with red squiggly underline
  • Partial rendering: clicking a partial reference renders it standalone
  • Mock data: load from .mock.json file in project root, or use default fixtures
  • Supported formats: MJML, Handlebars, and custom AST-based templates
  • Edge case: template with syntax errors renders partial preview up to error location

Technical Scope

  • packages/vscode-subtrackr/ - VS Code extension directory
  • packages/vscode-subtrackr/src/panels/ - preview webview panel
  • packages/vscode-subtrackr/src/tree/ - AST tree data provider
  • packages/vscode-subtrackr/src/validation/ - linter integration
  • packages/vscode-subtrackr/package.json - activation events, commands, contributes
  • docs/VSCode_EXTENSION.md - usage documentation

Metadata

Metadata

Assignees

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveIssues in the Drips Wave programhighHigh complexity issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions