Skip to content

Resolve repeatable WebKit activity-tooltip caret geometry failure #2938

Closed

Description

@integry

Release validation on current main 676aecd, as integrated into PR #2905 head ccded4b, finds a reproducible WebKit geometry contract failure in the activity chart. Both propr-ui/src/components/ActivitySparkline.tsx and propr-ui/e2e/analytics-timeframe.pw.ts are unchanged between that main and PR head, so please fix this in a narrowly scoped PR against main, independently of the assignment-gate fix underway in #2905.

Actual original browser assertion: analytics-timeframe.pw.ts:347, “runs and tasks share one chart: each day pairs its runs and tasks side by side”, fails at line420 expect(tip.bottom).toBeLessThanOrEqual(tuesday.top).

The full WebKit run failed once, and a focused diagnostic then ran the exact unchanged test independently three times (--repeat-each=3, retries0) in the pinned official Playwright1.62.1 noble tool image. All three runs fail identically: bar top420.8056945800781 CSSpx; rotated tooltip caret bottom420.88873291015625 CSSpx. The difference is0.083038330078125 CSSpx. Chromium passed this test. This is a small, repeatable geometry/precision mismatch; do not overstate it as a large visible overlap.

Inspect AnchoredTooltip in ActivitySparkline.tsx: the card uses y - CARET_SIZE - height, and the rotated square caret has a border and fractional offsets. Correct the cross-engine anchoring/geometry consistently with the intended caret-above-bar and chart-boundary constraints. If an assertion precision correction is justified instead, explain the actual coordinate contract and prove it still catches meaningful overlap; do not simply suppress the failure, skip WebKit, or add retries.

Acceptance: the unchanged behavior contract remains true in Chromium and WebKit; targeted paired-series, hourly/weekly and narrow390px/desktop1440px analytics checks pass, including the tooltip staying inside the chart below its legend. Run relevant UI types/lint and component tests. Keep the change limited to this chart and necessary tests. No credential/configuration copying, grants, release/version/policy changes, publication or deployment. A final independent exact-head review and validation will follow.

Activity

  1. propr-dev commented on Oct 10, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2938/claude-opus-5-5-resolve-repeatable-webkit-20261010-0045-0bc
    • Base Branch: main
    • Worktree: issue-2938-20261010-0045-claude-opus-5-5-0bc

    🔍 Track Task Execution

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions