Commit Graph
141 Commits
Author SHA1 Message Date
github-actions[bot] b8fb4f126a chore(release): version packages 2026-10-07 17:55:44 +00:00
jakeandClaude Opus 5.5 2487cd0199 feat(web): link to sofa.watch from the landing page
Add a quiet "Powered by Sofa" footer to the logged-out splash screen,
linking to sofa.watch. The footer sits in normal flow below the hero so
it can't overlap the buttons on short screens, and clears the bottom
safe-area inset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:53:59 -04:00
jakeandClaude Opus 5.5 f48da5e6c4 ci: smoke-test backup and restore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:50:18 -04:00
jakeandClaude Opus 5.5 a4439dddb1 feat(server): back up before applying migrations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:48:56 -04:00
jakeandClaude Opus 5.5 dcaf509160 test(db): apply migrations to a populated v0.2.0 database
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:48:53 -04:00
jakeandClaude Opus 5.5 c6e414ecdb test(db): cover platform seeding, session cleanup, and import recovery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:43:07 -04:00
jakeandClaude Opus 5.5 9140891dd5 fix(cron): keep failing titles from blocking the non-library refresh
Exclude library titles and order by lastFetchedAt in SQL, and stamp
lastFetchedAt when a non-library refresh fails so it moves to the back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:30:17 -04:00
jakeandClaude Opus 5.5 c4a322948b fix(discovery): exclude rated and watched titles from recommendations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:26:36 -04:00
jakeandClaude Opus 5.5 f36820321c fix(server): validate image and avatar names and serve them inert
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:12:13 -04:00
jakeandClaude Opus 5.5 c51a668ace chore(deps): upgrade oRPC to v2 (2.0.0-beta.42)
- Pin all @orpc/* catalog entries to 2.0.0-beta.42; @sofa/api now depends on @orpc/openapi
- Contract routes move from .route() to .meta(openapi(...)); schemas gain meta ids so the
  OpenAPI document hoists them as named components; publicInfo overrides document-level security
- OpenAPI generator/handler use v2 APIs (converters, base, spec plugin option, OpenAPI 3.1.1 output)
- Add restoreRootFileType routing interceptor so root-level File inputs (avatar upload, backup
  restore) keep their MIME type under Bun.serve
- Web/native links use origin + path url; native error classification derives HTTP status from
  COMMON_ERROR_STATUS_MAP / MalformedResponseError since ORPCError.status is gone
- router-auth test reads v2 orderedMiddlewares; regenerated docs/public/openapi.json

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 23:08:12 -04:00
jakeandClaude Opus 5.5 8da4cbbe52 fix(tracking): report when a title was already in the library
updateStatus now returns { alreadyAdded }. Native toasts say so instead of
claiming success, and the Explore hero hides Add to Watchlist for library titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:50:04 -04:00
jakeandClaude Opus 5.5 d6abcbd2bb fix(native): regroup Upcoming when the day or language changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:45:29 -04:00
jakeandClaude Opus 5.5 1dc38f91b9 fix(backup): migrate restored files before swapping them in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:41:02 -04:00
jakeandClaude Opus 5.5 45667f3540 fix(native): keep widget refreshes after resets and don't claim nothing is upcoming
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:34:42 -04:00
jakeandClaude Opus 5.5 6b56e3eff3 fix(stats): align count windows with chart buckets and fix month rollover
Window starts now equal the first chart bucket, and year buckets are built from the 1st of each month so the 29th-31st no longer repeat or skip months.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:31:32 -04:00
jakeandClaude Opus 5.5 fcd8731a6a fix(web): settings toggles refresh cache, backup next-run from server, update toast once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:28:20 -04:00
jakeandClaude Opus 5.5 a6d642616b fix(cron): start manual jobs in the background and report busy jobs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:23:28 -04:00
jakeandClaude Opus 5.5 085b681d8a fix(native): explain change-password failures and block double submit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:15:57 -04:00
jakeandClaude Sonnet 5.5 ecf119c98e fix(native): show errors for Explore rows, failed pages and Register
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 22:06:42 -04:00
jakeandClaude Sonnet 5.5 669fc74653 fix(native): report SSO sign-in failures
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 22:03:06 -04:00
jakeandClaude Sonnet 5.5 8a6c32f376 fix(native): translate the recently viewed row's accessibility label
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 21:57:24 -04:00
jakeandClaude Sonnet 5.5 3d219ed638 chore(cron): remove query helpers replaced by checked-at stamps
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 21:56:49 -04:00
jakeandClaude Sonnet 5.5 911dc7e5f1 fix(tracking): clamp same-day log-a-watch time to now
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 21:50:57 -04:00
jakeandClaude Sonnet 5.5 cb5e0c19e7 feat(tracking): remove a single watch and log a watch on a date
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 21:50:56 -04:00
jakeandClaude Sonnet 5.5 4669d3b76d feat(native): add a watch history screen and trim the web phone tab bar
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 21:50:53 -04:00
jakeandClaude Sonnet 5.5 b292fe37ab feat(tracking): add a paginated watch history and Last watched library sort
Adds tracking.history (cursor-paginated, movies and episodes merged), a
last_watched library sort, and a /history web page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:36:44 -04:00
jakeandClaude Sonnet 5.5 e625f319a2 feat(upcoming): add a "Recently aired" view of unwatched episodes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:29:47 -04:00
jakeandClaude Sonnet 5.5 04bcb66436 feat(dashboard): mark episodes watched from Continue Watching and Upcoming
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:20:09 -04:00
jakeandClaude Sonnet 5.5 899be96316 fix(cron): judge stale seasons by the latest season fetch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:15:05 -04:00
jakeandClaude Sonnet 5.5 6576f21235 perf(cron): refresh ended titles less often and only recent seasons of returning shows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:13:28 -04:00
jakeandClaude Sonnet 5.5 66a5e80544 fix(imports): skip specials and refresh shows once for new episodes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:09:14 -04:00
jakeandClaude Sonnet 5.5 51d193b411 perf(metadata): remember empty TMDB lookups instead of refetching every view
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 14:01:22 -04:00
jakeandClaude Sonnet 5.5 edd6eb541d fix(imports): keep date-only values on their calendar day
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 13:51:49 -04:00
jakeandClaude Sonnet 5.5 1ccc138144 test(i18n): cover month labels when Intl defaults to UTC like the native polyfill
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 13:48:29 -04:00
jakeandClaude Sonnet 5.5 c40b6844a0 fix(i18n): format Upcoming month headers in UTC so native shows the right month
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 13:47:15 -04:00
jakeandClaude Sonnet 5.5 b7887eef70 fix(native): make select sheets and row actions usable with VoiceOver and TalkBack
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 13:43:21 -04:00
jakeandClaude Sonnet 5.5 851a188f00 fix(native): recover from render errors and let Close leave deep-linked titles
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 13:40:39 -04:00
jakeandClaude Opus 5.5 ccaacfeae5 feat(native): follow the system language instead of an in-app picker
Declare the app's 12 languages to iOS and Android via expo-localization,
resolve the language from the device's preferred languages at start-up and
on Android runtime changes, and make Settings > Language open the system
settings page. Drops the MMKV-stored locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:24:59 -04:00
jakeandClaude Sonnet 5.5 786a4ba7c5 fix(native): re-probe the server on retry and rebuild the auth client before marking a new server reachable
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 12:59:59 -04:00
jakeandClaude Opus 5.5 870d130261 chore(i18n): extract catalogs after sharing client helpers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:28:17 -04:00
jakeandClaude Opus 5.5 778a1356d5 refactor(api): share tracking-dependent query key lists between web and native
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:27:43 -04:00
jakeandClaude Opus 5.5 88e777d5ce refactor(api): share sparkline path and luminance helpers between web and native
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:27:15 -04:00
jakeandClaude Opus 5.5 01a14157c6 refactor(i18n): share integration status text between web and native
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:26:05 -04:00
jakeandClaude Opus 5.5 4adaa4a73b refactor(i18n): share error message maps between web and native
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:25:28 -04:00
jakeandClaude Opus 5.5 d874ae9198 refactor(web): share one import-job flow between import dialogs
Extract the job loop into runImportJob (with tests), hold its UI state in
useImportJob, and move the importing/done steps and stat/option components
into import-dialog-parts. Both dialogs now close when an import continues in
the background or the connection drops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:11:48 -04:00
b63fbce60d feat(search): find titles by IMDb ID
Search queries that look like an IMDb ID (e.g. tt0133093) are now resolved
through TMDB's find endpoint, respecting the movie/tv type filter.

Supersedes #60.

Co-authored-by: Gonçalo Fonseca <gcare.fonseca99@outlook.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 03:57:00 -04:00
jakeandClaude Opus 5.5 0f82de55cb refactor(core): move discover logic into @sofa/core/browse
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 03:56:10 -04:00
jakeandClaude Opus 5.5 9aebca7121 perf(metadata): process episode art in the background with bounded concurrency
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 03:17:41 -04:00
jakeandClaude Opus 5.5 40517b5214 fix(native): add the Library tab and translated labels on Android
The Android tab bar only declared four tabs with hard-coded English
labels, so the Library route was never registered and "See all" on Home
did nothing. Match the iOS tab set and order and use LingUI labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 03:11:21 -04:00
jakeandClaude Opus 5.5 07ea8f68f2 fix(native): keep cached screens on refetch errors and show errors instead of empty states
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 02:51:57 -04:00