Skip to content

fix(web): give note-row and notebook-row actions a 44 px touch target #899

Open

Description

@JakubAnderwald

What

On the web app on a touch-only device (@media (hover: none)), the note-row actions button (⋮) in apps/web/src/components/notes/note-list.tsx is now always visible (#863), but it is an IconButton size="sm": 28×28 px, below the usual 44×44 px minimum touch target. The notebook delete button (×) in apps/web/src/components/notebooks/notebooks-sidebar.tsx is smaller still (14 px icon with p-0.5). Both are easy to miss with a finger, and a near miss on the note row opens the note instead. Found while verifying #863.

Acceptance criteria

  • On a touch-only pointer (@media (hover: none)), the note-row ⋮ and the notebook × each have a tap target of at least 44×44 px. The visible icon can stay small; the hit area may extend beyond it.
  • The enlarged target doesn't overlap the neighbouring row's target, and the note title still truncates before the ⋮.
  • Hover-capable pointers (desktop with a mouse) look and behave as they do today.
  • Playwright test on the existing touch projects (Mobile Chrome, Mobile Safari, Tablet) asserting each control's bounding box is at least 44×44 px.

Affected platforms

  • web (apps/web)
  • iOS / Android (apps/mobile)
  • macOS (apps/desktop)
  • None — factory internals / docs / CI (no app platform)

Schema changes?

no

UI design (if applicable)

Use existing design-system primitives (IconButton); prefer enlarging the hit area (padding or a pseudo-element) over a bigger icon.

Out of scope

  • Mobile and desktop apps.
  • Other web icon buttons not in a note or notebook row.

Activity

  1. added
    status:planning
    on Nov 22, 2026
  2. JakubAnderwald commented on Nov 22, 2026

    @JakubAnderwald
    OwnerAuthor

    Plan for #899

    Approach

    On a touch-only pointer, each control's own box grows to 44×44 px through [@media(hover:none)]: classes. The SVG icon keeps its current size, so the tap area is the button itself. Hover-capable pointers get no class change, so desktop stays pixel-identical. A pseudo-element hit area was rejected because Playwright's boundingBox() (the acceptance check) doesn't include pseudo-elements. The notebook × stays a plain <button>: even IconButton's smallest size (28 px, plus a hover background) would make the desktop notebook row 40 px tall instead of 32 px.

    • Note row ⋮ (IconButton size="sm", absolute top-2 right-2, 28 px): on touch, add top-0 right-0 h-11 w-11. The icon's centre doesn't move (it stays 22 px from the row's top and right edges either way). The row is 54 px tall (py-2 + 20 px title + 2 px + 16 px meta), so the 44 px target stays inside its own row, and the next row's target starts 12 px lower. When the row has actions, the row button also gets [@media(hover:none)]:pr-12 (48 px) on top of the base pr-10, so the title's box ends before the target. Desktop keeps pr-10. The dropdown's top-8 doesn't change.
    • Notebook × (about 18 px wide in a 32 px row, px-2 py-1.5): on touch, add inline-flex items-center justify-center h-11 w-11 shrink-0 to the button. Without shrink-0, a long notebook name would shrink the fixed width in the flex row. The row gets py-0 pr-0, so it is exactly 44 px tall and the target ends at its right edge. With the 2 px space-y-0.5 gap, targets in neighbouring rows can't overlap.

    Confidence

    high. The fix is deterministic from Tailwind classes I've read at origin/main, and the row heights above are computed from them. There's no rendering race or hypothesis to confirm. The one unknown is test coverage, not the fix: CI's summary (145 passed / 18 skipped) doesn't show whether Playwright's WebKit projects (Mobile Safari, Tablet) match (hover: none). If they don't, the touch row actions describe skips there. Cheapest decisive evidence: run playwright test e2e/responsive.spec.ts --project="Mobile Safari" --project=Tablet --reporter=list and see whether the touch tests run or skip. I didn't request a browser probe: the runner drives the Mac mini's desktop Chrome, which can hover, so it would only see the unchanged desktop layout.

    Size

    Class S, ~120–200 added lines across 7 files (most of them tests); web only.

    Files to touch

    Web app

    • apps/web/src/components/notes/note-list.tsx (modify): touch size and position classes on the ⋮, and touch pr-12 on the row button.
    • apps/web/src/components/notebooks/notebooks-sidebar.tsx (modify): touch size, centring and shrink-0 on the ×, and touch py-0 pr-0 on the row.

    Tests

    • apps/web/__tests__/integration/note-list.test.tsx (modify)
    • apps/web/__tests__/integration/notebooks-sidebar.test.tsx (modify)
    • apps/web/e2e/responsive.spec.ts (modify)
    • apps/web/e2e/notes.spec.ts (modify): one desktop size assertion.

    Docs

    • docs/features/notes-and-notebooks.md (modify): one sentence in the "Web and desktop have no swipe" bullet about the 44 px touch targets.

    Risks

    • Changes a test merged in fix(web): keep long note titles clear of the hover actions button on desktop #909. note-list.test.tsx asserts that the row's pr- never has a variant (it forbids [@media…]:pr-). It gets narrowed: hover, focus and group-* variants stay forbidden, and only the touch [@media(hover:none)]:pr-12 is allowed. A touch-only padding is fixed for the device and never changes on hover or focus, so the title still can't move. The fix(web): keep long note titles clear of the hover actions button on desktop #909 chromium E2E test still covers desktop.
    • WebKit projects may skip. If WebKit doesn't emulate (hover: none), the new E2E checks effectively run only on Mobile Chrome. Asserting 44 px on a pointer that can hover would be wrong, so the existing skip stays. The PR should say which projects ran and which skipped, rather than forcing the tests to run.
    • Touch notebook rows grow from 32 to 44 px, so phones and tablets show fewer notebooks per screen. This can't be avoided: a 44 px target in a 32 px row would overlap the next row's target. On touch, the × icon also moves about 5 px right (pr-0).
    • The 44 px ⋮ target covers the row button's top-right 44×44 px. A tap there opens the menu rather than the note, which is what the spec wants. The title stays clear of it.
    • Hybrid devices are unchanged. A touchscreen laptop with a mouse reports hover: hover and keeps the small targets, as today. That's out of scope.
    • No migration, no data path, no privacy or MCP impact.

    Parity checklist

    • web: the note-row ⋮ in apps/web/src/components/notes/note-list.tsx, and the notebook-row × in apps/web/src/components/notebooks/notebooks-sidebar.tsx.
    • mobile / desktop: out of scope per the spec. Their row actions are separate native code: swipe actions on mobile, and the desktop app's own lists.

    Tests

    • Integration (jsdom, which only sees class names)
    • E2E, touch projects (responsive.spec.ts, inside the existing touch row actions describe, so they run only where (hover: none) matches, on Mobile Chrome, Mobile Safari and Tablet)
      • Note rows: create two notes. Each ⋮'s bounding box is at least 44×44, and the two boxes don't intersect. The title <p>'s right edge is at or left of the ⋮ box's left edge. A tap 4 px inside the target's top-left corner opens the menu, which shows the whole target takes taps.
      • Notebook rows: create a notebook with a long name (60+ characters, which exercises shrink-0). Its ×'s box is at least 44×44 and doesn't intersect the next row's ×.
    • E2E, desktop (notes.spec.ts, chromium): the existing fix(web): keep long note titles clear of the hover actions button on desktop #909 test also asserts the ⋮ is still 28×28.
    • Commands (see docs/architecture/testing.md): pnpm --filter @drafto/web test, the web Playwright suite (all projects), pnpm lint, pnpm typecheck, pnpm format:check.

    Estimated affected platforms

    web

  3. added
    status:plan-review
    status:in-review
    status:testing
    and removed
    status:planning
    status:plan-review
    status:in-review
    on Nov 22, 2026
  4. JakubAnderwald commented on Nov 22, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Test scenario — verifying now (Testing).

    On a touch-only pointer (@media (hover: none)), the note-row ⋮ and the notebook-row × are now 44×44 px tap targets (they were 28×28 px and about 18×22 px), with the icons kept small; a pointer that can hover keeps today's small buttons. The factory is verifying the change now, and the card moves to In Test with a verification report when that's done, so you can start now or wait for the report.

    How to get a build

    Web only. Open the Vercel preview: https://drafto-git-factory-issue-899-jakubanderwalds-projects.vercel.app (built from PR #915 at eff7c3550eec). It sits behind Vercel Authentication, so a browser signed in to Vercel opens it. A phone or tablet needs the same Vercel sign-in. Nothing native is involved.

    Test scenario

    A desktop browser with a mouse reports (hover: hover), so it can only show that the hover layout is unchanged (steps 3–6). Steps 7–15 need a touch-only pointer: a real phone or tablet, or Chrome DevTools' device toolbar on a touch device such as iPhone 13, Pixel 5 or iPad (turn it on, then reload the page so (hover: none) is evaluated). A step that needs a touch-only pointer comes back SKIP in a desktop-only run.

    Web

    Setup

    1. Sign in with the test account and open /. Click New notebook (+ in the Notebooks header), type Touch Target NB With A Name Long Enough To Truncate In The Sidebar 1, press Enter. Expected: the notebook appears in the list and is selected. On a phone, tap Back to notebooks to see the list again.
    2. Open that notebook and click New note (+ in the Notes header) twice. On a phone each new note opens the editor, so tap Back to notes after each. Expected: two rows titled "Untitled" in the Notes list. Give the first note a title of 80+ characters (for example 90 letters of "long title ") so it has to truncate; on a phone, go back to the list afterwards.

    Mouse pointer — must look and behave as before

    1. With a mouse, hover the first note row. Expected: the ⋮ button (aria-label "Actions for …") fades in at the row's top-right corner, about 28×28 px (select it in DevTools → Elements to read the size), 8 px from the row's top and right edges. The long title truncates with an ellipsis before the ⋮.
    2. Click the ⋮. Expected: a menu with Delete and Move to... opens just under the button (about 32 px below the row's top edge). Press Escape to close it.
    3. Hover the notebook row from step 1. Expected: the × (aria-label "Delete Touch Target NB …") fades in on the right of the row. It is a small button (14 px icon, about 18×22 px) and the row is about 32 px tall; the notebook name truncates with an ellipsis before it.
    4. Click the ×. Expected: a confirm dialog titled Delete "Touch Target NB …"? opens. Click Cancel. Expected: the dialog closes and the notebook is still in the list.

    Touch-only pointer — note rows

    1. Open the notebook's note list. Expected without any hover: the ⋮ is visible on both rows, with the same three-dot glyph in the same spot (the icon's centre is 22 px from the row's top and right edges, as before). Select the button (DevTools → Elements, or inspect it from the device toolbar) and read its box. Expected: at least 44×44 px. To see the old size, compare with a note list on drafto.eu, which still serves the old build: its ⋮ box reads 28×28 px.
    2. Compare the two rows' ⋮ boxes. Expected: the boxes don't overlap, and the first one ends inside its own row (the row is about 54 px tall; the second row's box starts about 12 px below the end of the first). The long title of the first note ends before the ⋮ box's left edge and is truncated with an ellipsis, not running under the ⋮.
    3. Tap the first ⋮'s box near its top-left corner, well away from the dots (about 4 px in from the corner). Expected: the menu with Delete opens, and the view doesn't switch to that note (on a phone you stay on the Notes list instead of landing in the editor). Before the fix, a tap there fell on the row and opened the note.
    4. With the menu open, look at where it sits. Expected: the menu's top edge is below the ⋮ box's bottom edge, so no menu item is under the ⋮. Tap outside the menu (or press Escape) to close it.

    Touch-only pointer — notebook rows

    1. Open the Notebooks list (phone: Back to notebooks; tablet: the sidebar). Expected without any hover: the × is visible on every notebook row, including the long-named one. Read the × button's box. Expected: at least 44×44 px, also on the long-named notebook (its name truncates with an ellipsis and the × does not get narrower). The × glyph itself is still the small one.
    2. Check the row's height and the × position. Expected: each notebook row is exactly 44 px tall (it was about 32 px), the × box ends at the row's right edge, and the × glyph sits about 5 px further right than on a mouse pointer. Fewer notebooks per screen than before is expected.
    3. Compare the × boxes of two neighbouring notebook rows. Expected: the boxes don't overlap (the rows are 2 px apart). Create a second notebook if only one exists.
    4. Tap the long-named notebook's × box near a corner, away from the glyph. Expected: the confirm dialog Delete "Touch Target NB …"? opens and the notebook is not opened or selected behind it. Tap Cancel. Expected: the notebook is still in the list.

    Cleanup

    1. On the mouse pointer again, hover the test notebook, click its ×, and click Delete in the dialog. Expected: the notebook disappears from the list.

    What failure looks like (web): on a touch-only pointer the ⋮ reads 28×28 px or the × reads about 18×22 px; a tap in the corner of the ⋮ area opens the note instead of the menu; a long title runs under the ⋮; the long-named notebook's × is squeezed narrower than 44 px; neighbouring boxes overlap. On a mouse pointer, any size or position change from steps 3–6 (for example a 44 px ⋮ or a 44 px tall notebook row) is a regression.

    What isn't manually testable

    • The class names the change adds are asserted in jsdom by apps/web/__tests__/integration/note-list.test.tsx and apps/web/__tests__/integration/notebooks-sidebar.test.tsx. jsdom applies no CSS, so those tests only prove the classes are there.
    • The bounding-box checks (at least 44×44 px, no overlap, title before the ⋮, tap in the corner opens the menu, long-name × not shrinking) live in apps/web/e2e/responsive.spec.ts, in the "touch row actions" describe. They run only on a project where (hover: none) matches, so which of Mobile Chrome, Mobile Safari and Tablet ran or skipped is in the CI log. A real iPhone or iPad in Safari is the only manual check of WebKit.
    • A touchscreen laptop with a mouse reports (hover: hover) and keeps the small buttons, as before; that is out of scope for this issue.

    Drag the card to Approved to merge and ship, or comment what you want changed and the factory revises on the same PR branch.

  5. added
    status:in-test
    and removed
    status:testing
    on Nov 22, 2026
  6. JakubAnderwald commented on Nov 22, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Verification before In Test

    Verdict: FAIL for eff7c3550eec (PR #915).

    Evidence, not a gate: the card is now In Test.

    Lane Status Verdict Note
    Repo & API (shell) ran PASS full report below
    Web (browser) ran FAIL full report below
    iOS / Android not affected — no mobile changes
    macOS not affected — no macOS changes

    Assessment

    • Repo & API: 3 PASS, 0 FAIL, 0 WARN, 2 SKIP groups (15 browser steps and the e2e suite).
    • Web: 5 PASS / 1 FAIL / 1 WARN / 8 SKIP.
      • Step 15 (FAIL): the app refuses to delete a notebook that still contains notes. That looks like a gap in the scenario's cleanup step (it never deletes the notes first), not a regression from the touch-target change, since the mouse-pointer path behaved as before. Once the notes were deleted, the delete worked.
      • Steps 7–14 (SKIP): none of the touch-only checks (44×44 px boxes, tap behaviour, 44 px notebook rows) were verified, so the core of this fix still needs a touch-capable run.

    Repo & API assessment:

    As far as a terminal can tell, the change does what the issue asked. The unit tests pass, and the preview's compiled CSS has every new rule inside @media (hover:none):

    • The ⋮ becomes a 44×44 px button anchored to the row's top-right corner. A 44 px box at 0/0 puts the icon's centre 22 px from the top and right edges, the same as the old 28 px box at 8 px.
    • The note row reserves 48 px on the right for it, and the menu opens at 44 px.
    • The notebook × becomes a 44×44 px button that doesn't shrink, and its row drops its vertical and right padding.

    Nothing changes for hover-capable pointers. The person should start with the actual box measurements on a touch-only pointer, steps 7–14. Those are the e2e checks I couldn't run here. A real iPhone or iPad in Safari is the only check of WebKit.

    Steps for you to do manually

    1. Re-check by hand — Web step 7, which the browser marked SKIP: Touch-only: ⋮ visible without hover, box ≥ 44×44
    2. Re-check by hand — Web step 8, which the browser marked SKIP: Touch-only: ⋮ boxes don't overlap, title ends before ⋮
    3. Re-check by hand — Web step 9, which the browser marked SKIP: Touch-only: tap ⋮ box corner opens menu, not the note
    4. Re-check by hand — Web step 10, which the browser marked SKIP: Touch-only: menu sits below ⋮ box
    5. Re-check by hand — Web step 11, which the browser marked SKIP: Touch-only: × visible without hover, box ≥ 44×44
    6. Re-check by hand — Web step 12, which the browser marked SKIP: Touch-only: notebook row exactly 44 px, × at right edge
    7. Re-check by hand — Web step 13, which the browser marked SKIP: Touch-only: neighbouring × boxes don't overlap
    8. Re-check by hand — Web step 14, which the browser marked SKIP: Touch-only: tap × box corner opens delete confirm
    9. Re-check by hand — Web step 15, which the browser marked FAIL: Mouse: delete the test notebook via × and Delete (the browser saw: I did the step as written. The panel showed "Cannot delete notebook with notes. Move or delete notes first." and the notebook stayed (screenshot 12). The scenario's Setup leaves two notes in it. I then deleted both notes via ⋮ → Delete, hovered the notebook, clicked × and clicked Delete again. The panel warned "Trashed notes inside will be permanently…

    Coverage gaps

    None.

    Repo & API (shell): full report

    I ran this against the checkout at eff7c3550eeca74f4fae98b498a3040c477dbc9a (PR #915) and read the compiled CSS from the preview at https://drafto-nyrqzv37w-jakubanderwalds-projects.vercel.app.

    # Step Result Evidence
    T1 Targeted tests: note-list.test.tsx and notebooks-sidebar.test.tsx (vitest) PASS Test Files 2 passed (2), Tests 68 passed (68)
    T2 The preview's CSS has the new touch-only rules (extra check, because jsdom applies no CSS) PASS GET / → 200. In its 4 CSS chunks, each new class (h-11, w-11, top-0, right-0, top-11, pr-12, pr-0, py-0, shrink-0, inline-flex, items-center, justify-center) appears exactly once, inside @media (hover:none){…}. --spacing:.25rem, so h-11/w-11 = 2.75rem = 44 px, top-11 = 44 px and pr-12 = 48 px.
    T3 Diff read: hover-capable pointers keep their classes PASS Every class the diff adds has the [@media(hover:none)]: prefix. The existing top-2 right-2, top-8, pr-10 pl-3, px-2 py-1.5 and p-0.5 classes are still there, so steps 3–6 (mouse pointer) should look the same.
    W1–W15 ### Web steps 1–15 (setup, mouse pointer, touch-only note and notebook rows, cleanup) SKIP All are browser steps, which the browser lane runs. None of them is a terminal or API step.
    E2E Bounding-box checks in e2e/responsive.spec.ts ("touch row actions") SKIP They need Playwright with a (hover: none) browser, and this lane has no browser. The scenario says the CI log shows which projects ran them.

    Summary: 3 PASS, 0 FAIL, 0 WARN, 2 SKIP groups (15 browser steps and the e2e suite).

    Assessment: As far as a terminal can tell, the change does what the issue asked. The unit tests pass, and the preview's compiled CSS has every new rule inside @media (hover:none):

    • The ⋮ becomes a 44×44 px button anchored to the row's top-right corner. A 44 px box at 0/0 puts the icon's centre 22 px from the top and right edges, the same as the old 28 px box at 8 px.
    • The note row reserves 48 px on the right for it, and the menu opens at 44 px.
    • The notebook × becomes a 44×44 px button that doesn't shrink, and its row drops its vertical and right padding.

    Nothing changes for hover-capable pointers. The person should start with the actual box measurements on a touch-only pointer, steps 7–14. Those are the e2e checks I couldn't run here. A real iPhone or iPad in Safari is the only check of WebKit.

    Created on the preview: nothing. No notes, notebooks or API keys. The scratch directory is deleted and git status --porcelain is empty.

    Web (browser): full report

    Ran the Web steps against https://drafto-nyrqzv37w-jakubanderwalds-projects.vercel.app/ as the factory's dedicated test account, on a desktop Chrome with a mouse (about 1466 CSS px wide). I could not emulate a touch-only pointer, so the fix's main checks (steps 7–14) are not verified in this run.

    # Step Result Evidence
    1 Create notebook and select it PASS New notebook "Touch Target NB factory-899-eff7c35 With A Name Long Enough To Truncate In The Sidebar 1" appeared at the top of the list and was selected (screenshot 3). It had the QA tag added to the name. The phone "Back to notebooks" part doesn't apply on this layout.
    2 Two "Untitled" notes, first with an 80+ character title PASS Two rows titled "Untitled" (screenshot 6). The first row got a title of about 120 characters ("long title " repeated, QA tag at the end). It truncates with an ellipsis (screenshot 7).
    3 Mouse: hover first note row shows ⋮ PASS The ⋮ (aria-label "Actions for long title…") measured 28×28 px, 8 px from the row's top and right edges, opacity 1 on hover and 0 on the non-hovered row. The title ends in an ellipsis before the ⋮ (screenshot 7).
    4 Click ⋮ opens menu under the button PASS The menu shows Delete and Move to.... Its top edge is 32 px below the row's top (screenshot 8). Escape closed it.
    5 Mouse: hover notebook row shows × WARN The × fades in on the right. The icon is 14×14 px, the row is 32 px tall and the name is ellipsised (screenshot 9). The × button box measured 18×18 px, not "about 18×22". It is still small, with no sign of the 44 px size on a mouse pointer.
    6 Click × opens confirm; Cancel keeps notebook PASS The confirm panel read Delete "Touch Target NB factory-899-eff7c35 With…"? (screenshot 10). After Cancel the panel was gone and the notebook was still listed.
    7 Touch-only: ⋮ visible without hover, box ≥ 44×44 SKIP This browser reports a fine pointer with hover (pointer: coarse is false). I have no tool to emulate touch or change the pointer type, so no touch-only size could be read.
    8 Touch-only: ⋮ boxes don't overlap, title ends before ⋮ SKIP Needs a touch-only pointer (see step 7).
    9 Touch-only: tap ⋮ box corner opens menu, not the note SKIP Needs a touch-only pointer (see step 7).
    10 Touch-only: menu sits below ⋮ box SKIP Needs a touch-only pointer (see step 7).
    11 Touch-only: × visible without hover, box ≥ 44×44 SKIP Needs a touch-only pointer (see step 7).
    12 Touch-only: notebook row exactly 44 px, × at right edge SKIP Needs a touch-only pointer (see step 7).
    13 Touch-only: neighbouring × boxes don't overlap SKIP Needs a touch-only pointer (see step 7).
    14 Touch-only: tap × box corner opens delete confirm SKIP Needs a touch-only pointer (see step 7).
    15 Mouse: delete the test notebook via × and Delete FAIL I did the step as written. The panel showed "Cannot delete notebook with notes. Move or delete notes first." and the notebook stayed (screenshot 12). The scenario's Setup leaves two notes in it. I then deleted both notes via ⋮ → Delete, hovered the notebook, clicked × and clicked Delete again. The panel warned "Trashed notes inside will be permanently deleted." and the notebook disappeared (screenshot 14).

    Summary: 5 PASS / 1 FAIL / 1 WARN / 8 SKIP.

    • Step 15 (FAIL): the app refuses to delete a notebook that still contains notes. That looks like a gap in the scenario's cleanup step (it never deletes the notes first), not a regression from the touch-target change, since the mouse-pointer path behaved as before. Once the notes were deleted, the delete worked.
    • Steps 7–14 (SKIP): none of the touch-only checks (44×44 px boxes, tap behaviour, 44 px notebook rows) were verified, so the core of this fix still needs a touch-capable run.

    Created / cleaned up: I created one notebook ("Touch Target NB factory-899-eff7c35 …") and two notes in it. Both notes went to Trash, and deleting the notebook then permanently deleted those two trashed notes. The notebook is gone from the list. I did not empty Trash or touch anything else. No tabs are left open.

    Screenshots

    Step 1 · PASS · Create notebook and select it

    Screenshot 3

    Step 2 · PASS · Two "Untitled" notes, first with an 80+ character title

    Screenshots (2) Screenshot 6 Screenshot 7

    Step 4 · PASS · Click ⋮ opens menu under the button

    Screenshot 8

    Step 5 · WARN · Mouse: hover notebook row shows ×

    Screenshot 9

    Step 6 · PASS · Click × opens confirm; Cancel keeps notebook

    Screenshot 10

    Step 15 · FAIL · Mouse: delete the test notebook via × and **Delete**

    Screenshots (2) Screenshot 12 Screenshot 14

    Other screenshots

    Screenshots (6) Screenshot 1 Screenshot 2 Screenshot 4 Screenshot 5 Screenshot 11 Screenshot 13

    Local evidence stays on the Mac mini (the repo is public): Repo & API /Volumes/DraftoFactory/drafto-factory/logs/factory/verify/899-eff7c3550eec-20261122T224024Z.

    Web screenshots are published in this report (ADR-0096): they show the dev test account on dev data. The rest of the Web lane's evidence stays on the Mac mini: /Volumes/DraftoFactory/drafto-factory/logs/factory/browser/issue-899-eff7c3550eec-verify-20261122T234042.

  7. JakubAnderwald commented on Nov 23, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 PR #915 conflicts with main.

    Moving the card from In Test back to In Review: the factory merges main into the branch and resolves the conflicts there. It comes back to In Test with a fresh preview, so there's no point testing this version further.

  8. added
    status:in-review
    and removed
    status:in-test
    on Nov 23, 2026
  9. 13 remaining items

  10. added
    status:blocked
    status:testing
    and removed
    status:in-review
    status:blocked
    on Nov 30, 2026
  11. JakubAnderwald commented on Dec 1, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Test scenario — verifying now (Testing).

    On a touch-only pointer (@media (hover: none)), the note-row ⋮ and the notebook-row × are now 44×44 px tap targets (they were 28×28 px and about 18×18 px) with the icons kept small, and the note menu opens below the larger ⋮; you're checking that, and that a pointer that can hover keeps today's small buttons.

    The factory is verifying the change now, and the card moves to In Test with a verification report when that's done, so you can start now or wait for the report.

    How to get a build

    Web only. Open the Vercel preview: https://drafto-git-factory-issue-899-jakubanderwalds-projects.vercel.app (PR #915, head 3635faebaf41). It sits behind Vercel Authentication, so a browser signed in to Vercel opens it. A phone or tablet needs the same Vercel sign-in. Nothing native is involved.

    Test scenario

    A desktop browser with a mouse reports (hover: hover), so it can only show that the hover layout is unchanged (steps 3–6). Steps 7–14 need a touch-only pointer: a real phone or tablet, or Chrome DevTools' device toolbar on a touch device such as iPhone 13, Pixel 5 or iPad (turn it on, then reload the page so (hover: none) is evaluated). A step that needs a touch-only pointer comes back SKIP in a desktop-only run.

    Web

    Setup

    1. Sign in with the test account and open /. Click New notebook (+ in the Notebooks header), type Touch Target NB With A Name Long Enough To Truncate In The Sidebar 1, press Enter. Expected: the notebook appears in the list and is selected. On a phone, tap Back to notebooks to see the list again.
    2. Open that notebook and click New note (+ in the Notes header) twice. On a phone each new note opens the editor, so tap Back to notes after each. Expected: two rows titled "Untitled" in the Notes list. Give the first note a title of 80+ characters (for example 90 letters of "long title ") so it has to truncate; on a phone, go back to the list afterwards.

    Mouse pointer — must look and behave as before

    1. With a mouse, hover the first note row. Expected: the ⋮ button (aria-label "Actions for …") fades in at the row's top-right corner, about 28×28 px (select it in DevTools → Elements to read the size), 8 px from the row's top and right edges. The long title truncates with an ellipsis before the ⋮.
    2. Click the ⋮. Expected: a menu with Delete opens just under the button (about 32 px below the row's top edge); if the account has another notebook, Move to... is listed too. Press Escape to close it.
    3. Hover the notebook row from step 1. Expected: the × (aria-label "Delete Touch Target NB …") fades in on the right of the row. It is a small button (14 px icon, about 18×18 px) and the row is about 32 px tall; the notebook name truncates with an ellipsis before it.
    4. Click the ×. Expected: a confirm dialog titled Delete "Touch Target NB …"? opens. Click Cancel. Expected: the dialog closes and the notebook is still in the list.

    Touch-only pointer — note rows

    1. Open the notebook's note list. Expected without any hover: the ⋮ is visible on both rows, with the same three-dot glyph in the same spot (the icon's centre is 22 px from the row's top and right edges, as before). Select the button (DevTools → Elements, or inspect it from the device toolbar) and read its box. Expected: at least 44×44 px. To see the old size, compare with a note list on drafto.eu, which still serves the old build: its ⋮ box reads 28×28 px.
    2. Compare the two rows' ⋮ boxes. Expected: the boxes don't overlap, and the first one ends inside its own row (the row is about 54 px tall; the second row's box starts about 12 px below the end of the first). The long title of the first note ends before the ⋮ box's left edge and is truncated with an ellipsis, not running under the ⋮.
    3. Tap the first ⋮'s box near its top-left corner, well away from the dots (about 4 px in from the corner). Expected: the menu with Delete opens, and the view doesn't switch to that note (on a phone you stay on the Notes list instead of landing in the editor). Before the fix, a tap there fell on the row and opened the note.
    4. With the menu open, look at where it sits. Expected: the menu starts where the ⋮ box ends (both edges are 44 px below the row's top edge) or lower, so no part of the menu covers the ⋮. Then tap the same ⋮ again, low in its box: horizontally centred, about 4 px above its bottom edge. Expected: the menu just closes. Both notes are still in the list (nothing was deleted or moved), and the view doesn't switch to another note (on a phone you stay on the Notes list).

    Touch-only pointer — notebook rows

    1. Open the Notebooks list (phone: Back to notebooks; tablet: the sidebar). Expected without any hover: the × is visible on every notebook row, including the long-named one. Read the × button's box. Expected: at least 44×44 px, also on the long-named notebook (its name truncates with an ellipsis and the × does not get narrower). The × glyph itself is still the small one.
    2. Check the row's height and the × position. Expected: each notebook row is exactly 44 px tall (it was about 32 px), the × box ends at the row's right edge, and the × glyph sits about 5 px further left than on a mouse pointer (its centre is about 22 px from the row's right edge, against about 17 px with a mouse). Fewer notebooks per screen than before is expected.
    3. Compare the × boxes of two neighbouring notebook rows. Expected: the boxes don't overlap (the rows are 2 px apart). Create a second notebook if only one exists, and leave it empty.
    4. Tap the long-named notebook's × box near a corner, away from the glyph. Expected: the confirm dialog Delete "Touch Target NB …"? opens and the notebook is not opened or selected behind it. Tap Cancel. Expected: the notebook is still in the list.

    Cleanup

    1. On the mouse pointer again, open the test notebook. Delete both of its notes first, because the app won't delete a notebook that still has notes: on each row, hover it, click ⋮, then Delete. Expected: each row leaves the list (the note moves to Trash).
    2. Hover the test notebook and click its ×. Expected: the confirm dialog also says "Trashed notes inside will be permanently deleted." Click Delete. Expected: the notebook disappears from the list. If you created a second notebook in step 13, delete it with its × too.

    What failure looks like (web): on a touch-only pointer the ⋮ reads 28×28 px or the × reads about 18×18 px; a tap in the corner of the ⋮ area opens the note instead of the menu; the open menu covers the lower part of the ⋮, so the second tap in step 10 hits Delete and the note leaves the list; a long title runs under the ⋮; the long-named notebook's × is squeezed narrower than 44 px; neighbouring boxes overlap. On a mouse pointer, any size or position change from steps 3–6 (for example a 44 px ⋮ or a 44 px tall notebook row) is a regression.

    What isn't manually testable

    • The class names the change adds are asserted in jsdom by apps/web/__tests__/integration/note-list.test.tsx and apps/web/__tests__/integration/notebooks-sidebar.test.tsx. jsdom applies no CSS, so those tests only prove the classes are there.
    • The layout checks live in apps/web/e2e/responsive.spec.ts, in the "touch row actions" describe. For note rows they cover: at least 44×44 px, no overlap, the first ⋮ inside its own row, the title ending before the ⋮, a tap in the corner opening the menu, and the menu opening below the ⋮. For notebook rows they cover: at least 44×44 px and no overlap beside a long, truncated name. The second tap in step 10 isn't automated there. These tests run only on a project where (hover: none) matches, so which of Mobile Chrome, Mobile Safari and Tablet ran or skipped is in the CI log. A real iPhone or iPad in Safari is the only manual check of WebKit on a real device.
    • A touchscreen laptop with a mouse reports (hover: hover) and keeps the small buttons, as before; that is out of scope for this issue.

    Drag the card to Approved to merge and ship, or comment what you want changed and the factory revises on the same PR branch.

  12. added
    status:in-test
    and removed
    status:testing
    on Dec 1, 2026
  13. JakubAnderwald commented on Dec 1, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Verification before In Test

    Verdict: INCOMPLETE for 3635faebaf41 (PR #915): no verification lane reported a result.

    Evidence, not a gate: the card is now In Test.

    Lane Status Verdict Note
    Repo & API (shell) skipped — skipped: new feedback on the issue cut verification short
    Web (browser) skipped — skipped: new feedback on the issue cut verification short
    iOS / Android not affected — no mobile changes
    macOS not affected — no macOS changes

    Assessment

    No lane reported a result.

    Steps for you to do manually

    1. Run the Web steps in the test scenario by hand on the preview: the browser lane didn't report (skipped: new feedback on the issue cut verification short).

    Coverage gaps

    • Repo & API (shell): skipped: new feedback on the issue cut verification short.
    • Web (browser): skipped: new feedback on the issue cut verification short.
  14. added
    status:in-progress
    and removed
    status:in-test
    on Dec 1, 2026
  15. JakubAnderwald commented on Dec 1, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Revising — picking up your feedback.

    A code change goes onto the open PR's branch and comes back through In Review to In Test with the preview redeployed. Each comment that asks for something gets its own reply here, saying what changed or answering it. (To ship as-is instead, drag the card to Approved.)

  16. added
    status:in-test
    and removed
    status:in-progress
    on Dec 1, 2026
  17. JakubAnderwald commented on Dec 1, 2026

    @JakubAnderwald
    OwnerAuthor

    Re: #899 (comment)

    🏭 Both blocks were SonarCloud CI failures, not problems in the touch-target change. Neither applies any more: on the current head 3635faeb every required check is green, SonarCloud's quality gate is OK and the PR merges cleanly. I changed no code. The card goes back to In Test on this head, and the only thing left is the touch check on a real phone or tablet.

    Why it was blocked

    When (UTC) What happened
    11-23 11:57 PR #915 conflicted with main, so the factory moved the card back to In Review and merged main into the branch (45b12f54).
    11-23 13:12 First block. SonarCloud run 45171156594 on 45b12f54 failed before it analysed anything: Something went wrong while trying to get the pullrequest with key '915': Illegal base64 character 2d. That's an error on SonarCloud's side. The factory only re-runs checks that were cancelled or timed out, so it parked the card. It posted the reason on the PR (comment, "Factory watcher: blocked on an outside-service failure"), not on this issue, which is why you couldn't see it here.
    11-30 17:22 You dragged the card out of Blocked. It went through Testing and In Test, then back to In Review because of your comment.
    11-30 ~18:00 The watcher re-ran SonarCloud twice on 45b12f54 (attempt 3 of the same run). This time the scan ran but the job ended ✖ Quality Gate has FAILED.
    11-30 18:09 Second block. A fix pass found nothing in the code to change and ended noop, so the factory put the card in Blocked with the "CI is still red… fix agent found nothing to change" comment above.

    The job log for the second failure doesn't say which quality-gate condition failed, and SonarCloud's task details need a login, so I couldn't confirm the cause. My best guess: a re-run uses the original run's commit, the 11-23 test-merge of the PR into main, so that week-old code was scored against SonarCloud's newer main. The fresh scan on the next commit passed. Either way, the gate on the current head is OK.

    What happened after that

    These two commits were pushed before this run. I didn't make them.

    What I checked on 3635faeb

    Check Result
    Required CI checks (run 46541840886) All green: Lint & Typecheck, Unit & Integration, E2E (163 passed, 18 skipped by viewport-gated describes, 0 failed), Mobile, Desktop, Scripts, SonarCloud
    SonarCloud quality gate, PR 915 OK: new-code coverage 100%, 0% duplication, reliability, security and maintainability all A, hotspots 100% reviewed
    PR #915 mergeability MERGEABLE, merge state CLEAN
    Review threads 1 thread, resolved (the CodeRabbit CLI note on notes.spec.ts)
    Factory code review at 3635fae 0 findings
    CodeRabbit CLI at 3635faeb no findings
    vitest run __tests__/integration/note-list.test.tsx __tests__/integration/notebooks-sidebar.test.tsx (run here in this session) 2 files, 109 tests passed

    Not checked: I didn't run the browser steps of the In Test scenario, because they need a person with a phone or tablet. The verification report for 3635faeb came back INCOMPLETE because your comment cut it short, so no touch step has been checked on that commit yet.

    Steps for you

    1. Open the preview (https://drafto-git-factory-issue-899-jakubanderwalds-projects.vercel.app, head 3635faeb) on a real phone or tablet, or in Chrome DevTools' device toolbar with an iPhone, Pixel or iPad selected (reload after turning it on), and run steps 7–14 of the test scenario above. Each ⋮ and × should be a box of at least 44×44 px, neighbouring boxes shouldn't overlap, and a tap near a box's corner should open the menu or the delete confirmation.
    2. With a mouse, check that steps 3–6 look the same as before.
    3. If it looks right, drag the card to Approved to merge.

    Not part of this card: when a CI block's reason goes only on the PR, it's easy to miss. A follow-up issue could have the factory post it on the issue as well.

  18. JakubAnderwald commented on Dec 1, 2026

    @JakubAnderwald
    OwnerAuthor

    🏭 Browser run — web steps on the preview.

    Verdict: PASS for 3635fae. This report never moves the card; it stays in In Test either way.

    I ran this against https://drafto-e6f6817ft-jakubanderwalds-projects.vercel.app/, signed in as the factory's dedicated test account, in desktop Chrome with a mouse. The browser reported a fine pointer, hover support and 0 touch points. The 44 px touch targets, which this issue is about, were not tested. Sizes below are in CSS px.

    # Step Result Evidence
    1 Create the long-named notebook PASS It appeared at the top of the list and was selected (screenshot 4). I added the QA tag to the end of the name.
    2 Create two notes and give one a long title PASS Two "Untitled" rows appeared (screenshot 5). I gave the first a title over 80 characters, including the QA tag, and it was cut off in the list (screenshot 6). I then renamed the second to "Untitled factory-899-3635fae" to tag it (screenshot 7).
    3 Mouse: hover a note row PASS Without hover, no ⋮ showed (screenshot 7). On hover it appeared at the top right (screenshots 8 and 9). It measured 28×28, 8 from the row's top and right edges, with opacity 1 against 0 on the other row. The title ended in an ellipsis, with its box ending 4 before the button.
    4 Mouse: click ⋮, then Escape PASS The menu showed Delete and Move to... (screenshot 10). Its top was 32 below the row's top, as the step states. At that position it covers the bottom 4 of the button, which ends at 36. Escape closed it, and both notes remained (screenshot 11).
    5 Mouse: hover the notebook row PASS The × appeared on the right (screenshots 12 and 13). The button was 18×18 with a 14 icon, and the row was 32 tall. The icon's centre was 17 from the row's right edge. The name was cut off with an ellipsis before the note count and ×.
    6 Mouse: click ×, then Cancel PASS A dialog titled Delete "Touch Target NB … factory-899-3635fae"? opened (screenshot 14). Cancel closed it, and the notebook stayed in the list (screenshot 15).
    7 Touch: ⋮ visible and at least 44×44 SKIP This needs a touch-only pointer. This run had only a mouse and no device toolbar or touch emulation. I also didn't compare with drafto.eu, which is another site.
    8 Touch: ⋮ boxes don't overlap, title stops before them SKIP Needs a touch-only pointer.
    9 Touch: tap the corner of the ⋮ box SKIP Needs a touch-only pointer.
    10 Touch: menu position and second tap SKIP Needs a touch-only pointer.
    11 Touch: × visible and at least 44×44 SKIP Needs a touch-only pointer.
    12 Touch: 44 row height and × position SKIP Needs a touch-only pointer.
    13 Touch: neighbouring × boxes don't overlap SKIP Needs a touch-only pointer. I didn't create a second notebook, as the account already had others.
    14 Touch: tap the corner of the × box SKIP Needs a touch-only pointer.
    15 Mouse: delete both notes PASS Each row left the list after ⋮ then Delete (screenshots 16–18). The notebook then showed "0 notes" and an empty list (screenshot 19).
    16 Mouse: delete the test notebook PASS The dialog added "Trashed notes inside will be permanently deleted." (screenshot 20). After Delete, the notebook was gone from the list (screenshot 21).

    Summary: 8 PASS / 0 FAIL / 0 WARN / 8 SKIP.

    • What the passes cover: setup, mouse behaviour (steps 3–6, which matched the stated sizes and positions) and cleanup.
    • Still to check: someone needs to run steps 7–14 on a touch device or with DevTools touch emulation.
    • Markup only, not a test result: the buttons have classes that apply only under (hover: none).
      • Note ⋮: these set 44×44 size (h-11 w-11), zero top and right offsets, and full opacity. The note row also gets wider right padding (pr-12).
      • Notebook ×: these set 44×44 size, no shrinking and full opacity.
      • Limits: I didn't see these styles applied. A separate attempt to read the stylesheet rules had its output blocked by the browser tool, and I didn't retry it.

    Test data: I created one notebook and two notes. I moved both notes to Trash in step 15. Deleting the notebook in step 16 then removed it, and the dialog said this would also permanently delete the trashed notes inside. I didn't open Trash to confirm that. I didn't empty Trash or change any other notebook, and I closed my tab.

    Screenshots

    Step 1 · PASS · Create the long-named notebook

    Screenshot 4

    Step 2 · PASS · Create two notes and give one a long title

    Screenshots (3) Screenshot 5 Screenshot 6 Screenshot 7

    Step 3 · PASS · Mouse: hover a note row

    Screenshots (2) Screenshot 8 Screenshot 9

    Step 4 · PASS · Mouse: click ⋮, then Escape

    Screenshots (2) Screenshot 10 Screenshot 11

    Step 5 · PASS · Mouse: hover the notebook row

    Screenshots (2) Screenshot 12 Screenshot 13

    Step 6 · PASS · Mouse: click ×, then Cancel

    Screenshots (2) Screenshot 14 Screenshot 15

    Step 15 · PASS · Mouse: delete both notes

    Screenshots (4) Screenshot 16 Screenshot 17 Screenshot 18 Screenshot 19

    Step 16 · PASS · Mouse: delete the test notebook

    Screenshot 20

    Other screenshots

    Screenshots (3) Screenshot 1 Screenshot 2 Screenshot 3

    Kept on the Mac mini (not published):

    • screenshot 21, over the per-comment cap (20 images / 20 MB): /Volumes/DraftoFactory/drafto-factory/logs/factory/browser/issue-899-3635faebaf41-20261201T015451/evidence/screenshot-1796086758159-20.jpg

    Screenshots are published with this report (ADR-0096): they show the dev test account on dev data. Local copies and the runner's output: /Volumes/DraftoFactory/drafto-factory/logs/factory/browser/issue-899-3635faebaf41-20261201T015451/evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:in-test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions