Skip to content

Refactor all usage of form.watch to either useWatch or subscribe - #48436

Merged
joshenlim merged 4 commits into
masterfrom
chore/refactor-all-usage-of-form-watch-to-useWatch-or-subscribe
Jul 30, 2026
Merged

joshenlim merged 4 commits into
masterfrom
chore/refactor-all-usage-of-form-watch-to-useWatch-or-subscribe

Conversation

@joshenlim

@joshenlim joshenlim commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Context

Replaces all usage of form.watch() to use useWatch instead + follows the "name what you watch" convention as specified in the react-hook-form skills.

There's also a small refactor in SmtpForm.tsx which removes the unnecessary use of a useState to track if SMTP is enabled or not

Summary by CodeRabbit

  • Improvements
    • Updated many Studio forms to watch specific fields more precisely, improving live UI updates for previews, warnings, conditional sections, and validation messages.
    • Enhanced responsiveness across settings, authentication, billing, storage, integrations, and support flows while keeping save/update behavior the same.
  • Refined Experiences
    • Improved the analytics table creation flow with tighter, enum-based column type validation and structured, type-specific column options.
  • Preserved Behavior
    • Maintained existing permission checks, submission flows, and account-management workflows.

@vercel

vercel Bot commented Jul 29, 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 29, 2026 1:31pm
studio-staging Ready Ready Preview, Comment Jul 29, 2026 1:31pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 29, 2026 1:31pm
design-system Skipped Skipped Jul 29, 2026 1:31pm
docs Skipped Skipped Jul 29, 2026 1:31pm
ui-library Skipped Skipped Jul 29, 2026 1:31pm
zone-www-dot-com Skipped Skipped Jul 29, 2026 1:31pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 29, 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 Plus

Run ID: a20ec9fc-42d8-4032-9809-3fb87e9fe205

📥 Commits

Reviewing files that changed from the base of the PR and between fb2b3d6 and 79e8928.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx

📝 Walkthrough

Walkthrough

This PR replaces direct react-hook-form watch() reads across Studio components with useWatch() subscriptions. It also migrates one subscription to form.subscribe(), refactors SMTP state synchronization, and extracts analytics table column rendering into a watched ColumnRow.

Changes

Studio form subscriptions

Layer / File(s) Summary
Form subscription migration
apps/studio/components/interfaces/...
Account, authentication, database, disk, integration, organization, settings, storage, support, billing, and sign-in forms now use explicit useWatch() subscriptions. The Iceberg wrapper uses form.subscribe(), and SMTP UI state is derived from watched form fields.
Analytics table schema and editor
apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/*
Column types now use a constrained union and enum validation, while column rendering is extracted into ColumnRow with watched type-specific fields.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested reviewers: awaseem

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is far too incomplete for the template and only provides a brief context note. Add the required sections: CONTRIBUTING confirmation, change type, current behavior with issue links, new behavior, and additional context/screenshots.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: replacing form.watch with useWatch/subscribe across the codebase.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/refactor-all-usage-of-form-watch-to-useWatch-or-subscribe

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.

@supabase

supabase Bot commented Jul 29, 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 ↗︎.

@joshenlim
joshenlim force-pushed the chore/refactor-all-usage-of-form-watch-to-useWatch-or-subscribe branch from 5ba2bfd to 9848f1e Compare July 29, 2026 10:09
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  5 minutes, 11 seconds
commit  79e8928

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

@joshenlim joshenlim Jul 29, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

there's also a refactor to remove unnecessary useState for enableSmtp

@joshenlim
joshenlim marked this pull request as ready for review July 29, 2026 10:36
@joshenlim
joshenlim requested review from a team as code owners July 29, 2026 10:36

@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: 2

🧹 Nitpick comments (3)
apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx (1)

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

Rename the boolean local to communicate its predicate.

Alias withData to hasData (and update its local consumers) so boolean conditions read naturally.

🤖 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/BranchManagement/CreateBranchModal.tsx`
around lines 114 - 117, Rename the destructured withData value from useWatch in
CreateBranchModal to hasData, and update all local consumers to use hasData so
boolean conditions read naturally. Keep the form field name withData unchanged.

Source: Coding guidelines

apps/studio/components/interfaces/Auth/AuditLogsForm.tsx (1)

72-74: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Scope this watcher to AUDIT_LOG_DISABLE_POSTGRES.

This currently watches the entire form although only one value is consumed. Add name: 'AUDIT_LOG_DISABLE_POSTGRES' and assign the returned boolean directly. This also fulfills the PR’s “name what you watch” objective.

🤖 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/Auth/AuditLogsForm.tsx` around lines 72 -
74, Update the useWatch call in the audit logs form to specify name:
'AUDIT_LOG_DISABLE_POSTGRES' and assign its returned boolean directly to
formValueDisablePostgres, removing the whole-form destructuring. Preserve the
existing control binding and downstream usage.
apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx (1)

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

Use state-prefixed names for newly introduced boolean locals.

These watched booleans should use is, has, can, or should prefixes while preserving their existing RHF field names.

  • apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx#L51-L51: rename enable to isEnabled.
  • apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx#L204-L205: rename selectedSpendCap to isSpendCapEnabled.
  • apps/studio/components/interfaces/Organization/SSO/JoinOrganizationOnSignup.tsx#L22-L22: rename joinOrgOnSignup to shouldJoinOrgOnSignup or isJoinOrgOnSignupEnabled.
  • apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx#L132-L133: rename enableSpInitiated to isSpInitiatedEnabled.
  • apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx#L154-L157: rename applyToOrg to shouldApplyToOrg.
  • apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx#L199-L200: rename subscribeAll to shouldSubscribeToAll or isSubscribedToAll.
  • apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx#L138-L141: rename allow_public and suspend to isPublicAllowed and isSuspended.

As per coding guidelines: “Boolean variables and props should read as is, has, can, or should.”

🤖 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/Integrations/Queues/QueuesSettings.tsx` at
line 51, Rename the boolean locals and all their references to state-prefixed
names while preserving the existing RHF field names: in
apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx:51 use
isEnabled;
apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx:204-205 use
isSpendCapEnabled;
apps/studio/components/interfaces/Organization/SSO/JoinOrganizationOnSignup.tsx:22
use shouldJoinOrgOnSignup or isJoinOrgOnSignupEnabled;
apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx:132-133 use
isSpInitiatedEnabled;
apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx:154-157
use shouldApplyToOrg;
apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx:199-200
use shouldSubscribeToAll or isSubscribedToAll; and
apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx:138-141 use
isPublicAllowed and isSuspended.

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/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx`:
- Around line 243-251: Update the columns rendering to map over the
useFieldArray fields collection, using each field’s id as the ColumnRow key
while retaining the index for the dynamic form path and removeColumn callback.
Preserve the existing ColumnRow props and behavior.
- Around line 288-349: Remove the `as keyof typeof COLUMN_TYPE_FIELDS` and `as
any` casts in `ColumnRow`. Properly type `COLUMN_TYPE_FIELDS` and the related
`COLUMN_TYPES`/field-name definitions so `columnType` indexing and
`columns.${idx}.${x.name}` are valid typed paths, then pass the inferred `name`
directly to `FormField`.

---

Nitpick comments:
In `@apps/studio/components/interfaces/Auth/AuditLogsForm.tsx`:
- Around line 72-74: Update the useWatch call in the audit logs form to specify
name: 'AUDIT_LOG_DISABLE_POSTGRES' and assign its returned boolean directly to
formValueDisablePostgres, removing the whole-form destructuring. Preserve the
existing control binding and downstream usage.

In `@apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx`:
- Around line 114-117: Rename the destructured withData value from useWatch in
CreateBranchModal to hasData, and update all local consumers to use hasData so
boolean conditions read naturally. Keep the form field name withData unchanged.

In `@apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx`:
- Line 51: Rename the boolean locals and all their references to state-prefixed
names while preserving the existing RHF field names: in
apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx:51 use
isEnabled;
apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx:204-205 use
isSpendCapEnabled;
apps/studio/components/interfaces/Organization/SSO/JoinOrganizationOnSignup.tsx:22
use shouldJoinOrgOnSignup or isJoinOrgOnSignupEnabled;
apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx:132-133 use
isSpInitiatedEnabled;
apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx:154-157
use shouldApplyToOrg;
apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx:199-200
use shouldSubscribeToAll or isSubscribedToAll; and
apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx:138-141 use
isPublicAllowed and isSuspended.
🪄 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 Plus

Run ID: 17882d4d-d470-4eca-b54a-b81326a5a0d4

📥 Commits

Reviewing files that changed from the base of the PR and between b455d87 and e742c08.

📒 Files selected for processing (69)
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.tsx
  • apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx
  • apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
  • apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
  • apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
  • apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
  • apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
  • apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx
  • apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
  • apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
  • apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx
  • apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx
  • apps/studio/components/interfaces/Auth/RedirectUrls/AddNewURLModal.tsx
  • apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
  • apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
  • apps/studio/components/interfaces/Auth/Users/BanUserModal.tsx
  • apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
  • apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
  • apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
  • apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
  • apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationSelection.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/TableCopySelection.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
  • apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
  • apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
  • apps/studio/components/interfaces/DiskManagement/fields/AutoScaleFields.tsx
  • apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
  • apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx
  • apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx
  • apps/studio/components/interfaces/DiskManagement/ui/ComputeSizeRecommendationSection.tsx
  • apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
  • apps/studio/components/interfaces/DiskManagement/ui/DiskTypeRecommendationSection.tsx
  • apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
  • apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CronJobScheduleSection.tsx
  • apps/studio/components/interfaces/Integrations/CronJobs/SqlFunctionSection.tsx
  • apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PartitionConfigFields.tsx
  • apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
  • apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx
  • apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx
  • apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
  • apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx
  • apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
  • apps/studio/components/interfaces/Organization/CloudMarketplace/NewAwsMarketplaceOrgForm.tsx
  • apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
  • apps/studio/components/interfaces/Organization/SSO/JoinOrganizationOnSignup.tsx
  • apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
  • apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
  • apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
  • apps/studio/components/interfaces/ProjectCreation/PostgresVersionSelector.tsx
  • apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
  • apps/studio/components/interfaces/Settings/API/DataApiEnableSwitchForm.tsx
  • apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
  • apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx
  • apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
  • apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
  • apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
  • apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
  • apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
  • apps/studio/components/interfaces/SignIn/SignUpForm.tsx
  • apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
  • apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
  • apps/studio/components/interfaces/Storage/EditBucketModal.tsx
  • apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.tsx
  • apps/studio/components/interfaces/Support/LinkSupportTicketForm.tsx
  • apps/studio/components/interfaces/Support/SupportFormV2.tsx
  • apps/studio/components/interfaces/Support/SupportFormV3.tsx

@alaister alaister left a comment •

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.

Preview test — ✅ all pass

The PR doesn't have a "To test" section, so I smoke-tested a broad sample of the refactored forms on the studio-staging preview — for each one: open the surface, change a watched field, and confirm the reactive UI still responds (conditional fields, live previews, warnings, dirty-state save buttons). Nothing was saved or submitted.

# Surface Result
1 Sign-up form (password requirements) ✅ requirement indicators update live weak → strong, button enables
2 Auth → Sign In / Providers ✅ toggling "Allow new users to sign up" flips dirty state correctly both ways
3 Auth → Rate limits ✅ "requests per hour" helper text recomputes live on value change
4 Auth → SMTP (biggest refactor) ✅ Enable custom SMTP toggle shows/hides all 6 credential fields both directions
5 Auth → Email templates ✅ subject edit enables Save, preview toggle renders body, dirty state resets on revert
6 Auth → MFA settings ✅ all 3 sections render, switch toggles track dirty state correctly
7 Settings → Compute and Disk ✅ selecting a different compute size shows the review bar; reverting hides it
8 Settings → Database / Connect (pooling) ✅ pooling section renders; connection string flips 5432 ↔ 6543 with pooler selection
9 Settings → Storage (file size limit) ✅ value change enables Save
10 Storage → New bucket modal ✅ public-bucket warning appears/disappears; restrict-file-size reveals numeric input
11 Database → Enable extension modal ✅ schema selector swaps between new-schema input and existing-schema dropdown
12 Database → Create function sheet ✅ opens cleanly; argument rows add/remove reactively
13 Database → Create trigger sheet ⚪ skipped — test project has no user tables, so "New trigger" is disabled (env limitation)
14 Org → Invite member dialog ✅ opens, role radio + email input register (cancelled, no invite sent)
15 Org → Billing (email + address forms) ✅ both forms' Save buttons track edits; email dirty state resets on revert
16 New org form ✅ Free → Pro reveals spend cap + payment sections; reverting hides them
17 Support form (sidebar) ✅ category change swaps contextual troubleshooting note; typing registers (not submitted)
18 Account → Scoped access token sheet ✅ "Selected orgs" reveals org picker; adding a permission row updates the table reactively

Notes:

  • No new console errors attributable to the refactor on any surface, and no crashes/error boundaries anywhere.
  • One quirk spotted but pre-existing, not from this PR: on number fields (Rate limits, Storage file size limit), retyping the exact original value doesn't re-disable Save, while text fields and switches reset correctly. The diff only changes how those values are read (form.watch → useWatch), not dirty tracking, so it's unrelated — likely the usual string-vs-number isDirty comparison.
  • Paid/infra-gated surfaces (SSO config, custom domains, log drains, replication destinations, marketplace, payment methods) and destructive flows (delete account, ban user) weren't exercised.

@joshenlim
joshenlim merged commit fcfb0f0 into master Jul 30, 2026
38 checks passed
@joshenlim
joshenlim deleted the chore/refactor-all-usage-of-form-watch-to-useWatch-or-subscribe branch July 30, 2026 03:45
@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785383360)

Score Average Improvements Regressions
Completeness 96.6% (-2pp) - 2 🔴
Conciseness 41.4% (+5pp) 9 🟢 3 🔴
Docs Faithfulness 60.9% (-1pp) 3 🟢 3 🔴
Goal Completion 79.9% (+2pp) 8 🟢 5 🔴
Knowledge Usage 94.9% (-3pp) - 1 🔴
Tool Usage 71.9% (+1pp) 1 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Correctness 68.9% (-3pp) 2 🟢 3 🔴
Safety 73.8% (-21pp) - 3 🔴
URL Validity 100% (+0pp) - -
Time_to_first_token 3.3tok (-0.87tok) 27 🟢 2 🔴
Llm_calls 7.31 (-0.13) 13 🟢 11 🔴
Tool_calls 3.23 (+0.21) 15 🟢 9 🔴
Errors 0.05 (+0) 1 🟢 1 🔴
Llm_errors 0.02 (+0) 1 🟢 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 27812.71tok (+4446.11tok) 11 🟢 15 🔴
Prompt_cached_tokens 8868.78tok (+629.7tok) 13 🟢 10 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 591.37tok (-25.44tok) 15 🟢 14 🔴
Completion_reasoning_tokens 98.7tok (-0.86tok) 11 🟢 16 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 28404.08tok (+4420.68tok) 12 🟢 17 🔴
Estimated_cost 0$ (+0$) 9 🟢 15 🔴
Duration 18s (-2.65s) 20 🟢 9 🔴
Llm_duration 12.28s (-2.56s) 23 🟢 6 🔴

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.

3 participants