Skip to content

Add docs links#1762

Merged
lyubov-voloshko merged 5 commits intomainfrom
add-docs-links
May 8, 2026
Merged

Add docs links#1762
lyubov-voloshko merged 5 commits intomainfrom
add-docs-links

Conversation

@lyubov-voloshko
Copy link
Copy Markdown
Collaborator

@lyubov-voloshko lyubov-voloshko commented May 8, 2026

Summary by CodeRabbit

  • New Features

    • Added Supabase database provider support with automatic host detection.
  • Improvements

    • Refactored documentation links system to dynamically reference provider documentation URLs, reducing code duplication.
    • Enhanced widget type list with consistent alphabetical sorting for predictable display.

Copilot AI review requested due to automatic review settings May 8, 2026 12:57
@lyubov-voloshko lyubov-voloshko enabled auto-merge May 8, 2026 12:58
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bdd9aa53-ad6d-493c-b1b7-27b291f320e2

📥 Commits

Reviewing files that changed from the base of the PR and between a878e4f and 1cacf80.

📒 Files selected for processing (6)
  • frontend/src/app/components/connect-db/connect-db.component.ts
  • frontend/src/app/components/connect-db/db-connection-confirm-dialog/db-connection-confirm-dialog.component.ts
  • frontend/src/app/components/connect-db/db-connection-ip-access-dialog/db-connection-ip-access-dialog.component.html
  • frontend/src/app/components/connect-db/db-connection-ip-access-dialog/db-connection-ip-access-dialog.component.ts
  • frontend/src/app/components/dashboard/db-table-view/db-table-widgets/db-table-widgets.component.ts
  • frontend/src/app/components/dashboard/db-table-view/db-table-widgets/widget/widget.component.ts

📝 Walkthrough

Walkthrough

This PR adds Supabase as a supported database provider. Changes include host detection for Supabase endpoints, metadata additions to connection dialogs, refactored documentation link handling, and minor UI improvements to widget ordering and documentation references.

Changes

Supabase Database Provider Integration

Layer / File(s) Summary
Provider Detection
frontend/src/app/components/connect-db/connect-db.component.ts
getProvider() checks if host ends with .supabase.com to detect Supabase provider.
IP Access Dialog Refactoring
frontend/src/app/components/connect-db/db-connection-ip-access-dialog/db-connection-ip-access-dialog.component.ts, db-connection-ip-access-dialog.component.html
providerDocsLink mapping introduced to consolidate provider documentation URLs; HTML template replaces hardcoded provider-specific "Setup guide" links with single dynamic anchor bound to providerDocsLink[data.provider].
Confirm Dialog Metadata
frontend/src/app/components/connect-db/db-connection-confirm-dialog/db-connection-confirm-dialog.component.ts
Supabase added to providerNames and providerDocsLink metadata objects for dialog display.
Documentation and UI Polish
frontend/src/app/components/dashboard/db-table-view/db-table-widgets/widget/widget.component.ts, db-table-widgets.component.ts
Binary documentation URL added to widget docsUrls; widget types sorted alphabetically during initialization.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

A rabbit hops through databases new,
Supabase clouds painted sky-blue,
With docs mapped and hosts carefully read,
The widgets all sorted in order ahead. 🐰✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-docs-links

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.

@lyubov-voloshko lyubov-voloshko merged commit 398561e into main May 8, 2026
17 of 19 checks passed
@lyubov-voloshko lyubov-voloshko deleted the add-docs-links branch May 8, 2026 13:01
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

Adds/extends UI documentation links in the frontend so users can jump to provider/widget setup guides, and makes widget type selection ordering deterministic.

Changes:

  • Added a docs URL for the Binary UI widget.
  • Sorted available widget types alphabetically in the widgets settings UI.
  • Centralized “Setup guide” links in the IP access dialog and added Supabase provider support (name + docs link + provider detection).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/src/app/components/dashboard/db-table-view/db-table-widgets/widget/widget.component.ts Adds Binary widget docs URL entry.
frontend/src/app/components/dashboard/db-table-view/db-table-widgets/db-table-widgets.component.ts Sorts widgetTypes for consistent ordering.
frontend/src/app/components/connect-db/db-connection-ip-access-dialog/db-connection-ip-access-dialog.component.ts Introduces a provider→docs link map for the IP access dialog.
frontend/src/app/components/connect-db/db-connection-ip-access-dialog/db-connection-ip-access-dialog.component.html Replaces multiple provider-specific anchors with a single dynamic docs link.
frontend/src/app/components/connect-db/db-connection-confirm-dialog/db-connection-confirm-dialog.component.ts Adds Supabase provider name + docs link in the connection error dialog.
frontend/src/app/components/connect-db/connect-db.component.ts Detects Supabase provider from host suffix.

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

Comment on lines 28 to +36
public provider: string = null;
public providerDocsLink = {
amazon: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_aws_mysql',
azure: 'https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-manage-firewall-portal',
google: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_google_cloud',
mongoatlas: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_mongo_atlas',
digitalocean: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_digitalocean_postgresql',
supabase: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_supabase',
};
</a>
<a *ngIf="data.provider === 'digitalocean'" mat-button target="_blank"
href="https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_digitalocean_postgresql">
<a *ngIf="providerDocsLink[data.provider]" mat-button target="_blank"
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