aboutsummaryrefslogtreecommitdiff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* refactor(airing): unify countdown formatter into shared helperFuwn8 days3-121/+67
|
* fix(airing): round residual hour and minute in AiringTime componentFuwn8 days1-8/+8
|
* fix(airing): floor hour consistently in hours countdownFuwn8 days1-3/+9
|
* fix(airing): round residual hour in days countdownFuwn8 days1-2/+7
|
* feat(command-palette): add quick toggles, sync, and auth actionsFuwn10 days3-0/+314
| | | | | | | | Adds 13 reactive quick toggles (24h time, animations, blur adult, cover modes, hover cover, schedule list, reverse sort, data saver, notifications, language, title format cycle, outbound link target cycle), three sync actions (push/pull/disable), and login/logout entries gated on auth state. Names reflect current state so the palette doubles as a status surface.
* fix(tooltip): park off-screen on create, enable glide after first placementFuwn2026-04-192-4/+9
| | | | | | | | | | | | | | | The tooltip was appended to body with no top/left, so its static-flow position extended body.scrollWidth/scrollHeight during measurement. Fix by setting initial top/left to -9999px so the node never lands in the flow. Previously this slid the tooltip in from off-screen because the top/left 0.3s transition was already live. Now the transition starts as opacity-only at creation time; after the first updateTooltipPosition snaps into place, a requestAnimationFrame re-enables the top/left easing so subsequent mousemove updates keep the original smooth glide and 100ms debounce behavior. LinkedTooltip's measurement div is parked the same way plus visibility:hidden, since it exists only to read offsetWidth for the Svelte-rendered tooltip.
* Revert "fix(tooltip): use fixed positioning and snappy cursor tracking"Fuwn2026-04-192-12/+15
| | | | This reverts commit 28860bb88da4c08e3ba383adc9c23ae3689310b6.
* fix(tooltip): use fixed positioning and snappy cursor trackingFuwn2026-04-192-15/+12
| | | | | | | | | | | | | Body grew on hover because the absolutely-positioned tooltip was appended to document.body without top/left, so its static-flow position extended body.scrollWidth/scrollHeight during layout measurement. Switch both the use:tooltip directive and LinkedTooltip's measurement div to position:fixed, which is relative to the viewport and does not contribute to the body's scroll area. The directive now also uses clientX/clientY (dropping the scrollY offset for the pin branch), removes the 100ms mousemove debounce, and drops the top/left transition so the tooltip tracks the cursor without feeling laggy or sliding in from the page top.
* Revert "fix(tooltip): park measurement node off-screen to stop body resize"Fuwn2026-04-192-5/+0
| | | | This reverts commit 6865cae76cb88aa78d7c297c637557468fdce8fc.
* Revert "fix(tooltip): drop position transition so tooltip snaps instead of ↵Fuwn2026-04-191-1/+1
| | | | | | sliding" This reverts commit 6e780fdb76155669a72692c64fd51c0da2c932d2.
* fix(tooltip): drop position transition so tooltip snaps instead of slidingFuwn2026-04-191-1/+1
| | | | | | | The opacity+top+left transition combined with the off-screen parking caused tooltips to animate from -9999px into place ("pops down from the top") and lagged cursor tracking in the non-pinned variant used by birthdays. Keep only the opacity fade; position updates snap.
* fix(tooltip): park measurement node off-screen to stop body resizeFuwn2026-04-192-0/+5
| | | | | | Absolute-positioned tooltips were appended to document.body without initial left/top, so their static-flow position extended body scrollWidth/scrollHeight during layout, briefly enlarging the page on hover.
* refactor(wrapped): simplify redundant new Date(Date.now()) callsFuwn2026-04-181-2/+2
| | | | | | new Date(Date.now()) is identical to new Date() and was called twice back-to-back to seed currentYear and selectedYear to the same value. Call new Date() once for currentYear and reuse it for selectedYear.
* fix(tooltip): remove body-appended tooltip node on destroyFuwn2026-04-181-0/+12
| | | | | | | | | | | | LinkedTooltip appends its tooltip div directly to document.body in createTooltip and only removes it from hideTooltip. If the component was destroyed while the tooltip was visible (e.g. parent navigated mid-hover), the div leaked and stayed in the DOM forever. Add an onDestroy handler that clears the pending hide/debounce timers and, if the tooltip div is still parented to document.body, removes it. Guarding on parentNode avoids double-removal when hideTooltip has already run.
* fix(notification): clear auto-dismiss timer on component destroyFuwn2026-04-181-1/+5
| | | | | | | | | onMount scheduled a setTimeout to auto-dismiss the notification after notification.duration ms but never stored the handle. If the component was destroyed before the timer fired (parent unmount, navigation), the timer still ran and called remove() on a stale closure. Capture the timer id and clear it from the onMount cleanup callback.
* fix(easter-event): drop dead resize/scroll listener cleanupFuwn2026-04-181-3/+0
| | | | | | | The onMount cleanup removed resize and scroll listeners that were never actually registered — the only live side effect is the updatePosition interval. Drop the two dead removeEventListener calls so the cleanup only matches what the component actually sets up.
* fix(media): guard publicMediaListCollection against missing AniList dataFuwn2026-04-181-17/+18
| | | | | | | | | | | | The public variant of mediaListCollection chained data.MediaListCollection .lists with no null check, so any AniList error response (rate limit, private list, nonexistent user) threw a TypeError. Mirror the guard used by the authenticated sibling: if any of data, MediaListCollection, or lists is missing, return an empty array. The function currently has no in-tree callers; noting that it may be a candidate for removal in a follow-up.
* fix(user): pass actual description to badge preview alt textFuwn2026-04-181-1/+1
| | | | | | | | | | The ParallaxImage alternativeText prop was passed as the literal string "selectedBadge.description" (quoted attribute syntax) instead of the expression, so every badge image rendered with that identifier name as its alt text. Switch to the expression form with a nullish-coalescing fallback so badges without a description render empty alt rather than the literal.
* fix(schedule): stop duplicating first page in season paginationFuwn2026-04-181-37/+18
| | | | | | | | | | | | | The seasonal schedule collector pushed page 1 outside the while-loop, then re-pushed the current page on every loop iteration. That meant every multi-page season duplicated its first page's media, and the same bug ran a second time when includeLastSeason was set. Restructure into a shared collectAllSchedulePages helper with a single push-then-check-hasNextPage loop, so each page is pushed exactly once. Verified against AniList for SPRING 2026 with includeLastSeason=true: 210 media, 0 duplicates.
* fix(utility): treat .localhost subdomains as private in appOriginFuwn2026-04-181-0/+1
|
* fix(ui): hide list count badge when no media is displayedFuwn2026-04-172-2/+2
| | | | | | Showing "0" in the list title next to a "No anime/manga to display" empty-state message duplicates information. Treat an empty media list the same as dummy mode and suppress the count.
* fix(ui): reset media list filter when its custom list disappearsFuwn2026-04-172-0/+20
| | | | | | | | If a user's persisted filter references a custom list that no longer exists on any media (renamed or deleted on AniList), the select falls back to showing "All" but the underlying state still filters to an empty set. Detect the stale value and reset it, clearing the StateBin entry so the fix survives a reload.
* fix(ui): hide follow-fix toggle link until a username is enteredFuwn2026-04-171-3/+5
| | | | | | Previously the link rendered "Toggle follow for ..." and was clickable with an empty submission. Only render once the input has content so there is no dead affordance.
* fix(ui): hide media roulette button when only one item is pickableFuwn2026-04-172-2/+2
| | | | | | Rouletting a single item is deterministic, so the affordance adds nothing. Require at least two items before showing the button on both anime and manga lists.
* fix(ui): hide media list filter when every list matches "All"Fuwn2026-04-172-2/+10
| | | | | | If every custom list contains every displayed media item, each option yields the same result, so the picker is noise. Gate the select on a reactive check that any list excludes at least one item.
* feat(cache): instant list revalidation from command palette and debug menuFuwn2026-04-159-51/+100
| | | | | | | | | Replaces one-shot boolean revalidateAnime with a counter store so multiple components can subscribe without race conditions. Adds revalidateManga store and reactive refresh blocks to DueAnimeList and MangaListTemplate. Extracts shared invalidateListCaches function used by both the command palette action and the debug settings button. Renames palette item to "Refresh" and debug button to "Invalidate".
* feat(command-palette): add clear anime and manga list caches actionFuwn2026-04-151-0/+23
|
* fix(settings): clarify data saver checkboxFuwn2026-04-024-0/+6
|
* feat(settings): add checkbox tooltipsFuwn2026-04-021-0/+5
|
* fix(ui): stop roulette at intended durationFuwn2026-04-021-1/+2
|
* fix(ui): correct manga list tooltip behaviorFuwn2026-04-022-2/+8
|
* fix(ui): polish media list title separatorsFuwn2026-04-021-0/+8
|
* fix(ui): align media list title timingsFuwn2026-04-021-2/+3
|
* fix(ui): refine media list title countsFuwn2026-04-021-4/+17
|
* feat(debug): add media list timing toggleFuwn2026-04-025-1/+10
|
* revert(ui): remove april fools executive modeFuwn2026-04-027-114/+30
|
* feat(ui): add april fools executive modeFuwn2026-04-017-30/+114
|
* fix(manga): show skeleton while list is loadingFuwn2026-03-301-1/+1
|
* perf(manga): progressively hydrate native chapter countsFuwn2026-03-293-15/+123
|
* fix(anilist): restore completed list query semanticsFuwn2026-03-283-5/+5
|
* fix(state): restore persisted list UI stateFuwn2026-03-281-2/+3
|
* fix(filters): apply list filter changes immediatelyFuwn2026-03-282-8/+16
|
* fix(cache): restore instant filters and shared AniList cacheFuwn2026-03-284-12/+30
|
* fix(anilist): restore completed list filtersFuwn2026-03-285-26/+61
|
* fix(anilist): fall back to persisted media list cacheFuwn2026-03-281-0/+56
|
* fix(anilist): avoid leaking settings subscriptionsFuwn2026-03-281-4/+1
|
* fix(manga): avoid poisoning native chapter cacheFuwn2026-03-281-7/+37
|
* fix(notifications): stabilize browser subscription identityFuwn2026-03-281-15/+10
|
* fix(notifications): support per-device push subscriptionsFuwn2026-03-282-4/+39
|
* fix(cache): preserve hydrated client stateFuwn2026-03-281-1/+5
|