Skip to content

fix: configure mermaid via provideMarkdown to resolve ngx-markdown warning#1777

Merged
lyubov-voloshko merged 2 commits into
mainfrom
ai-ddl-improvements
May 15, 2026
Merged

fix: configure mermaid via provideMarkdown to resolve ngx-markdown warning#1777
lyubov-voloshko merged 2 commits into
mainfrom
ai-ddl-improvements

Conversation

@lyubov-voloshko
Copy link
Copy Markdown
Collaborator

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.

…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>
Copilot AI review requested due to automatic review settings May 15, 2026 09:36
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@lyubov-voloshko has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 34 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a14818be-051f-4e01-8063-9dc8d7af8a4d

📥 Commits

Reviewing files that changed from the base of the PR and between 2c6f263 and d993072.

📒 Files selected for processing (2)
  • frontend/src/app/components/edit-database-schema/edit-database-schema.component.ts
  • frontend/src/main.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ai-ddl-improvements

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Moves Mermaid markdown configuration from a component lifecycle hook into the app-level ngx-markdown setup.

Changes:

  • Adds mermaidOptions to provideMarkdown in main.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.

Comment thread frontend/src/main.ts
Comment on lines +130 to +133
useValue: {
startOnLoad: false,
theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default',
},
@lyubov-voloshko lyubov-voloshko merged commit c702b0f into main May 15, 2026
12 of 15 checks passed
@lyubov-voloshko lyubov-voloshko deleted the ai-ddl-improvements branch May 15, 2026 09:39
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