Commit Graph
9 Commits
Author SHA1 Message Date
mattandClaude Sonnet 5.5 16f701c855 Add manual scrobble screen
CI / test (push) Successful in 2m23s
Artist/track/album form with a "played" time chip (now to yesterday) that
submits through ScrobbleRepository. On success the form clears but keeps
the time choice, and History reloads when revisited so the new play shows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:33:04 +01:00
mattandClaude Sonnet 5.5 e4c19cc9ac Add TrackDraft and scrobble submission
TrackDraft is the editable track shared by all add paths, validated
against the server's 14-day / 5-minute window. ScrobbleRepository submits
via track.scrobble with the stored session key, treating an "ignored"
result or an invalid session as errors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:31:19 +01:00
mattandClaude Sonnet 5.5 01b17fd179 Add Home and History screens
CI / test (push) Successful in 2m37s
Home shows a now-playing panel (polled every 15s while visible), summary
stats and the latest scrobbles. History is an infinite-scrolling,
pull-to-refresh list that dedupes rows when pages shift. Adds edge-to-edge
system bars, themed nav bar and a Sign out button.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:22:19 +01:00
mattandClaude Sonnet 5.5 47c2cf5701 Add history data layer: now playing, recent scrobbles, summary
ScrobblerApi gains /me/now-playing, /me/recent and /me/summary with
null-safe parsing; HistoryRepository reads with the stored bearer token
and maps a 401 to SessionExpiredException.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:19:02 +01:00
mattandClaude Sonnet 5.5 36399be147 Add connect flow: login, API app provisioning and secure storage
CI / test (push) Successful in 2m17s
DefaultAuthRepository logs in for a bearer token, finds or creates the
"Scrobbled Android" API app (reused on reconnect), then obtains a Last.fm
session key via auth.getMobileSession. Credentials are encrypted with an
Android Keystore AES-GCM key. Adds ScrobblerApi (/api/v1), a Connect
screen + ViewModel, and gates the main shell on stored credentials.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:10:32 +01:00
mattandClaude Sonnet 5.5 5200ebdb2d Add Last.fm API request signer and /2.0/ client
CI / test (push) Successful in 2m11s
Signer matches the server's md5 scheme (verified against vectors generated
by its Python implementation, including unicode). LastFmClient supports
auth.getMobileSession, track.scrobble (batched, indexed fields) and
track.updateNowPlaying, mapping server errors to LastFmException.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:05:18 +01:00
mattandClaude Sonnet 5.5 9dac03ccdb CI: skip setup-android's obsolete 'tools' package
CI / test (push) Successful in 2m9s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:01:00 +01:00
mattandClaude Sonnet 5.5 29603c15b5 CI: drop setup-gradle and upload-artifact actions
CI / test (push) Failing after 15s
The runner cannot resolve their v4/v3 tags; the Gradle wrapper suffices.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 11:00:02 +01:00
mattandClaude Sonnet 5.5 4716396f64 Set up Compose app shell, theme and Gitea CI
CI / test (push) Failing after 9s
Kotlin + Compose via AGP built-in Kotlin, Material 3 theme mirroring the
web UI palette, bottom-nav shell with placeholder screens, cleartext
network config for self-hosted servers, and a CI workflow running unit
tests, lint and a debug build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:59:08 +01:00