fix: configure mermaid via provideMarkdown to resolve ngx-markdown warning#1777
Conversation
…rning Replace manual window.mermaid setup in ngAfterViewInit with proper mermaidOptions config in provideMarkdown at the app level, which is what ngx-markdown requires when using the mermaid attribute. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Moves Mermaid markdown configuration from a component lifecycle hook into the app-level ngx-markdown setup.
Changes:
- Adds
mermaidOptionstoprovideMarkdowninmain.ts. - Removes manual Mermaid initialization from
EditDatabaseSchemaComponent.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
frontend/src/main.ts |
Adds app-level Mermaid options for ngx-markdown. |
frontend/src/app/components/edit-database-schema/edit-database-schema.component.ts |
Removes component-level Mermaid setup and AfterViewInit usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| useValue: { | ||
| startOnLoad: false, | ||
| theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default', | ||
| }, |
Replace manual window.mermaid setup in ngAfterViewInit with proper mermaidOptions config in provideMarkdown at the app level, which is what ngx-markdown requires when using the mermaid attribute.