aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fix(api): await setShadowHidden in badges PUTFuwn2026-04-181-1/+4
| | | | | | | setShadowHidden is async and hits Supabase. The PUT handler called it without await, so the handler could respond before the database write landed (and any error was silently lost). Add the missing await so the response only goes out after the update settles.
* fix(api): drop unused redirect query param from oauth refreshFuwn2026-04-181-3/+1
| | | | | | | | | | | | The refresh endpoint accepted a ?redirect query param and, when present, called redirect(303, "/") instead of returning the refreshed token as JSON. The target was hardcoded to "/" regardless of the param's value, so the feature was dead — and the pattern of reading a "redirect" param invited future open-redirect bugs if someone wired the value through to redirect() directly. The sole in-tree caller (feeds/activity-notifications) reads the JSON response, so always return JSON and drop the redirect import.
* 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(api): gate badge click-count on Origin and fix 401 response reuseFuwn2026-04-181-9/+11
| | | | | | | | | | | | | The PUT ?incrementClickCount path ran before any auth guard, letting unauthenticated callers spam-increment arbitrary badges. Require the request Origin to match appOrigin() so legitimate in-browser clicks (authenticated or not) still count while direct scripted calls are rejected. Also convert the shared `unauthorised` Response singleton into a factory. The singleton's body was consumed on first use, so subsequent 401 paths returned a `Response body is locked` error instead of the intended "Unauthorised" body.
* fix(api): encode subsplease timezone to prevent query-param injectionFuwn2026-04-181-5/+6
| | | | | | | The `tz` query value was interpolated raw into the upstream URL, letting callers append arbitrary query segments (e.g. `tz=foo&f=hax`). Wrap the value in encodeURIComponent and rename the local variable away from the banned `tz` abbreviation.
* 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-1511-52/+106
| | | | | | | | | 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(ui): balance homepage media panelsFuwn2026-04-121-62/+220
|
* 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-026-1/+12
|
* revert(ui): remove april fools executive modeFuwn2026-04-0211-250/+52
|
* fix(ui): tune april fools notification copyFuwn2026-04-011-1/+1
|
* fix(ui): simplify april fools controlsFuwn2026-04-011-15/+52
|
* feat(ui): add april fools executive modeFuwn2026-04-0111-52/+213
|
* fix(badges): hide outbound link noticeFuwn2026-04-011-1/+1
|
* 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-285-7/+7
|
* fix(state): restore persisted list UI stateFuwn2026-03-284-35/+68
|
* 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(cache): keep pre-hydration state changesFuwn2026-03-282-2/+26
|
* fix(notifications): stabilize browser subscription identityFuwn2026-03-282-16/+30
|
* fix(notifications): prune dead push endpointsFuwn2026-03-281-16/+53
|
* fix(notifications): support per-device push subscriptionsFuwn2026-03-282-4/+39
|
* fix(cache): preserve hydrated client stateFuwn2026-03-284-10/+28
|
* fix(preferences): preserve partial preference updatesFuwn2026-03-281-44/+26
|
* fix(auth): ignore malformed user cookiesFuwn2026-03-2811-33/+113
|
* fix(cache): respect AniList media list recache windowsFuwn2026-03-288-65/+153
|
* feat(manga): allow forcing automatic refreshFuwn2026-03-281-1/+5
|
* style(ci): format supabase server clientFuwn2026-03-271-1/+2
|