Skip to content

Shift old policies UI into storage since its only being used there - #47497

Merged
joshenlim merged 4 commits into
masterfrom
joshen/fe-3683-clean-up-old-auth-policies-ui-components
Jul 1, 2026
Merged

joshenlim merged 4 commits into
masterfrom
joshen/fe-3683-clean-up-old-auth-policies-ui-components

Conversation

@joshenlim

@joshenlim joshenlim commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Context

This is one chonky boy of a PR, but it's just re-organizing files and folders to clean things up

Storage Policies have been using the old Database policy UI (the one with the Dialog), so it makes most sense to shift those files under the Storage folder instead of keeping them under Database, so it's clearer which files are being consumed by whom, and easier to clean things up as well

As part of this clean up, also tore out all the RLS generation logic from the Table Editor which are no longer used as they were affected by the change in files.

Deprecated + deleted any unused code too

Summary by CodeRabbit

  • New Features
    • Added a centralized set of reusable RLS policy templates in the policy editor, including general, Realtime, and queue access templates.
    • Updated table creation so it no longer auto-generates additional RLS policy drafts.
  • Bug Fixes
    • Refined policy table header badge layout/spacing for clearer status and lock indicators.
    • Simplified policy preview/save behavior to reflect only meaningful changes, improving applied SQL clarity.
    • Streamlined table-creation success messaging by removing conditional failure details.
  • Tests
    • Updated and removed policy/table-creation test coverage to match the new behavior.

@joshenlim
joshenlim requested a review from a team as a code owner July 1, 2026 11:09
@vercel

vercel Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview, Comment Jul 1, 2026 3:19pm
studio-staging Ready Ready Preview, Comment Jul 1, 2026 3:19pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 1, 2026 3:19pm
design-system Skipped Skipped Jul 1, 2026 3:19pm
docs Skipped Skipped Jul 1, 2026 3:19pm
ui-library Skipped Skipped Jul 1, 2026 3:19pm
zone-www-dot-com Skipped Skipped Jul 1, 2026 3:19pm

Request Review

@supabase

supabase Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1dcf27df-d4e3-4ed0-934d-d18c48a31ddd

📥 Commits

Reviewing files that changed from the base of the PR and between db244b8 and a8dc67e.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx
💤 Files with no reviewable changes (1)
  • apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx

📝 Walkthrough

Walkthrough

Policy template factories were centralized into shared constants, Storage policy components and helpers were rehomed under local module paths and named exports, and table creation no longer passes or records generated-policy data.

Changes

Shared Policy Templates and Database Policies UI

Layer / File(s) Summary
Shared template contract and generators
apps/studio/components/interfaces/Database/Policies/Policies.constants.ts
Adds PolicyTemplate plus general, realtime, and queue policy template factories, and removes the old POLICY_MODAL_VIEWS export from this module.
Rewire template consumers
apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/TemplatePreview.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/TemplatesList.tsx, apps/studio/pages/project/[ref]/database/policies.tsx
Updates imports to use the shared Policies.constants module for policy template data.
Policy row UI tweaks
apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx, apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx
Refactors badge layout and styling in the policy row header.
Estimated code review effort: 3 (Moderate) ~30 minutes

Storage Policies module localization and utils

Layer / File(s) Summary
StoragePolicies types, constants, and SQL/payload utils
apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModal.constants.ts, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.types.ts, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts
Adds local modal view constants, a PolicyForReview interface, and SQL/payload helpers for creating and updating policies.
Convert Storage policy components to named exports
apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/index.tsx
Converts these components from default exports to named exports.
Rewire Storage import paths to local modules
apps/studio/components/interfaces/Storage/Storage.types.ts, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/index.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx, apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
Redirects Storage policy imports to local module paths and updates the surrounding wiring.
Estimated code review effort: 3 (Moderate) ~25 minutes

Remove generated-policy handling from table creation

Layer / File(s) Summary
createTable simplification
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
Removes generated-policy parameters and tracking from createTable, and changes the return value to { table }.
saveTable flow and callers drop generated policies
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx, apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx, apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.createTable.test.ts
Removes generated-policy handling from save flow types, spans, toast logic, call sites, and tests.
Estimated code review effort: 3 (Moderate) ~20 minutes

Possibly related PRs

  • supabase/supabase#43498: Both PRs remove generated-policy plumbing from the table creation path and delete related RLS-management UI.

Suggested reviewers: awaseem

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required template sections like YES/NO, change type, current behavior, new behavior, and additional context. Rewrite the PR description using the repository template and fill in each required section, including current/new behavior and any linked issues.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: moving the old policies UI into Storage.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch joshen/fe-3683-clean-up-old-auth-policies-ui-components

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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx (1)

542-546: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Update the createTable test expectations with the new contract.

The provided downstream test context still expects has_generated_policies: false in table_created and a { failedPolicies: [], table } return, but Line 542 removes that telemetry field and Line 682 returns only { table }. Update the test to match this PR’s intended API shape.

Suggested test expectation update
 expect(mockTrack).toHaveBeenCalledWith('table_created', {
-  has_generated_policies: false,
   method: 'table_editor',
   schema_name: 'public',
   table_name: 'test_table',
 })

 expect(result).toStrictEqual({
-  failedPolicies: [],
   table: mockTableResult,
 })

Also applies to: 681-682

🤖 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/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx`
around lines 542 - 546, The createTable contract changed in
SidePanelEditor.utils, so downstream tests must stop expecting
has_generated_policies on the table_created telemetry and the { failedPolicies:
[], table } return shape. Update the test expectations to align with the current
SidePanelEditor utilities behavior by asserting the table_created event only
includes method, schema_name, and table_name, and that the createTable path
returns just { table }.
🧹 Nitpick comments (5)
apps/studio/components/interfaces/Database/Policies/Policies.constants.ts (3)

325-341: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Queue policy template has an empty statement, so its SQL preview will be blank.

policy-queues-1 sets statement: ``.trim(), i.e. an empty string. TemplatePreview renders statement directly into the read-only code editor as "Policy SQL template", so selecting this template shows no SQL at all, unlike every other template in this file. If that's intentional (user is meant to write their own SQL from scratch), it's worth a one-line comment explaining why; otherwise this looks like a gap that should show a representative create policy ... snippet like the other entries.

🤖 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/studio/components/interfaces/Database/Policies/Policies.constants.ts`
around lines 325 - 341, The queue policy template `policy-queues-1` has an empty
`statement`, so `TemplatePreview` will render a blank SQL preview. Update
`getQueuePolicyTemplates` in `Policies.constants.ts` to provide a representative
policy SQL snippet for `statement` like the other policy templates, or add an
explicit comment if the blank preview is intentional. Make sure the fix is
applied on the `Allow access to queue` template object so the preview shows
useful SQL.

191-323: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider dropping the as PolicyTemplate[] cast.

The array literal is cast to PolicyTemplate[] at line 321 instead of letting TypeScript infer/verify it against the interface directly (as getGeneralPolicyTemplates and getQueuePolicyTemplates do). The cast suppresses structural checking, so a future missing/mistyped field here (e.g. command) would silently pass instead of producing a compile error.

♻️ Proposed fix
-export const getRealtimePolicyTemplates = (): PolicyTemplate[] => {
-  const results = [
+export const getRealtimePolicyTemplates = (): PolicyTemplate[] => {
+  const results: PolicyTemplate[] = [
     {
       id: 'policy-broadcast-1',
       ...
-  ] as PolicyTemplate[]
+  ]
   return results
 }
🤖 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/studio/components/interfaces/Database/Policies/Policies.constants.ts`
around lines 191 - 323, The getRealtimePolicyTemplates array is being force-cast
to PolicyTemplate[], which bypasses TypeScript’s structural checks. Remove the
cast and let the array be validated directly like the other template helpers, so
each object in getRealtimePolicyTemplates is checked against PolicyTemplate and
any missing or mistyped fields are caught at compile time.

275-321: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

Stray trailing semicolons produce double ; in generated SQL previews.

For policy-presences-2 and policy-presences-4, the statement templates end with );\n ;.trim(), e.g. with check ( realtime.messages.extension = 'presence' );\n ;. Since .trim() only strips leading/trailing whitespace of the whole string (not the interior newline), the resulting statement text still contains a stray semicolon on its own line when rendered in the SQL preview (TemplatePreview`). Cosmetic, but worth cleaning up in this canonical module now that duplicates are gone.

🧹 Proposed fix
       statement: `
 create policy "Allow broadcasting presences on all channels for authenticated users only"
 ON realtime.messages for insert
 TO authenticated
-with check ( realtime.messages.extension = 'presence' );
-  ;`.trim(),
+with check ( realtime.messages.extension = 'presence' );`.trim(),

Apply the analogous fix to policy-presences-4.

🤖 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/studio/components/interfaces/Database/Policies/Policies.constants.ts`
around lines 275 - 321, The SQL preview strings for the presence policies still
include an extra standalone semicolon because the statement templates end with
`);\n  ;`. Update the `policy-presences-4` entry in `Policies.constants` so its
`statement` text matches the cleaned pattern used elsewhere and does not render
a double semicolon in `TemplatePreview`; keep the `statement`, `definition`, and
`check` fields aligned with the corrected SQL shape.
apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx (1)

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

Remove debug console.log.

Fires on every render of every policy table row; should not ship.

🧹 Proposed fix
-  console.log({ status, exposedSchemas })
-
   return (
🤖 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/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx`
at line 95, Remove the debug console output from the policy row render path: the
`console.log({ status, exposedSchemas })` inside `PolicyTableRow` should be
deleted so it doesn’t fire on every render of each row. Locate the log in
`PolicyTableRow` and remove it without changing the component’s render logic or
props handling.
apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts (1)

17-158: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add unit coverage for the extracted policy helpers.

This module now owns the create/update diffing, whitespace normalization, default-role handling, and SQL preview generation, but there is no companion test in this change set. A small table-driven StoragePolicies.utils.test.ts around whitespace-only edits, empty roles, and rename previews would make the refactor much safer. As per coding guidelines, pure .utils.ts logic should be unit tested with vitest.

🤖 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/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts`
around lines 17 - 158, Add a vitest unit test file for the policy helper
functions in StoragePolicies.utils to cover the newly extracted create/update
logic. Focus on createSQLPolicy, createSQLStatementForCreatePolicy,
createSQLStatementForUpdatePolicy, createPayloadForCreatePolicy, and
createPayloadForUpdatePolicy with table-driven cases for whitespace-only
normalization, no-op diffs, empty roles defaulting to public, and rename/update
SQL previews. Use the existing function names to locate the helpers and assert
the returned statement/payload shapes for create and update paths.

Source: Coding guidelines

🤖 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/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts`:
- Around line 57-58: The update preview builder in StoragePolicies.utils.ts is
using the edited policy name for the ALTER POLICY target, which makes rename
previews self-referential and breaks rename-plus-edit cases. Update the logic in
createSQLStatementForUpdatePolicy (and the related preview path around
createUpdatePolicySQLStatement) to keep the original policy name for the ALTER
POLICY clause, while using the renamed value only in the RENAME TO portion.
Ensure the code that assembles the SQL distinguishes original vs edited name
before generating the final statement.

---

Outside diff comments:
In
`@apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx`:
- Around line 542-546: The createTable contract changed in
SidePanelEditor.utils, so downstream tests must stop expecting
has_generated_policies on the table_created telemetry and the { failedPolicies:
[], table } return shape. Update the test expectations to align with the current
SidePanelEditor utilities behavior by asserting the table_created event only
includes method, schema_name, and table_name, and that the createTable path
returns just { table }.

---

Nitpick comments:
In `@apps/studio/components/interfaces/Database/Policies/Policies.constants.ts`:
- Around line 325-341: The queue policy template `policy-queues-1` has an empty
`statement`, so `TemplatePreview` will render a blank SQL preview. Update
`getQueuePolicyTemplates` in `Policies.constants.ts` to provide a representative
policy SQL snippet for `statement` like the other policy templates, or add an
explicit comment if the blank preview is intentional. Make sure the fix is
applied on the `Allow access to queue` template object so the preview shows
useful SQL.
- Around line 191-323: The getRealtimePolicyTemplates array is being force-cast
to PolicyTemplate[], which bypasses TypeScript’s structural checks. Remove the
cast and let the array be validated directly like the other template helpers, so
each object in getRealtimePolicyTemplates is checked against PolicyTemplate and
any missing or mistyped fields are caught at compile time.
- Around line 275-321: The SQL preview strings for the presence policies still
include an extra standalone semicolon because the statement templates end with
`);\n  ;`. Update the `policy-presences-4` entry in `Policies.constants` so its
`statement` text matches the cleaned pattern used elsewhere and does not render
a double semicolon in `TemplatePreview`; keep the `statement`, `definition`, and
`check` fields aligned with the corrected SQL shape.

In
`@apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx`:
- Line 95: Remove the debug console output from the policy row render path: the
`console.log({ status, exposedSchemas })` inside `PolicyTableRow` should be
deleted so it doesn’t fire on every render of each row. Locate the log in
`PolicyTableRow` and remove it without changing the component’s render logic or
props handling.

In
`@apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts`:
- Around line 17-158: Add a vitest unit test file for the policy helper
functions in StoragePolicies.utils to cover the newly extracted create/update
logic. Focus on createSQLPolicy, createSQLStatementForCreatePolicy,
createSQLStatementForUpdatePolicy, createPayloadForCreatePolicy, and
createPayloadForUpdatePolicy with table-driven cases for whitespace-only
normalization, no-op diffs, empty roles defaulting to public, and rename/update
SQL previews. Use the existing function names to locate the helpers and assert
the returned statement/payload shapes for create and update paths.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b6357177-dc22-4cd9-a9e8-af45eb7699c7

📥 Commits

Reviewing files that changed from the base of the PR and between acbb19a and dc9bfcf.

📒 Files selected for processing (34)
  • apps/studio/components/interfaces/Database/Policies/Policies.constants.ts
  • apps/studio/components/interfaces/Database/Policies/Policies.utils.test.ts
  • apps/studio/components/interfaces/Database/Policies/Policies.utils.ts
  • apps/studio/components/interfaces/Database/Policies/PolicyEditorModal/PolicyEditorModal.constants.ts
  • apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx
  • apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
  • apps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsx
  • apps/studio/components/interfaces/Database/Policies/PolicyTemplates/PolicyTemplates.constants.ts
  • apps/studio/components/interfaces/Storage/Storage.types.ts
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyAllowedOperation.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyDefinition.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyEditorFooter.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyName.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyRoles.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/index.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModal.constants.ts
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/index.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/TemplatePreview.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/TemplatesList.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/PolicyTemplates/index.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.types.ts
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.utils.ts
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx
  • apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
  • apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
  • apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
  • apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
  • apps/studio/pages/project/[ref]/database/policies.tsx
💤 Files with no reviewable changes (5)
  • apps/studio/components/interfaces/Database/Policies/PolicyTemplates/PolicyTemplates.constants.ts
  • apps/studio/components/interfaces/Database/Policies/PolicyEditorModal/PolicyEditorModal.constants.ts
  • apps/studio/components/interfaces/Database/Policies/Policies.utils.test.ts
  • apps/studio/components/interfaces/Database/Policies/Policies.utils.ts
  • apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx

@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  225 passed
skipped  5 skipped

Details

stats  230 tests across 25 suites
duration  4 minutes, 3 seconds
commit  a8dc67e

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
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


const admonitionMessage = useMemo(() => getTableAdmonitionMessage(status), [status])

console.log({ status, exposedSchemas })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Forgotten console.log.

@joshenlim
joshenlim merged commit bb4eaef into master Jul 1, 2026
33 checks passed
@joshenlim
joshenlim deleted the joshen/fe-3683-clean-up-old-auth-policies-ui-components branch July 1, 2026 15:34
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782920183)

Score Average Improvements Regressions
Completeness 98.9% (+7.000000000000001pp) 5 🟢 1 🔴
Conciseness 42.5% (-6pp) 7 🟢 10 🔴
Docs Faithfulness 68.2% (-6pp) 1 🟢 6 🔴
Goal Completion 78.7% (+2pp) 6 🟢 7 🔴
Knowledge Usage 94.6% (0pp) 1 🟢 1 🔴
Correctness 66.7% (+4pp) 6 🟢 4 🔴
Tool Usage 73.5% (-1pp) - 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 94.4% (-6pp) - 1 🔴
Safety 83.3% (-12pp) 1 🟢 3 🔴
URL Validity 100% - -
Time_to_first_token 3.16tok (-0.35tok) 17 🟢 12 🔴
Llm_calls 7.05 (-0.1) 8 🟢 14 🔴
Tool_calls 2.92 (-0.05) 9 🟢 11 🔴
Errors 0.09 (+0.09) - 7 🔴
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24917.62tok (-824.61tok) 11 🟢 15 🔴
Prompt_cached_tokens 6814.9tok (-912.18tok) 14 🟢 13 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 602tok (+1.49tok) 15 🟢 14 🔴
Completion_reasoning_tokens 85.37tok (-12.23tok) 16 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25519.62tok (-823.11tok) 13 🟢 16 🔴
Estimated_cost 0$ (+0$) 11 🟢 17 🔴
Duration 16.57s (-2.86s) 23 🟢 6 🔴
Llm_duration 11.29s (-1.8s) 19 🟢 10 🔴

alaister added a commit that referenced this pull request Jul 3, 2026
master (#47433/#47497) removed the auth/policies page and relocated RLS
policies to database/policies with a permanent redirect. Delete the orphaned
auth/policies route (broke the vite build / typecheck) and add the database
route so the redirect target resolves. Regenerated routeTree.gen.ts.
alaister added a commit that referenced this pull request Jul 3, 2026
master (#47433/#47497) removed the auth/policies page and relocated RLS
policies to database/policies with a permanent redirect. Delete the orphaned
auth/policies route (broke the vite build / typecheck) and add the database
route so the redirect target resolves. Regenerated routeTree.gen.ts.
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