Skip to content

chore: auth sessions entitlement#43314

Merged
ignaciodob merged 1 commit intomasterfrom
ignaciodobronich/billing-2030-entitlement-for-auth-session-settings
Mar 3, 2026
Merged

chore: auth sessions entitlement#43314
ignaciodob merged 1 commit intomasterfrom
ignaciodobronich/billing-2030-entitlement-for-auth-session-settings

Conversation

@ignaciodob
Copy link
Contributor

@ignaciodob ignaciodob commented Mar 2, 2026

This PR adds the entitlement check for configuring auth user sessions.

Testing

  • Head to /project/_/auth/sessions with an org on the Free Plan
  • Assert that the upgrade prompt is shown and that u:
image
  • Head to /project/_/auth/sessions with an org on the Pro Plan or above
  • Assert that you're able to configure the User Sessions section
image

@ignaciodob ignaciodob self-assigned this Mar 2, 2026
@vercel
Copy link

vercel bot commented Mar 2, 2026

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Building Building Preview, Comment Mar 2, 2026 10:19pm
studio-staging Building Building Preview, Comment Mar 2, 2026 10:19pm
7 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Mar 2, 2026 10:19pm
studio Ignored Ignored Mar 2, 2026 10:19pm
design-system Skipped Skipped Mar 2, 2026 10:19pm
docs Skipped Skipped Open in v0 Mar 2, 2026 10:19pm
learn Skipped Skipped Mar 2, 2026 10:19pm
ui-library Skipped Skipped Mar 2, 2026 10:19pm
zone-www-dot-com Skipped Skipped Open in v0 Mar 2, 2026 10:19pm

Request Review

@supabase
Copy link

supabase bot commented Mar 2, 2026

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Cache: Disabled due to Reviews > Disable Cache setting

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f5667ac and 45ff3b6.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Auth/SessionsAuthSettingsForm/SessionsAuthSettingsForm.tsx

📝 Walkthrough

Summary by CodeRabbit

  • Refactor
    • Improved internal handling of session authentication settings and feature access logic.

Walkthrough

The SessionsAuthSettingsForm component has been updated to use an entitlements-based gating mechanism instead of organization plan checks. The component now imports and uses the useCheckEntitlements hook to derive user session entitlements, replacing the previous organization-based plan verification. Loading states have been consolidated to reflect entitlements loading alongside existing loading states. The upgrade prompt condition has been adjusted to use entitlements data rather than organization plan information. The useSelectedOrganizationQuery dependency has been removed.


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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

🎭 Playwright Test Results

passed  146 passed
flaky  1 flaky
skipped  4 skipped

Details

stats  151 tests across 20 suites
duration  10 minutes, 50 seconds
commit  45ff3b6

Flaky tests

Features › database.spec.ts › Database › Schema Visualizer › actions works as expected

Skipped tests

Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@ignaciodob ignaciodob marked this pull request as ready for review March 2, 2026 23:38
@ignaciodob ignaciodob requested a review from a team as a code owner March 2, 2026 23:38
Copy link
Contributor

@awaseem awaseem left a comment

Choose a reason for hiding this comment

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

LGTM

@ignaciodob ignaciodob merged commit 2306898 into master Mar 3, 2026
37 checks passed
@ignaciodob ignaciodob deleted the ignaciodobronich/billing-2030-entitlement-for-auth-session-settings branch March 3, 2026 18:53
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Braintrust eval report

Evals in progress... ⌛

pull bot pushed a commit to WhitePrime/supabase that referenced this pull request Mar 3, 2026
This PR adds the entitlement check for configuring auth user sessions.

### Testing
- Head to `/project/_/auth/sessions` with an org on the Free Plan 
- Assert that the upgrade prompt is shown and that u:
<img width="1203" height="449" alt="image"
src="https://github.com/user-attachments/assets/44aa1b64-e06b-491e-8d30-587cfe1ff65e"
/>


- Head to `/project/_/auth/sessions` with an org on the Pro Plan or
above
- Assert that you're able to configure the User Sessions section
<img width="1203" height="381" alt="image"
src="https://github.com/user-attachments/assets/b566dc49-6367-41cc-98fe-25d5e7bdaf87"
/>
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