mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
Open the capture sheet from the dashboard's add button on phones
On the phone shell the header's 'Add' opened a dropdown while the plus in the bottom nav, one thumb below, opened the capture sheet. The header button now opens the same sheet there; the desktop rail keeps the dropdown. The onboarding tour anchors on whichever of the two is laid out.
This commit is contained in:
1 parent
b53782810f
commit
6ca33882f1
3 files changed
+51
-14
No files matched your search
@@ -141,7 +141,10 @@ test.describe("v1.4.33 F2 — onboarding tour passes clicks through to the page"
|
||||
// so a naive "dim everything outside the spotlight rect" overlay
|
||||
// covers it. The fix makes the entire tour layer pointer-events:
|
||||
// none — every dim panel and the spotlight ring are visual only.
|
||||
const quickAddButton = page.locator('[data-tour-id="dashboard-quick-add"]');
|
||||
// One add button per shell carries the tour id; the other is hidden.
|
||||
const quickAddButton = page
|
||||
.locator('[data-tour-id="dashboard-quick-add"]')
|
||||
.filter({ visible: true });
|
||||
await expect(quickAddButton).toBeVisible();
|
||||
|
||||
// Forensic guard — at the quick-add button's centre, every element
|
||||
@@ -153,9 +156,11 @@ test.describe("v1.4.33 F2 — onboarding tour passes clicks through to the page"
|
||||
// the stack is blocking, instead of just observing the symptom
|
||||
// ("button click did not toggle aria-expanded").
|
||||
const tourBlockers = await page.evaluate(() => {
|
||||
const btn = document.querySelector<HTMLElement>(
|
||||
'[data-tour-id="dashboard-quick-add"]',
|
||||
);
|
||||
const btn = [
|
||||
...document.querySelectorAll<HTMLElement>(
|
||||
'[data-tour-id="dashboard-quick-add"]',
|
||||
),
|
||||
].find((el) => el.getClientRects().length > 0);
|
||||
if (!btn) return ["no-button"];
|
||||
const rect = btn.getBoundingClientRect();
|
||||
const x = rect.left + rect.width / 2;
|
||||
|
||||
Reference in new issue
Block a user