Repository navigation
[2938 by Claude Opus 5.5] Resolve repeatable WebKit activity-tooltip caret geometry failure - #2939
Conversation
…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.
|
/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. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — astraOverall EvaluationThe 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 ✅ Matching clearance — ✅ 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Attach independent browser evidenceWhen 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. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
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. |
|
🛑 Execution Cancelled The task processing was stopped by user request. You can post a new comment to restart processing. |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryNo 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.
This also isn't the WebKit problem @integry reported, where I didn't create previews because nothing visible changed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
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. |
|
✅ Applied the requested follow-up changes in commit 1577b7a Summary of ChangesI've changed only the tooltip's The CI failure. I checked run 38010765966 before touching anything. It is already finished, with conclusion The fix is in
Checks run here:
I made no preview images, because this is a test-only change with nothing visible to a user. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…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
|
/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. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — astraOverall EvaluationThe two-file diff at ✅ Consistent tooltip clearance — ✅ Selection assertion preserves intent — ✅ 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe 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
🤖 Review by ProPR |
AI Implementation Summary
Closes #2938
Branch:
2938/claude-opus-5-5-resolve-repeatable-webkit-20261010-0045-0bcCommits: ✅ 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.tsxonly):CARET_GAP = 1: the tooltip card is placed aty - 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.CARD_CLEARANCEnow 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.CARET_SIZEcomment. 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.tsuntouched: 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:
e2e/analytics-timeframe.pw.tspass 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.ActivitySparklineandAnalyticscomponent tests pass (37 tests).tsc --noEmitand eslint on the changed files are clean.I made no preview images, because a 1px shift isn't visible to a user.
Detailed Logs:
cae539eb-81b5-47f2-a422-9df1e3c4af96Log files stored at:
/tmp/claude-logs/issue-2938-2026-10-10T00-50-26-205Z-conversation.json/tmp/claude-logs/issue-2938-2026-10-10T00-50-26-205Z-output.txtLatest Conversation Messages
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!