Skip to content

feat: refactor settings page into tabbed layout with dedicated integr… - #365

Merged
yash-pouranik merged 3 commits into
mainfrom
feature/settings-integrations-page
Jul 25, 2026
Merged

feat: refactor settings page into tabbed layout with dedicated integr…#365
yash-pouranik merged 3 commits into
mainfrom
feature/settings-integrations-page

Conversation

@yash-pouranik

@yash-pouranik yash-pouranik commented Jul 25, 2026

Copy link
Copy Markdown
Member

UPDTED PER PROJECT SETTINGS PAGE

Summary by CodeRabbit

  • New Features
    • Added a dedicated Integrations & Services section in project settings.
    • Organized integration options for databases, authentication, email, templates, and storage.
    • Added configuration for GitHub and Google authentication providers, including callback URL copying.
    • Added Resend email settings, including API key and default sender address.
    • Added navigation from social authentication setup directly to project integrations.
    • Added tab-based navigation between general project settings and integrations.

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ur-backend-web-dashboard Ready Ready Preview, Comment Jul 25, 2026 10:29am
urbackend Ready Ready Preview, Comment Jul 25, 2026 10:29am

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@yash-pouranik, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 23 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 89ce37f1-7f65-4f89-b3bb-cd6d9643e679

📥 Commits

Reviewing files that changed from the base of the PR and between b654695 and d0581aa.

📒 Files selected for processing (10)
  • AGENTS.md
  • apps/web-dashboard/src/components/Settings/AllowedDomainsForm.jsx
  • apps/web-dashboard/src/components/Settings/DatabaseConfigForm.jsx
  • apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx
  • apps/web-dashboard/src/components/Settings/MailTemplatesForm.jsx
  • apps/web-dashboard/src/components/Settings/StorageConfigForm.jsx
  • apps/web-dashboard/src/components/Settings/formPrimitives.jsx
  • apps/web-dashboard/src/config.js
  • apps/web-dashboard/src/pages/ProjectSettings.jsx
  • apps/web-dashboard/src/utils/styles.js
📝 Walkthrough

Walkthrough

Project settings now use URL-controlled General and Integrations & Services tabs. A dedicated integrations component contains database, authentication, mail, and storage configuration. Social authentication adds direct navigation to the integrations tab.

Changes

Project settings integrations

Layer / File(s) Summary
Integrations configuration component
apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx
Adds database, OAuth provider, mail/template, and storage sections with provider persistence, callback URL copying, and role-aware controls.
Query-driven settings tabs
apps/web-dashboard/src/pages/ProjectSettings.jsx
Synchronizes the active settings tab with the tab query parameter and conditionally renders General or Integrations & Services content.
Social authentication navigation
apps/web-dashboard/src/components/Auth/SocialAuthConfig.jsx
Adds an Integrations button linking to the project’s integrations settings tab while retaining the existing Open Settings action.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: nitin-kumar-yadav1307

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: refactoring settings into a tabbed layout with a dedicated integrations page.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/settings-integrations-page

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🧹 Nitpick comments (3)
apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx (1)

10-32: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

inputStyle and FormField are copied verbatim from ProjectSettings.jsx (lines 16-39).

Extract them into a shared module (e.g. components/Settings/formPrimitives.jsx) and import in both files to avoid divergence.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx` around
lines 10 - 32, Extract the duplicated inputStyle constant and FormField
component into a shared Settings module such as formPrimitives.jsx, then remove
their local definitions from IntegrationsSettings.jsx and ProjectSettings.jsx
and import the shared symbols in both files, preserving their existing behavior
and styling.
apps/web-dashboard/src/pages/ProjectSettings.jsx (2)

89-92: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

setSearchParams({ tab }) discards any other query params and pushes a history entry per tab click.

Preserve existing params and replace the entry so the back button leaves the page rather than cycling tabs.

♻️ Proposed refactor
     const handleTabChange = (tab) => {
         setActiveTab(tab);
-        setSearchParams({ tab });
+        setSearchParams((prev) => {
+            const next = new URLSearchParams(prev);
+            next.set('tab', tab);
+            return next;
+        }, { replace: true });
     };
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/web-dashboard/src/pages/ProjectSettings.jsx` around lines 89 - 92,
Update handleTabChange to retain all existing search parameters when changing
the tab, while replacing the current history entry instead of pushing a new one.
Use the existing search-parameter state/API to merge the new tab value and
enable replace behavior.

352-370: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Form components are plumbed through props instead of imported. DatabaseConfigForm, StorageConfigForm, and MailTemplatesForm remain declared inside ProjectSettings.jsx and are handed to IntegrationsSettings as props, coupling the new component to its parent.

  • apps/web-dashboard/src/pages/ProjectSettings.jsx#L352-L370: move these three form components into their own modules under components/Settings/ and drop the DatabaseConfigForm/StorageConfigForm/MailTemplatesForm props.
  • apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx#L60-L76: import the three form components directly instead of destructuring them from props.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/web-dashboard/src/pages/ProjectSettings.jsx` around lines 352 - 370,
Decouple the integration forms from ProjectSettings: in
apps/web-dashboard/src/pages/ProjectSettings.jsx lines 352-370, move
DatabaseConfigForm, StorageConfigForm, and MailTemplatesForm into separate
modules under components/Settings/ and remove their props from
IntegrationsSettings; in
apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx lines 60-76,
import those form components directly and stop destructuring them from props.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx`:
- Around line 257-264: Add accessible aria-label attributes to the icon-only
copy buttons in the integrations settings UI, including the GitHub button near
the copyToClipboard call and the corresponding Google copy button. Use clear
provider-specific labels that describe the button’s copy action, while leaving
the existing click behavior and icons unchanged.
- Around line 79-92: Update the social OAuth callback URL flow in
IntegrationsSettings, including githubCallbackUrl and googleCallbackUrl, to use
the backend-generated, read-only callback values returned by the API rather than
assembling them in the dashboard. Ensure the backend generates these URLs from
the public API base (VITE_PUBLIC_API_URL), and have the dashboard only display
the returned values instead of relying on API_URL or client-side concatenation.
- Around line 136-141: Update copyToClipboard to guard clipboard availability
and handle writeText failures before updating copied state or showing the
success toast. Only setCopiedUrl and display “Callback URL copied!” after a
successful write; catch rejected writes and avoid unhandled errors while
preserving the existing timeout behavior.

---

Nitpick comments:
In `@apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx`:
- Around line 10-32: Extract the duplicated inputStyle constant and FormField
component into a shared Settings module such as formPrimitives.jsx, then remove
their local definitions from IntegrationsSettings.jsx and ProjectSettings.jsx
and import the shared symbols in both files, preserving their existing behavior
and styling.

In `@apps/web-dashboard/src/pages/ProjectSettings.jsx`:
- Around line 89-92: Update handleTabChange to retain all existing search
parameters when changing the tab, while replacing the current history entry
instead of pushing a new one. Use the existing search-parameter state/API to
merge the new tab value and enable replace behavior.
- Around line 352-370: Decouple the integration forms from ProjectSettings: in
apps/web-dashboard/src/pages/ProjectSettings.jsx lines 352-370, move
DatabaseConfigForm, StorageConfigForm, and MailTemplatesForm into separate
modules under components/Settings/ and remove their props from
IntegrationsSettings; in
apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx lines 60-76,
import those form components directly and stop destructuring them from props.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 97154c83-5fd3-4dbc-9e92-42a9764430a2

📥 Commits

Reviewing files that changed from the base of the PR and between e506280 and b654695.

📒 Files selected for processing (3)
  • apps/web-dashboard/src/components/Auth/SocialAuthConfig.jsx
  • apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx
  • apps/web-dashboard/src/pages/ProjectSettings.jsx

Comment thread apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx Outdated
Comment thread apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx Outdated
Comment thread apps/web-dashboard/src/components/Settings/IntegrationsSettings.jsx
@yash-pouranik
yash-pouranik temporarily deployed to feature/settings-integrations-page - urBackend-frankfrut PR #365 July 25, 2026 10:28 — with Render Destroyed
@yash-pouranik
yash-pouranik merged commit 530edbb into main Jul 25, 2026
11 checks passed
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.

1 participant