Skip to content

[2938 by Claude Opus 5.5] Resolve repeatable WebKit activity-tooltip caret geometry failure - #2939

Merged
integry merged 2 commits into
mainfrom
2938/claude-opus-5-5-resolve-repeatable-webkit-20261010-0045-0bc
Oct 10, 2026
Merged

integry merged 2 commits into
mainfrom
2938/claude-opus-5-5-resolve-repeatable-webkit-20261010-0045-0bc

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2938

Branch: 2938/claude-opus-5-5-resolve-repeatable-webkit-20261010-0045-0bc
Commits: ✅ Changes committed (41a6251)


AI Processing Completed

Execution Details:

Summary:
I fixed the tooltip caret in the activity chart so it stands 1px clear of the bar instead of landing exactly on it. Everything passes in Chromium, but I couldn't run the failing test in WebKit: it installed but won't start in this environment because system libraries are missing and there's no root access. The WebKit pass is a prediction, so it needs confirming in the pinned Playwright 1.62.1 noble image.

Cause. The code places the card bottom 6px above the bar. The caret is turned 45°, and its lowest point sits 6px below its centre. That centre lands on the card's bottom edge (1px of border plus the 5.24px offset). So the design puts the caret tip exactly on the bar top, with zero margin. Measured in Chromium with the unchanged test, the tip is only 0.017px above the bar (419.79 vs 420.81 after the fix, 420.79 before). WebKit rounds the card or the turned caret slightly differently and ends up 0.083px into the bar. Neither engine is wrong.

Fix (propr-ui/src/components/ActivitySparkline.tsx only):

  • New CARET_GAP = 1: the tooltip card is placed at y - CARET_GAP - CARET_SIZE - height, so the tip is now 1.017px above the bar in Chromium. That leaves about 0.93px of margin over the 0.083px WebKit drift seen in the issue.
  • Headroom: CARD_CLEARANCE now includes the gap, so the space reserved above the tallest bar accounts for it. The tooltip still stays inside the chart, below the legend. The Tuesday example still tops out at 700.
  • Comment: I corrected the CARET_SIZE comment. It had said this was the caret's distance from the bar; it's actually the card's distance from the caret tip.

Tests. I left e2e/analytics-timeframe.pw.ts untouched: no looser assertion, no retries, no skipped WebKit run. Both checks still apply: the tip must be at or above the bar top, and within 6px of it. Any real overlap still fails.

Results:

  • All 15 browser tests in e2e/analytics-timeframe.pw.ts pass in Chromium, with retries off. These include the paired-runs test, the hourly/weekly views, the 390px and 1440px widths, and the inside-chart/below-legend check.
  • The ActivitySparkline and Analytics component tests pass (37 tests).
  • tsc --noEmit and eslint on the changed files are clean.

I made no preview images, because a 1px shift isn't visible to a user.

Detailed Logs:

  • Conversation: 46 messages
  • Session: cae539eb-81b5-47f2-a422-9df1e3c4af96

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2938-2026-10-10T00-50-26-205Z-conversation.json
  • output: /tmp/claude-logs/issue-2938-2026-10-10T00-50-26-205Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I fixed the tooltip caret in the activity chart so it stands 1px clear of the bar instead of landing exactly on it. Everything passes in Chromium, but **I couldn't run the failing test in WebKit**: it...


This PR was created automatically by ProPR after processing issue #2938.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…r of the bar instead of landing exactly on it. Everything passes in Chromium, but I couldn't run the failing test in WebKit: it installed but won't start in this environment because system libraries are missing and there's no root access. The WebKit pass is a prediction, so it needs confirming in the pinned Playwright 1.62.1 noble image.

Cause. The code places the card bottom 6px above the bar. The caret is turned 45°, and its lowest point sits 6px below its centre. That centre lands on the card's bottom edge (1px of border plus the 5.24px offset). So the design puts the caret tip exactly on the bar top, with zero margin. Measured in Chromium with the unchanged test, the tip is only 0.017px above the bar (419.79 vs 420.81 after the fix, 420.79 before). WebKit rounds the card or the turned caret slightly differently and ends up 0.083px into the bar. Neither engine is wrong.

Fix (`propr-ui/src/components/ActivitySparkline.tsx` only):
- New `CARET_GAP = 1`: the tooltip card is placed at `y - CARET_GAP - CARET_SIZE - height`, so the tip is now 1.017px above the bar in Chromium. That leaves about 0.93px of margin over the 0.083px WebKit drift seen in the issue.
- Headroom: `CARD_CLEARANCE` now includes the gap, so the space reserved above the tallest bar accounts for it. The tooltip still stays inside the chart, below the legend. The Tuesday example still tops out at 700.
- Comment: I corrected the `CARET_SIZE` comment. It had said this was the caret's distance from the bar; it's actually the card's distance from the caret tip.

Tests. I left `e2e/analytics-timeframe.pw.ts` untouched: no looser assertion, no retries, no skipped WebKit run. Both checks still apply: the tip must be at or above the bar top, and within 6px of it. Any real overlap still fails.

Results:
- All 15 browser tests in `e2e/analytics-timeframe.pw.ts` pass in Chromium, with retries off. These include the paired-runs test, the hourly/weekly views, the 390px and 1440px widths, and the inside-chart/below-legend check.
- The `ActivitySparkline` and `Analytics` component tests pass (37 tests).
- `tsc --noEmit` and eslint on the changed files are clean.

I made no preview images, because a 1px shift isn't visible to a user.
@integry

integry commented Oct 10, 2026

Copy link
Copy Markdown
Owner

/review astra

Review exact head41a6251f6a3cc1721be513e2c1fea0783bc96e7b against issue2938. This is one production component change: the tooltip now reserves1CSSpx between its rotated caret tip and the bar, with matching chart headroom. The canonical analytics browser assertions are unchanged. Inspect tooltip anchoring, clamp/top-edge behavior, card clearance and narrow/desktop geometry, and identify any actual regression rather than inferring success from the author's predicted WebKit pass. Independent WebKit/Chromium validation is being prepared separately against this exact source.

@propr-dev

propr-dev Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The change is narrowly scoped and internally consistent with issue #2938. No regression is evident from the supplied diff, but merge readiness remains unconfirmed until the browser-specific fix is independently validated at head 41a6251f6a3cc1721be513e2c1fea0783bc96e7b.

✅ Matching clearance — ActivitySparkline.tsx adds the same 1 CSS px to tooltip separation and reserved headroom, accounting for the card’s upward movement.

✅ Preserved anchoring — Horizontal positioning, edge clamping, caret centring, and pointer pass-through remain unchanged. The vertical position still clamps at the chart’s top edge.

✅ Consistent responsive geometry — Static calculation for the supplied 571-run fixture preserves ceilings of 700 at the desktop chart height and 800 at the shorter height. Both provide room for the 42px card, 6px caret extension, and new 1px gap without top clamping.

This was a static review only; no commands or browser tests were run. The supplied current checks show no failures, with six checks pending. The author’s predicted WebKit result is not treated as verified.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Attach independent browser evidence

When the separately planned validation completes, attach exact-head WebKit and Chromium results using the unchanged canonical assertions, including narrow and desktop geometry. Recording measured caret separation and card containment would make the browser-specific outcome directly reviewable. This is an evidence follow-up, not a requested implementation change or additional test requirement.

Score

The implementation appears correct and introduces no demonstrated regression. However, the central WebKit geometry outcome remains a material verification gap, so I cannot yet call the PR merge-ready.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 1s
  • Tokens: 28,840 (28,169 in / 671 out)
  • Cost: $0.20

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@integry

integry commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Independent exact-head validation at41a6251f6a3cc1721be513e2c1fea0783bc96e7b: clean locked install and canonical dependency preparation/UI build pass;18 existing ActivitySparkline and AnalyticsPage tests plus2Docker-context tests pass; UI typecheck/lint pass. Chromium passes all15 unchanged analytics-timeframe browser tests with0retry/skip.

WebKit passes14/15. The original caret overlap assertion atline420 now passes, confirming the1px geometry repair. The same test then fails atline430: tooltip toHaveCSS('user-select','none') receives an empty value. Compiled .select-none contains -webkit-user-select:none;-moz-user-select:none;user-select:none. Please inspect effective WebKit selection behavior/prefixed computed property and make the canonical assertion accurately check the intended non-selectable tooltip while preserving pointer pass-through, caret clearance, containment and subsequent hover-sweep assertions. Do not skip tests, weaken the intended behavior or claim the full WebKit suite passed. No local production edits were made. Both engines ran the unchanged compiled UI and canonical test in pinned official Playwright1.62.1 containers with read-only source and isolated networking. Fresh exact-head independent validation/review will follow any update.

Additional independent diagnostic: on the same unchanged compiled UI, WebKit computes user-select as empty and -webkit-user-select as none. An external copy of the single canonical test, replacing only the unprefixed CSS assertion with an assertion of unprefixed || prefixed, passes all remaining original geometry, containment and hover-sweep assertions (1passed,0retry/skip). This is diagnostic evidence, not a canonical suite pass; the original WebKit result remains14passed/1failed. No repository files were edited.

@propr-dev

propr-dev Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🛑 Execution Cancelled

The task processing was stopped by user request.

You can post a new comment to restart processing.

@propr-dev

propr-dev Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:70
Process completed with exit code 1.

.github:69
Shard coverage verification finished with result 'failure'.

.github:66
Full test suite shards finished with result 'cancelled'.

@propr-dev

propr-dev Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

No code change was needed: the test shards were cancelled partway through the run. No test failed, and this branch's code didn't cause it, so I left the code alone.

  • First attempt: shard 3/4 passed. Shards 1, 2 and 4 all stopped between 01:00:01 and 01:00:07 with "The operation was canceled", and every test they had run passed (# fail 0). The parallel Build & Lint check was cancelled at 01:00:02, the same moment. The final gate step (the job linked in the request) then reported "shards cancelled" and "coverage verification failure" as a result.
  • Second attempt (still running): shards 1–3 were cancelled again within 2 seconds of starting, before any tests ran. Only shard 4/4 is still going, so this run will likely fail the same way. The head commit is still 41a6251f6, so a new push didn't cause the cancellations. Something outside the code cancelled them, possibly a manual cancel or a concurrency rule. A clean rerun of Full Test Suite and Build & Lint should give a real result.

This also isn't the WebKit problem @integry reported, where toHaveCSS('user-select', 'none') returns an empty value at propr-ui/e2e/analytics-timeframe.pw.ts:430. CI runs these browser tests in Chromium only (propr-ui/playwright.config.ts sets browserName: 'chromium'), where that test passes. That WebKit failure is still open. It's outside this request, so I didn't touch it. I can fix it as a separate follow-up if you want, likely by checking the -webkit-user-select value that WebKit actually applies so the test still proves the tooltip can't be selected.

I didn't create previews because nothing visible changed.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 50s
  • Tokens: 440,924 (436,667 in / 4,257 out)
  • Cost: $0.34
  • Subscription usage: Session +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6091919440✓

@integry

integry commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Please queue the still-required WebKit assertion follow-up with the current PR task, preserving a single writer. The earlier selection task pr-comments-batch-integry-propr-2939-1791593973995 is authoritatively terminal/cancelled with no published source update; head remains41a6251. Current task1791594091690 is processing the automatically generated CI failure comment.

The original CI wrapper reports shard coverage failure because shards1/2/4 were CANCELLED (shard3 succeeded), not an observed failing test assertion. Inspect actual cancellation and task history before changing product code or weakening CI. Do not restart any run still live.

The actual independent browser failure and diagnostic are in comment6091911193: WebKit14/15, original geometry fixed, computed user-select empty but -webkit-user-select none. The external diagnostic changing only that assertion to test the effective standard-or-prefixed value passes the remaining canonical tooltip geometry/containment/hover sweep. Please implement the accurate browser-compatible canonical assertion without skips/retries or behavior weakening, then run it in both engines. Preserve the1px geometry fix. Fresh exact-head evidence and independent review will follow. No changes to credentials, grants, audit exceptions, or publication settings.

@propr-dev

propr-dev Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 1577b7a

Summary of Changes

I've changed only the tooltip's user-select assertion so WebKit can pass it, and it passes in Chromium. I couldn't run it in WebKit: the browser installs here but won't start because system libraries (GStreamer, GTK4, libxslt, libevent and others) are missing, and there's no root access to add them. The WebKit result still needs your exact-head run in the pinned Playwright 1.62.1 noble image.

The CI failure. I checked run 38010765966 before touching anything. It is already finished, with conclusion cancelled: all four shards and "Report Full Test Failure" show cancelled. Some checks display shards as "fail", but no test assertion failed, so it was an outside cancellation and not a code problem. Nothing was running, so I restarted nothing, and I didn't change any CI configuration.

The fix is in propr-ui/e2e/analytics-timeframe.pw.ts, at the old line 430. WebKit only sets the prefixed -webkit-user-select, so it reports the standard user-select as empty, which matches your diagnostic. I replaced toHaveCSS('user-select', 'none') with a check that reads the computed user-select, falls back to -webkit-user-select only when that is empty, and requires the result to be none.

  • Still strict: if neither property comes back none, the test fails. The check retries on its own (expect.poll), as toHaveCSS did.
  • Nothing else touched: the pointer-events: none check, the caret, containment and hover-sweep assertions, and the 1px geometry fix in ActivitySparkline.tsx are all as they were. No skips or retries were added, and product code is unchanged.

Checks run here:

  • Chromium: all 15 tests in analytics-timeframe.pw.ts pass with retries off, including the paired-chart test at line 347.
  • Typecheck and lint: the UI typecheck and ESLint on the changed file are clean.
  • WebKit: could not start, for the reason above.

I made no preview images, because this is a test-only change with nothing visible to a user.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 4m 30s
  • Tokens: 407,302 (403,991 in / 3,311 out)
  • Cost: $0.29
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6091946505✓

…WebKit can pass it, and it passes in Chromium. **I couldn't run it in WebKit**: the browser installs here but won't start because system libraries (GStreamer, GTK4, libxslt, libevent and others) are missing, and there's no root access to add them. The WebKit result still needs your exact-head run in the pinned Playwright 1.62.1 noble image.

I've changed only the tooltip's `user-select` assertion so WebKit can pass it, and it passes in Chromium. **I couldn't run it in WebKit**: the browser installs here but won't start because system libraries (GStreamer, GTK4, libxslt, libevent and others) are missing, and there's no root access to add them. The WebKit result still needs your exact-head run in the pinned Playwright 1.62.1 noble image.

**The CI failure.** I checked run 38010765966 before touching anything. It is already finished, with conclusion `cancelled`: all four shards and "Report Full Test Failure" show `cancelled`. Some checks display shards as "fail", but no test assertion failed, so it was an outside cancellation and not a code problem. Nothing was running, so I restarted nothing, and I didn't change any CI configuration.

**The fix** is in `propr-ui/e2e/analytics-timeframe.pw.ts`, at the old line 430. WebKit only sets the prefixed `-webkit-user-select`, so it reports the standard `user-select` as empty, which matches your diagnostic. I replaced `toHaveCSS('user-select', 'none')` with a check that reads the computed `user-select`, falls back to `-webkit-user-select` only when that is empty, and requires the result to be `none`.
- **Still strict:** if neither property comes back `none`, the test fails. The check retries on its own (`expect.poll`), as `toHaveCSS` did.
- **Nothing else touched:** the `pointer-events: none` check, the caret, containment and hover-sweep assertions, and the 1px geometry fix in `ActivitySparkline.tsx` are all as they were. No skips or retries were added, and product code is unchanged.

**Checks run here:**
- **Chromium:** all 15 tests in `analytics-timeframe.pw.ts` pass with retries off, including the paired-chart test at line 347.
- **Typecheck and lint:** the UI typecheck and ESLint on the changed file are clean.
- **WebKit:** could not start, for the reason above.

I made no preview images, because this is a test-only change with nothing visible to a user.

PR: #2939
Comment by: @integry (ID: 6091946505)
Model: Claude Opus 5.5
@integry

integry commented Oct 10, 2026

Copy link
Copy Markdown
Owner

/review astra

Review exact head1577b7ad00b15b346abb01f806c434089de858c5. The earlier review6091884441 was7/10 conditional on missing independent WebKit evidence. That gap is now resolved: independently, all15canonical analytics-timeframe tests pass in Chromium and all15pass in WebKit,0retries/0skips/0failures, in the pinned official Playwright1.62.1 noble image. This includes 390px/1440px1year/all-history chart geometry, the original caret clearance/card containment/hover pass-through assertions, selector widths and URL behavior.

Only delta since your reviewed41head is the canonical assertion for effective text selection: WebKit reports unprefixed user-select empty and prefixed -webkit-user-select none; the assertion now polls standard||prefixed and still requires none. No production geometry assertions, tests or testscope were skipped or relaxed. The production1pxcaret gap/matchingclearance is unchanged. Clean locked install/preparation/UIbuild,18existingcomponent/page tests plus2Docker-context tests, UItypecheck/lint passed at41; code/dependencies are byte-identical at157. Fresh canonicalbrowser runs used157testsource and identical compiled product, whose input hashes are recorded.

Inspect the final2filediff for actual regressions and confirm merge-readiness only conditionally on exact-head required CI; its4fullsuite shards and ValidateChanges are currently live. Do not treat prior cancellation coverage-wrapper failures as observed failing test assertions or infer live GitHub/user-installed acceptance from browser fixtures. This is review-only; no implementation or publication requested.

@propr-dev

propr-dev Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The two-file diff at 1577b7ad00b15b346abb01f806c434089de858c5 addresses the WebKit caret overlap with a localized geometry correction. No PR-introduced regression was found. Merge readiness is conditional on exact-head required CI completing successfully.

✅ Consistent tooltip clearance — ActivitySparkline.tsx adds the same 1px gap to tooltip placement and reserved chart headroom, preserving top-edge containment without changing horizontal anchoring or caret alignment.

✅ Selection assertion preserves intent — analytics-timeframe.pw.ts checks the standard computed property, falling back to the WebKit-prefixed property only when the standard value is empty. It still requires none; caret clearance, containment, and hover pass-through assertions remain intact.

✅ Browser verification gap resolved — The supplied independent validation reports all 15 canonical tests passing in both Chromium and WebKit, without retries or skips, including narrow and desktop long-history geometry.

This review statically traced the supplied diff and surrounding context; no commands or tests were run. Browser fixture results do not establish live GitHub or user-installed acceptance.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The correction is narrowly scoped, internally consistent, and supported by the reported independent browser validation. The authoritative current-head status has no failures, but six checks—including all four full-suite shards, Validate Changes, and JavaScript/TypeScript analysis—remain pending, so merge approval remains conditional on required CI passing.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 4s
  • Tokens: 35,704 (35,290 in / 414 out)
  • Cost: $0.26

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

🤖 Review by ProPR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve repeatable WebKit activity-tooltip caret geometry failure

1 participant