Point the e2e add flows at whichever add control a surface shows

A list that is empty now carries its add action in the empty state
instead of the header, and on the phone shell the dashboard's add opens
the capture sheet. The overflow, mood timestamp, measurement flow,
onboarding tour and delegated-write journeys accept either control; the
measurement list's empty-state add gets a stable data-slot for that.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 19:51:16 +02:00
1 parent 5be7a9c242
commit 276cac1d5b
6 files changed
+36 -9

No files matched your search

@@ -1087,7 +1087,10 @@ export function MeasurementList({
{t("measurements.emptyResetFilter")}
</Button>
) : onAddFirst && canAddMeasurement ? (
<Button onClick={onAddFirst}>
<Button
onClick={onAddFirst}
data-slot="measurement-add-first"
>
<Plus className="h-4 w-4" />
{t("measurements.emptyAddFirst")}
</Button>