Skip to content

feat(studio): enable functions counter on Home for self-hosted environments - #42992

Merged
charislam merged 4 commits into
supabase:masterfrom
luizfelmach:feat/show-counter-functions
Feb 18, 2026
Merged

charislam merged 4 commits into
supabase:masterfrom
luizfelmach:feat/show-counter-functions

Conversation

@luizfelmach

@luizfelmach luizfelmach commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Feature

What is the current behavior?

The Functions counter on the Home page is only displayed in platform environments.
In self-hosted setups, the counter is hidden due to a platform guard, even though Functions may be available.

What is the new behavior?

The Functions counter is now also displayed in self-hosted environments.

This is now possible thanks to the following PRs:

These PRs introduce and enable the API required for listing Functions in Studio, making it feasible to show the Functions count outside of the platform environment.

Additional context

Related issues: #36285

This change removes the platform-only restriction around the Functions card in the Home interface, allowing feature parity between platform and self-hosted deployments where the Functions API is available.

image

@luizfelmach
luizfelmach requested a review from a team as a code owner February 18, 2026 17:36
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@vercel

vercel Bot commented Feb 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Feb 18, 2026 6:16pm
docs Ready Ready Preview, Comment, Open in v0 Feb 18, 2026 6:16pm
learn Ready Ready Preview, Comment Feb 18, 2026 6:16pm
studio-self-hosted Ready Ready Preview, Comment Feb 18, 2026 6:16pm
studio-staging Ready Ready Preview, Comment Feb 18, 2026 6:16pm
ui-library Ready Ready Preview, Comment Feb 18, 2026 6:16pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Feb 18, 2026 6:16pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Feb 18, 2026 6:16pm
studio Ignored Ignored Feb 18, 2026 6:16pm

Request Review

@vercel

vercel Bot commented Feb 18, 2026

Copy link
Copy Markdown

@luizfelmach is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • The Functions section (link, loading state and item counts) is now visible to all users alongside Tables. Its behavior and layout remain unchanged.

Walkthrough

The change removes the IS_PLATFORM conditional gating from the Functions section in the Home component. Previously, the Functions link and its associated loading behavior and count display were only rendered when IS_PLATFORM evaluated to true. This modification makes the Functions section render unconditionally and consistently alongside the Tables section. The layout structure and loading behavior for the Functions section remain unchanged; only the platform-specific visibility restriction has been removed.


Comment @coderabbitai help to get the list of available commands and usage tips.

@aantti aantti self-assigned this Feb 18, 2026
@aantti aantti added edge functions self-hosted Related to self-hosted Supabase labels Feb 18, 2026
@aantti
aantti requested review from awaseem and charislam February 18, 2026 18:00

@aantti aantti 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.

LGTM

@charislam
charislam enabled auto-merge (squash) February 18, 2026 18:19
@charislam
charislam merged commit 6d1a064 into supabase:master Feb 18, 2026
13 checks passed
@github-actions

github-actions Bot commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1771440145)

Score Average Improvements Regressions
Completeness 97.2% (+3pp) 1 🟢 -
Conciseness 0% (-1pp) - 1 🔴
Goal Completion 93.1% (-1pp) 1 🟢 2 🔴
Tool Usage 93.8% (-6pp) - 2 🔴
Correctness 91.7% (+1pp) - -
Docs Faithfulness 61.1% (-1pp) 1 🟢 2 🔴
URL Validity 100% (+5pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Time_to_first_token 0.18tok (-0.02tok) 8 🟢 4 🔴
Llm_calls 8.36 (+0.08) 2 🟢 4 🔴
Tool_calls 3.17 (-0.08) 4 🟢 4 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 105371.28tok (+369.89tok) 5 🟢 7 🔴
Prompt_cached_tokens 46727.11tok (-9934.22tok) 2 🟢 10 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 5882.44tok (+28.61tok) 6 🟢 6 🔴
Completion_reasoning_tokens 4145.78tok (-248.89tok) 6 🟢 6 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 111253.72tok (+398.5tok) 5 🟢 7 🔴
Estimated_cost 0.03$ (+0$) 6 🟢 6 🔴
Duration 42.51s (-2.69s) 9 🟢 3 🔴
Llm_duration 83.63s (-5.44s) 9 🟢 3 🔴

@luizfelmach
luizfelmach deleted the feat/show-counter-functions branch February 18, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edge functions self-hosted Related to self-hosted Supabase

Projects

Development

Successfully merging this pull request may close these issues.

3 participants