Repository navigation
fix(gui): prevent blank scrolling past the Usage report (carry #6089) - #6218
Conversation
Absolutely positioned screen-reader captions escaped the capped table's overflow and enlarged the outer document, allowing scrolling into blank space after the Usage report ended. Establish the table scrollport as their containing block and cover long and short tables at desktop and mobile widths.
|
✅ Deterministic PR hygiene checks passed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe Usage table wrapper now contains absolutely positioned screen-reader captions within its scrollable area. Source-level and browser tests check scroll boundaries, last-row reachability, and caption presence across short and long tables at desktop and mobile widths. ChangesUsage table scroll containment
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The Usage table containment change is mergeable after normal checks; no actionable scroll-boundary issue remains identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue Resolution Fix Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 66 / 80사용량 화면에서 모델 표를 끝까지 내린 뒤에도, 페이지 아래에 큰 빈 칸이 남습니다. 캐시 적중률 칸에 눈에는 안 보이고 소리로만 읽어 주는 설명( 내용은 기여자 PR #6089의 세 커밋을 현재 라인 - 라인 - #6089 — 같은 고침의 원본 드래프트가 아직 열려 있습니다. 이 캐리가 Closes #6089를 걸었으니, 머지 전후에 원본을 superseded로 닫아 중복을 없애면 됩니다. 라인 - 메인테이너의 판단이 필요한 지점 happy-dom은 화면 배치를 재지 못해서, CI에는 글자 계약만 남고 빈 칸 측정은 수동 bsk 스크립트에만 있습니다. 그 한계를 알고 받을지, 아니면 나중에 Playwright 같은 CI 기하 검사로 올릴지. 또 #6089 드래프트를 이 캐리 머지와 함께 닫을지. 너의 추천 고치는 방향이 맞고 범위도 작습니다. base 이 댓글은 grok-bot이 작성했습니다 |
Summary
Carries #6089 by @fflake33 onto current
dev: scrolling past the end of the Usage report no longer opens a large empty page.The cache-hit-rate explanations from #5333 are absolutely positioned
sr-onlyspans inside the capped models table. With no positioned ancestor inside that scrollport, their overflow extended the outer document (about 1,335 CSS px on the reported page)..usw-section .tbl-wrapnow getsposition: relative, so the captions stay inside the table's own scroll area; screen-reader text, internal table scrolling and last-row reachability are unchanged.gui/src/styles-usage-workspace.css: the containing block.gui/tests/usage-scroll-containment.test.ts: CI guard for the rule;gui/tests/usage-scroll-browser.ts: explicitly invoked real-browser geometry regression (happy-dom does no layout).gui/tests/usage-custom-range.test.tsx: teardown restores global property descriptors.structure/dashboard-and-usage.md: containment contract.The three source commits are cherry-picked unchanged with their original author; the merge commit that refreshed the fork branch is dropped. #6089 stayed in draft on its contributor readiness checklist and its fork CI needed maintainer approval, so this maintainer carry replaces it.
Screenshots
Synthetic fixture with the repository's real stylesheets, from #6089 (no user data).
Before: the document scrolls about 946px beyond the report.
After: scrolling stops at the report boundary; the table still scrolls internally.
Verification
cd gui && bun test tests/usage-layout.test.ts tests/usage-custom-range.test.tsx tests/usage-scroll-containment.test.ts: 44 pass / 0 fail on this branch.cd gui && bun run lintandbun run build: pass (existing large-chunk warning only).bun run typecheck,bun run structure:check,bun run privacy:scan: pass.gui/tests/usage-scroll-browser.ts) needs a live browser session and was not rerun here; on fix(gui): prevent blank scrolling past the Usage report #6089's head the author reported 4/4 at 1280px and 390px with 0px excess scroll, and the production CSS is identical.Checklist
Closes #6089
Co-authored-by: Jian Gong fflake33@icloud.com
Summary by CodeRabbit