25 uiux fix poor color contrast for chart layers against dark theme#29
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThis PR extends Theseus with milestone visualization and reframes code genealogy metrics around a "foundation year" concept. It adds milestone arrays to the repository configuration, updates the insights UI to show how much code remains from the foundation rather than how much has changed, implements interactive milestone markers on the chart, refactors tooltip logic to display foundation/refactored line counts, and enhances fossil card styling throughout. ChangesMilestone Visualization and Foundation Framing
Sequence DiagramsequenceDiagram
participant Config as Repository Config
participant Chart as renderChart()
participant Milestone as renderMilestoneMarkers()
participant Insight as updateInsights()
participant Tooltip as showTooltip()
Config->>Chart: load milestones array
Chart->>Milestone: call with xScale and milestones
Milestone->>Milestone: compute x-positions from milestone dates
Milestone->>Milestone: append SVG markers with hover behavior
Insight->>Insight: compute foundation share from latest snapshot
Tooltip->>Tooltip: scan milestones for near-snapshot events
Tooltip->>Tooltip: build foundation/refactored line counts
Tooltip->>Tooltip: render milestone banner if applicable
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app.js`:
- Around line 489-492: The code selects oldestSurvivingYear from all year keys
(existingYears) even if that year has no surviving line value in this snapshot;
change the key filtering to only include year keys that are not 'date'/'total'
AND that have a positive/truthy value in point (e.g.,
Object.keys(point).filter(k => k !== 'date' && k !== 'total' &&
point[k]).sort()), then derive oldestSurvivingYear and oldestSurvivingVal from
that filtered list; apply the same change to the duplicate logic around the
other block that uses existingYears/oldestSurvivingYear (the block at lines
~547-558) so the “Oldest surviving” tooltip only picks years that actually
survive in this snapshot.
In `@style.css`:
- Around line 13-23: Update the .visually-hidden utility to use the modern
clip-path property while keeping the existing clip line as a fallback: add
clip-path: inset(50%); (and optionally -webkit-clip-path for broader support)
alongside the existing clip declaration in the .visually-hidden rule so modern
browsers use clip-path but legacy browsers still fall back to clip.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 9cad9489-dc99-4548-9077-6bbff6d8b184
📒 Files selected for processing (5)
app.jsdocs/CONFIGURATION.mdindex.htmlstyle.csstheseus.config.json
Summary by CodeRabbit
New Features
Documentation
Style