Skip to content

fix: add missing providers to Storybook preview config#1650

Merged
gugu merged 1 commit into
mainfrom
fix/storybook-missing-providers
Mar 6, 2026
Merged

fix: add missing providers to Storybook preview config#1650
gugu merged 1 commit into
mainfrom
fix/storybook-missing-providers

Conversation

@gugu

@gugu gugu commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Angulartics2, Markdown, and CodeEditor providers were missing from the Storybook preview, causing ~17 stories to crash at render time.

Angulartics2, Markdown, and CodeEditor providers were missing from the
Storybook preview, causing ~17 stories to crash at render time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 6, 2026 08:41
@gugu gugu enabled auto-merge (squash) March 6, 2026 08:41
@gugu gugu merged commit e4328ca into main Mar 6, 2026
15 of 17 checks passed
@gugu gugu deleted the fix/storybook-missing-providers branch March 6, 2026 08:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds missing Angular providers to the global Storybook preview application config so stories that depend on analytics, markdown rendering, and the Monaco-based code editor no longer crash during render.

Changes:

  • Import and register Angulartics2Module.forRoot() providers in Storybook preview.
  • Register ngx-markdown providers via provideMarkdown().
  • Register @ngstack/code-editor providers via provideCodeEditor() (with Monaco base URL).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants