Commit Graph
7 Commits
Author SHA1 Message Date
Danny WhiteandJoshen Lim 0ce2a96c53 feat(studio): show Warehouse workload on the integration overview (#53575)
## Problem

The Warehouse integration overview shows replication status but gives no
view of query activity.

## Solution

Add last-hour query rate and p95 duration charts, with refresh and a
link to Observability. Metrics failures appear beside the replication
information.

| Before | After |
| --- | --- |
| <img width="1292" height="1288" alt="CleanShot 2026-11-18 at 13 44
48@2x"
src="https://github.com/user-attachments/assets/f06314bb-8322-448b-a86b-6821a3427a52"
/> | <img width="1314" height="1930" alt="CleanShot 2026-11-18 at 13 45
10@2x"
src="https://github.com/user-attachments/assets/0cbaab85-b7bb-445d-8547-3c772010a0d1"
/> |
| _No “Workload” section._ | _A new “Workload” section._ |

Depends on #53574.

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-overview-workload-supabase.vercel.app)
with a staging project that has Warehouse configured.
2. Go to **Integrations > Warehouse > Overview**. Check the **Workload**
charts below replication status.
3. Refresh the charts, then use **Observability** to open the full
report.
4. Check a period without query activity. The empty message should name
the last 60 minutes.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-20 15:46:03 +11:00
Danny WhiteandJoshen Lim 98b197509e feat(studio): show Warehouse worker activity (#53574)
## Problem

The Warehouse report does not show worker starts or request performance.

## Solution

Add worker starts, worker start time, requests by method and request
duration below Capacity. Keep the API’s kind, result, method and status
labels visible. Durations use milliseconds.

| After |
| --- |
| <img width="1670" height="3362" alt="CleanShot 2026-11-18 at 13 41
47@2x"
src="https://github.com/user-attachments/assets/90f6c5ec-dc4c-4828-ba40-7242fa4c1b71"
/> |
| _The new “Worker activity” section._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-report-workers-supabase.vercel.app)
with a staging project that has Warehouse access, then go to
**Observability > Warehouse**.
2. Check **Worker activity** below Capacity. Compare worker starts and
start time, then requests by method and request duration.
3. Change the period and refresh. Check that the labels distinguish the
returned worker kinds and request outcomes, and that missing
measurements stay distinct from zero.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-20 15:46:02 +11:00
Danny WhiteandJoshen Lim 8409c5d98f feat(studio): show Warehouse capacity (#53573)
## Problem

The Warehouse report does not show available worker capacity or why
requests are rejected.

## Solution

Add worker-slot usage alongside the slot limit, plus rejected requests
split by reason. Labelled measurements keep separate lines and missing
values stay visible as gaps.

| After |
| --- |
| <img width="1694" height="1842" alt="CleanShot 2026-11-18 at 13 38
04@2x"
src="https://github.com/user-attachments/assets/e480b83c-6c93-4b18-85e6-9a37caf304b0"
/> |
| _The new “Capacity” section._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-report-capacity-supabase.vercel.app)
with a project that has Warehouse access, then go to **Observability >
Warehouse**.
2. Under **Capacity**, compare **In use**, **Active grants** and
**Pending grants** with **Limit**.
3. Check **Rejected requests** for labelled rejection reasons. Change
the period and refresh to check both charts update.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-20 15:46:02 +11:00
Danny WhiteandJoshen Lim 2372aa0fc2 feat(studio): show Warehouse query latency (#53570)
## Problem

The Warehouse report shows query activity and outcomes, but not how long
queries spend waiting or running.

## Solution

Add query-duration percentiles, worker-acquisition waits and
successful-query duration. Durations are shown in milliseconds, with
missing measurements kept distinct from zero. Latency loads separately
so a failed request does not hide query activity.

| After |
| --- |
| <img width="1678" height="1796" alt="CleanShot 2026-11-18 at 12 28
53@2x"
src="https://github.com/user-attachments/assets/48c6545e-8f2d-40c4-aa3c-977dd2ae6479"
/> |
| _New latency section._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-report-latency-supabase.vercel.app)
with a staging project that has Warehouse access
([example](https://studio-staging-git-dnywh-warehouse-report-latency-supabase.vercel.app/dashboard/project/yirnfrgkxmnqgexikhfc/observability/warehouse?its=2026-11-18T00%3A23%3A52.901Z&ite=2026-11-18T01%3A23%3A52.901Z&isHelper=true&helperText=Last+60+minutes)),
then go to **Observability > Warehouse**.
2. Check **Query duration**, **Time waiting for a worker** and
**Successful query duration** below the query charts. Hover the lines to
compare timing measurements.
3. Change the date range and refresh. Both query activity and latency
should update.
4. Check the selected period without measurements. Empty or unavailable
data must remain distinct from measured zeroes.

Shared ChartLine accessibility changes are separate in #53706.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-20 15:46:02 +11:00
Danny WhiteandJoshen Lim 5b0c50a2dc feat(studio): show Warehouse query outcomes (#53496)
## Problem

The Warehouse report shows query volume but not how many queries are
running, failing or being canceled.

## Solution

Add queries in progress, errors, timeouts and cancellations alongside
query rate. Timeouts are labelled as part of errors; cancellations
remain separate. Missing measurements stay distinct from zero.

| After |
| --- |
| <img width="1798" height="2318" alt="CleanShot 2026-11-18 at 12 18
38@2x"
src="https://github.com/user-attachments/assets/79c5b3d7-ec04-4519-89d0-f99a77ec3521"
/> |
| _Every chart tile except the first is new._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-metrics-model-supabase.vercel.app)
with a staging project that has Warehouse access.
2. Go to **Observability > Warehouse**. Check the query activity and
outcome charts for a period with Warehouse traffic.
3. Change the period and refresh. Check that empty measurements are
distinct from measured zeroes, and that the timeout description makes
clear it is already included in errors.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-19 15:17:39 +11:00
Danny WhiteandJoshen Lim 8fcd5e7f65 feat(studio): add Warehouse report date controls (#53494)
## Problem

The Warehouse report only shows the last hour.

## Solution

Add date selection and refresh using the shared report controls. Respect
the organisation’s log retention limits and the metrics API’s 30-day
maximum.

| After |
| --- |
| <img width="1688" height="1050" alt="CleanShot 2026-11-18 at 11 35
24@2x"
src="https://github.com/user-attachments/assets/88267bf8-1054-480b-ac26-c0c2b58386bc"
/> |
| _The new controls._ |
| <img width="2420" height="1028" alt="CleanShot 2026-11-18 at 11 47
52@2x"
src="https://github.com/user-attachments/assets/383c06a0-5470-4748-b9a6-fe80647a1399"
/> |
| _The standard retention upgrade prompt follow tapping either of these
on a Pro plan._ |

## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-metrics-range-supabase.vercel.app)
and select a staging project with Warehouse access.
2. Open **Observability > Warehouse**, or
`/project/<ref>/observability/warehouse`
([example](https://studio-staging-git-dnywh-warehouse-metrics-range-supabase.vercel.app/dashboard/project/yirnfrgkxmnqgexikhfc/observability/warehouse)).
Change Last 60 minutes to Last 24 hours and check that the chart or
no-data state reflects the selected period.
3. Refresh the report. Check that the selected period stays selected.
4. On a paid staging organisation, select a period beyond its log
retention (for example, Last 14 days with 7-day retention). Check that
the retention upgrade prompt appears and the current period stays
selected.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-19 15:08:18 +11:00
Danny WhiteandJoshen Lim 48c90094d9 feat(studio): show Warehouse query activity in Observability (#53495)
## Problem

Warehouse query activity is not available in Observability.

## Solution

Add a Warehouse report showing query rate over the last hour, with
loading, setup, no-data and request-error states. The report uses live
project metrics and appears in navigation for projects with Warehouse
access.

| After |
| --- |
| <img width="2548" height="1416" alt="CleanShot 2026-11-17 at 16 55
33@2x"
src="https://github.com/user-attachments/assets/4d6796e0-72f1-45d5-b6b7-2cd4a3577496"
/> |
| <img width="2552" height="1390" alt="CleanShot 2026-11-17 at 16 56
18@2x"
src="https://github.com/user-attachments/assets/d96efdfd-4ca9-42fe-ac30-9cb4667c95d7"
/> |
| <img width="2544" height="1388" alt="CleanShot 2026-11-17 at 16 32
11@2x"
src="https://github.com/user-attachments/assets/bc80af8d-0468-4229-98d0-ac2681823059"
/> |
| <img width="2560" height="1344" alt="CleanShot 2026-11-17 at 16 59
53@2x"
src="https://github.com/user-attachments/assets/1ed70348-c2fc-4673-85a7-530d9734886c"
/> |


Visitor | What they see
-- | --
Signed-in customer without Warehouse access | No Warehouse entry in
Observability
Customer with Warehouse access, not configured | “Warehouse is not set
up” empty state and setup button
Customer with Warehouse disabled | “Warehouse is disabled” empty state
and setup button
Customer with active Warehouse | Query rate chart, or the relevant
loading/empty/error state



## Review instructions

1. Open the [Studio staging
preview](https://studio-staging-git-dnywh-warehouse-metrics-client-supabase.vercel.app)
with a staging project that has Warehouse access.
2. Go to **Observability > Warehouse**, or
`/project/<ref>/observability/warehouse`
([example](https://studio-staging-git-dnywh-warehouse-metrics-client-supabase.vercel.app/dashboard/project/yirnfrgkxmnqgexikhfc/observability/warehouse)).
3. Check the query-rate chart after running Warehouse queries. A project
without measurements shows an explicit last-hour empty state.
4. Open the report on a project where Warehouse is not set up and check
the setup link.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-19 14:57:39 +11:00