fix(ui): resolve slop/duplicate legend latest week per series - #8774
fix(ui): resolve slop/duplicate legend latest week per series#8774philluiz2323 wants to merge 1 commit into
Conversation
latestWeekWithSignal previously returned the newest week with either series present, and both legends reused that single week. When only one series was populated on the newest signal week, the other legend showed empty even if an earlier week had real data. Parameterize by series and cover the divergent-null case. Closes #8667
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 04:15:22 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
This pull request changes UI/visual code but its screenshot evidence is incomplete. Every required viewport × theme combination needs its own before/after image pair in a labeled table row (e.g. "Desktop · Light | before | after"). Still missing: Desktop · Dark, Tablet · Dark, Mobile · Dark. Please resubmit with the remaining rows filled in. See https://github.com/JSONbored/loopover/blob/main/.claude/skills/contributing-to-loopover/SKILL.md for the exact format and examples. This is an automated maintenance action. |


Summary
latestWeekWithSignal(weeks, series)so each series finds its own most recent non-null week instead of sharing one "any signal" week.SlopDuplicateTrendCardlegends tolatestSlop/latestDuplicateindependently.latest band: elevated.Closes #8667
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpx prettier --write --end-of-line lfon the three changed files (LF blobs, prettier/prettier clean)npm --workspace @loopover/ui exec -- eslinton the three changed files (exit 0)npm --workspace @loopover/ui run test -- src/components/site/app-panels/slop-duplicate-trend-card.test.tsx(5 passed)If any required check was skipped, explain why:
npm run typecheck/test:coverage/ui:buildnot re-run locally for this narrowly scoped UI model fix; workspace eslint + vitest cover the changed surface.apps/**is excluded fromcodecov/patch.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Behavior-preserving for today's production lockstep-null data shape (both series null together). Visible legend change only appears in the divergent-null case covered by the new unit/RTL test; no production screenshot delta for the lockstep path.
latest band: low/latest: 25%latest band: elevated+latest: 40%when series peak on different weeksNotes