Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThis PR updates the TrendsChart component to use a responsive, dynamic Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use Trivy to scan for security misconfigurations and secrets in Infrastructure as Code files.Add a .trivyignore file to your project to customize which findings Trivy reports. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
app/components/Package/TrendsChart.vue (1)
1719-1726: Consider adding height to the transition for smoother expansion.Currently, only
opacityis transitioned (transition-[opacity]), so the container height snaps instantly frommax-h-0tomax-h-[220px]. If you want a smoother expand/collapse animation, you could transition both properties:- class="overflow-hidden transition-[opacity] duration-200 ease-out" + class="overflow-hidden transition-[max-height,opacity] duration-200 ease-out"If the instant height change is intentional to minimise perceived CLS, this is fine as-is.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 906e8b30-3531-4b15-abc5-49dfb0829107
📒 Files selected for processing (1)
app/components/Package/TrendsChart.vue
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/components/Package/TrendsChart.vue (1)
1698-1844:⚠️ Potential issue | 🟠 MajorMake the correction panel a proper disclosure.
Line 1711 only hides the panel visually, so the sliders on Lines 1726, 1741 and 1756 plus the checkbox on Line 1828 stay tabbable when the section is “closed”. The toggle on Line 1698 also does not expose its expanded state.
♿ Suggested fix
<button type="button" + :aria-expanded="showCorrectionControls" + aria-controls="trend-correction-controls" class="self-start flex items-center gap-1 text-2xs font-mono text-fg-subtle hover:text-fg transition-colors" `@click`="showCorrectionControls = !showCorrectionControls" > @@ <div + id="trend-correction-controls" + :aria-hidden="!showCorrectionControls" + :inert="!showCorrectionControls || undefined" class="overflow-hidden transition-[opacity] duration-200 ease-out" :class=" showCorrectionControls ? 'max-h-[220px] opacity-100' : 'max-h-0 opacity-0 pointer-events-none' " >
🧹 Nitpick comments (1)
app/components/Package/TrendsChart.vue (1)
1351-1356: Unify the chart-height maths in one place.
chartHeightnow uses950 / 600 / 494, while the wrapper on Lines 1861-1867 uses a separate567 / 491branch. Those values will drift over time and make this CLS fix brittle, because the outer container andVueUiXysizing can diverge silently.Also applies to: 1861-1867
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 63f7d82a-30ad-4bb3-a3ba-65fb3d163667
📒 Files selected for processing (1)
app/components/Package/TrendsChart.vue
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
app/components/Package/TrendsChart.vue (1)
2170-2173: Scope.no-transitionstyles to this component rootThe selector is currently global and generic. Scoping it to
#trends-chartkeeps the transition guard local and avoids unintended styling collisions with other components using the same class name.Proposed refactor
-.no-transition line, -.no-transition circle { +#trends-chart .no-transition line, +#trends-chart .no-transition circle { transition: none !important; }
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 3f9108c3-aaba-4626-adf5-6ca247467e32
📒 Files selected for processing (1)
app/components/Package/TrendsChart.vue
The introduction of the data correction section in the chart modal leads to CLS when toggling the menu.
The fix consists in:
BEFORE:
Enregistrement.de.l.ecran.2026-03-11.a.07.34.48.mov
AFTER:
Enregistrement.de.l.ecran.2026-03-11.a.07.31.29.mov