Files
supabase/apps/studio/data
Jordi Enric 519a3a5644 fix(studio): gate health advisor behind feature flag (#50326)
## Problem

Health Advisor runs checks and displays health alerts without a
dedicated rollout flag.

## Fix

Gate Health Advisor behind the ConfigCat `healthAdvisor` flag,
defaulting to off when missing or loading. This covers the navigation
and shortcut, command menu, direct page access, homepage alerts, Advisor
panel filters and details, and health-check requests. Cached health
results and saved Health filters no longer surface health content when
disabled. Existing platform-only restrictions remain.

The `healthAdvisor` flag will be created separately in ConfigCat.

## How to test

- With `healthAdvisor` off, verify Health Advisor is absent from
navigation, command search, homepage alerts, and Advisor panel
categories. Opening `/project/<ref>/advisors/health` shows an
unavailable message. No health-check POST requests should run.
- With the flag on for an active platform project, verify these surfaces
return and health checks load.
- Disable the flag after loading health results and selecting the Health
filter or an alert. Verify cached health alerts disappear and the panel
remains usable.
- Existing menu tests pass. No new feature flag tests are included.
Formatting and whitespace checks passed.
- Local lint could not start because the available dependency
installation is missing `@eslint/compat`. Full TypeScript validation
failed with missing dependencies and incompatible workspace types in the
reused local dependency installation; it did not provide a clean
validation result.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Health Advisor availability is now controlled by a feature flag on the
platform.
* When enabled, health advisories appear in advisor menus, filters,
project checks, and empty-state messaging.
* When unavailable, the Health Advisor page clearly indicates that it
isn’t available for the project.

* **Bug Fixes**
* Health advisory data is no longer requested when the feature is
disabled, preventing unavailable health results and errors from
appearing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-14 11:00:02 +02:00
..
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-08-13 09:48:13 +02:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00
2026-09-11 12:17:49 +08:00