From 233591435d5f1cf8413667a432a2a4ed136b13a0 Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 10 Apr 2026 02:02:45 -0700 Subject: [PATCH] refactor(stats): reorder trends sections and move library summary to end MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move pattern graphs (day-of-week, hour) into the Activity section, promote Library — Cumulative above Library — Summary, and place the summary table last since it is data rather than a trend visualization. --- stats/src/components/trends/TrendsTab.tsx | 39 +++++++++-------------- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/stats/src/components/trends/TrendsTab.tsx b/stats/src/components/trends/TrendsTab.tsx index 9e7c3f9d..df5baa83 100644 --- a/stats/src/components/trends/TrendsTab.tsx +++ b/stats/src/components/trends/TrendsTab.tsx @@ -114,14 +114,7 @@ export function TrendsTab() { if (error) return
Error: {error}
; if (!data) return null; - const librarySummaryAsPoints = data.librarySummary.map((row) => ({ - epochDay: 0, - animeTitle: row.title, - value: row.watchTimeMin, - })); - const animeTitles = buildAnimeVisibilityOptions([ - librarySummaryAsPoints, data.animeCumulative.episodes, data.animeCumulative.cards, data.animeCumulative.words, @@ -170,6 +163,18 @@ export function TrendsTab() { /> + + Period Trends - Library — Summary + Library — Cumulative - - - Library — Cumulative - Patterns - - + Library — Summary + );