fix(renderers): align numeric table cells with headers - #1051
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. 📝 WalkthroughWalkthroughThe PNG table renderer now right-aligns data cells when their columns use right-aligned headers. Tests validate draw coordinates and rendered PNG pixels for both renderers and multiple formatting profiles. ChangesNumeric table cell alignment
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Numeric cells now align with their right-aligned headers, with regression coverage for formatting variants and rendered output. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
Workflow state fingerprint for Keepalive Loop Reporter. Do not edit. |
🤖 Keepalive Loop StatusPR #1051 | Agent: Claude | Iteration 1/12 Current State
Last Claude Run
Claude output:
🧠 Task Analysis| Provider | 🔶 Regex (fallback) |
|
Keepalive Work Log (click to expand)
|
|
Workflow state fingerprint for Agents Gate Followups. Do not edit. |
|
Autofix attempts exhausted for this head. Latest Gate summary: Please investigate manually. |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
Pull request overview
Aligns numeric PNG table cells with right-aligned headers while preserving counterparty name alignment.
Changes:
- Applies rendered-width positioning to numeric cells.
- Adds coordinate and decoded-PNG regression tests.
File summaries
| File | Summary |
|---|---|
tests/renderers/test_table_png.py |
Verifies alignment coordinates and rendered pixels. |
src/counter_risk/renderers/table_png.py |
Applies right alignment to numeric data cells. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Autofix attempts exhausted for this head. Latest Gate summary: Please investigate manually. |
|
Closer audited exact head The Check-presence audit fetched all 196 check runs and compared them with 234 runs from the recent merged #1043 head. All latest named contexts pass or are intentionally skipped. Six absent nested contexts belong to conditional PR metadata handling and the post-merge verifier; their parent jobs reported SKIPPED, and source/PR routing and body are already complete. They are not missing product tests. The head has not changed since PR creation at 09:09:38 UTC; the conservative recorded push floor 09:17:32 UTC has elapsed. Full review-thread pagination reports zero active threads. A final unchanged-head, mergeability and check requery precedes merge. After merge, apply verify:compare and retain source #1044 open until its durable report is dispositioned. |
Provider Comparison ReportProvider Summary
📋 Full Provider Details (click to expand)openai
anthropic
Agreement
Disagreement
Unique Insights
🔍 LangSmith Traces |
|
Workflow state fingerprint for Agents Verifier. Do not edit. |
|
Runner dispatch state for claude on PR #1051. Do not edit. |
Workflow Source
Started from:
Automation intent:
Summary
Closes #1044.
CPRS-CH and CPRS-FCM PNG tables currently left-align numeric values beneath right-aligned headers. Position data-cell text using the column alignment and rendered text width so amounts share the header's right padding. Counterparty names retain their left padding.
Tasks and Acceptance Criteria
uv run pytest tests/renderers/test_table_png.py -q: 45 passed.Testing
Used the existing Python 3.12.2 environment with
UV_PROJECT_ENVIRONMENTandUV_NO_SYNC=1; verified the imported renderer resolves to this branch worktree. The fulltests/renderersdirectory contains the same 45 tests and passes. Focused Black, Ruff, mypy, andgit diff --checkpass. Visually inspected a generated sample with both rows of differing numeric widths.Local validation evidence:
/Users/teacher/.codex/automations/pd-workloop-resume/artifacts/20260912T0901Z/(test and mutation logs plusaligned-table.png). CI and automated review are pending; keepalive owns the next pass. No auto-merge is armed.Summary by CodeRabbit
Bug Fixes
Tests