Repository navigation
Conversation
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Pull request overview
Adds propellant “resource mix” details to the drive tooltip breakdown (with English/Korean labels) and extends the Playwright-based browser verification to assert the new UI behavior.
Changes:
- Render a new “Resource mix / 자원 구성”
<details>block in the tooltip mass breakdown, showing per-resource requirements in decatons. - Add tooltip CSS styles for the new resource grid and summary label.
- Expand
verify_drive_comparison_browser.mjsto validate presence, ordering, default-open state, units, and EN/KO labels (including a fallback fixture).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/drive_comparison_client/ui/tooltip_table.js | Adds resource-mix HTML generation and EN/KO labels for propellant resources inside the tooltip breakdown. |
| tools/drive_comparison_styles.css | Styles the new tooltip resource-mix <details> and grid layout. |
| tools/verify_drive_comparison_browser.mjs | Adds automated browser verification for the new resource-mix tooltip content, including localization checks. |
| docs/index.html | Regenerated published page output reflecting new tooltip styles (generated artifact). |
| docs/assets/js/ui/tooltip_table.js | Regenerated published JS bundle reflecting tooltip changes (generated artifact). |
| const items = Object.entries(materials) | ||
| .map(([key, coefficient]) => { | ||
| const amount = propellantTons * Number(coefficient) / 10; | ||
| if (!Number.isFinite(amount) || amount <= 0) return null; | ||
| return { | ||
| key, | ||
| label: propellantResourceLabel(key), | ||
| amount, | ||
| }; | ||
| }) | ||
| .filter(Boolean); | ||
| if (!items.length) { | ||
| const propellant = String(row && row.propellant || "").trim(); | ||
| if (!propellant || propellant.toLowerCase() === "anything") return ""; | ||
| return ` | ||
| <details class="tooltip-propellant-resources muted" open> | ||
| <summary>${escapeHtml(UI_LANG === "en" ? "Resource mix" : "자원 구성")}</summary> | ||
| <div class="tooltip-propellant-resource-grid"> | ||
| <span>${escapeHtml(propellant)}</span><strong>-</strong> | ||
| </div> | ||
| </details> | ||
| `; | ||
| } | ||
| const itemRows = items | ||
| .map(item => `<span>${escapeHtml(item.label)}</span><strong>${formatNumber(item.amount, UI_LANG === "en" ? " decatons" : " 데카톤")}</strong>`) |
| .tooltip-propellant-resources { | ||
| margin: 0 0 7px; | ||
| overflow-wrap: anywhere; | ||
| } | ||
| .tooltip-propellant-resources summary { |
What changed
Why
How
Testing
docs/index.htmlregeneratedRisk / Rollback
Reviewer Checklist
PR Classification (optional)
Justification: