Files
supabase/apps/studio/components/interfaces/Storage/StorageSettings
Ali Waseem 73f1a60341 fix(studio): hide spend cap file size banner when Pro already allows 500 GB (#53633)
## What

Storage settings showed "Reduced max upload file size limit due to spend
cap" to every Pro org with spend cap on, telling them to disable it to
get 500 GB uploads. The `storage.max_file_size` entitlement for Pro is
already 500 GB regardless of spend cap, so the banner was wrong and
confusing.

- The banner now only shows when the entitlement returns a known value
below 500 GB (it no longer relies on the 50 GB fallback). The check
lives in `isFileSizeReducedBySpendCap` with unit tests.
- When it does show, the banner states the current reduced limit (e.g.
"Max upload file size limit reduced to 5 GB due to spend cap") instead
of a generic message.

Fixes FE-5063
2026-11-20 09:24:58 -06:00
..