Commit Graph

795 Commits

Author SHA1 Message Date
Claudio Ortolina 4e77894783 Slow down batch refresh of metadata 2025-02-12 22:31:09 +00:00
Claudio Ortolina 219d39de00 Use correct method to batch refresh musicbrainz data 2025-02-12 21:55:28 +00:00
Claudio Ortolina bb72790be6 Include media in releases 2025-02-12 21:53:47 +00:00
Claudio Ortolina c46227ecf7 Update MusicBrainz fixtures 2025-02-12 21:52:58 +00:00
Claudio Ortolina 516b3d0ba7 Update erlang version
27.2.1 => 27.2.2
2025-02-11 20:52:20 +00:00
Claudio Ortolina 1ae77b512e Make released?/2 handle nil releases 2025-02-11 20:14:30 +00:00
Claudio Ortolina f8147a6f52 Do not require a record release date 2025-02-11 20:05:54 +00:00
Claudio Ortolina eb1a75d2d0 Add aria-label to main navigation 2025-02-11 10:05:05 +00:00
Claudio Ortolina 2033c7e47e Fix tab navigation for all modals/menus 2025-02-11 09:49:10 +00:00
Claudio Ortolina ba288b8802 Rename parse_subtype to parse_type 2025-02-10 19:02:58 +00:00
Claudio Ortolina 27bd32b2a9 Move subtype parsing to ReleaseGroup 2025-02-10 19:01:56 +00:00
Claudio Ortolina c19184337b Move url/1 to ReleaseGroup 2025-02-10 19:01:00 +00:00
Claudio Ortolina 86db563bd4 Rename MusicbrainzData -> ReleaseGroup 2025-02-10 16:41:21 +00:00
Claudio Ortolina 027b3af547 Rename ReleaseGroup to ReleaseGroupSearchResult 2025-02-10 16:38:04 +00:00
Claudio Ortolina ada1e272f7 Update dependencies
esbuild 0.8.2 => 0.9.0 (minor)
2025-02-10 16:01:19 +00:00
Claudio Ortolina 7dff3564f2 Remove input shadows
As they bleed in unexpected places
2025-02-10 10:44:13 +00:00
Claudio Ortolina af77095e6c Add subpixel antialiasing to application
Subjective - makes it slightly more pleasing
2025-02-10 10:36:00 +00:00
Claudio Ortolina b02a44f495 Add livebook chart with descending genre count 2025-02-10 10:24:46 +00:00
Claudio Ortolina f99a55fca7 Simplify included release groups logic
This makes the code slightly less efficient as it constructs
intermediate structures BEFORE filtering, but it makes it for simpler
code to maintain down the line.

Performance is not visible affected as the largest lists involved count
around 200 items.
2025-02-10 09:59:25 +00:00
Claudio Ortolina 224bcdba38 Extract MusicbrainzData module 2025-02-10 09:49:34 +00:00
Claudio Ortolina 791807c137 Fix issue with formatting of "" release dates 2025-02-10 09:33:26 +00:00
Claudio Ortolina d39129e7ff Reorder module functions roughly by topic/usage 2025-02-09 17:02:54 +00:00
Claudio Ortolina b42a774936 Remove unused functionality and make functions private 2025-02-09 17:01:00 +00:00
Claudio Ortolina be1de52984 Refactor Records.Record for simplification
- Remove unnecessary intermediate variables
- Remove unnecessary pipes
2025-02-09 08:33:00 +00:00
Claudio Ortolina 828563e933 Shorten timeouts for Last.fm api
Especially when the application wakes up from suspension, requests tend
to timeout.
2025-02-09 08:07:27 +00:00
Claudio Ortolina 4593b60da5 Always use @base_url 2025-02-08 13:20:49 +00:00
Claudio Ortolina 015863d25e Add missing test for Record.add_musicbrainz_data/2 2025-02-07 20:17:21 +00:00
Claudio Ortolina 9b25556245 Refactor Record.child_release_groups/1 to use stored ids 2025-02-06 21:03:38 +00:00
Claudio Ortolina b80a98a881 Included published releases count in record details pages 2025-02-06 11:37:55 +00:00
Claudio Ortolina a6c8b39947 Reduce pool size
Since covers are cached for 1 year, the pressure on the db is much lower
(despite etag checking), so we can tune the application to use even more
capacity without visible slowdown.
2025-02-06 08:16:51 +00:00
Claudio Ortolina dd6e4e19a9 Update dependencies
mint 1.6.2 => 1.7.1
2025-02-06 08:07:54 +00:00
Claudio Ortolina 6ad28f1271 When importing a record, stream all its releases 2025-02-05 15:31:08 +00:00
Claudio Ortolina f29dd1f0ab Fetch 100 releases when importing a record
The release group contains only 25 releases, which breaks tracking
scrobble status. Albums like "Toto IV" or "Hounds of Love" end up
looking like they're not part of the collections because the individual
releases are not stored.

Still error prone, because this change doesn't paginate to more than 100
records, but that will be addressed in a future commit.
2025-02-05 10:12:27 +00:00
dependabot[bot] d26c5295fb Update dependencies: Bump phoenix_live_view from 1.0.3 to 1.0.4
Bumps [phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view) from 1.0.3 to 1.0.4.
- [Changelog](https://github.com/phoenixframework/phoenix_live_view/blob/v1.0.4/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_view/compare/v1.0.3...v1.0.4)

---
updated-dependencies:
- dependency-name: phoenix_live_view
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 07:06:21 +00:00
Claudio Ortolina acd52978ae Revise naming and notification around purchasing records 2025-02-04 12:11:16 +00:00
dependabot[bot] 6cac09e81b Update dependencies: Bump phoenix from 1.7.18 to 1.7.19
Bumps [phoenix](https://github.com/phoenixframework/phoenix) from 1.7.18 to 1.7.19.
- [Release notes](https://github.com/phoenixframework/phoenix/releases)
- [Changelog](https://github.com/phoenixframework/phoenix/blob/v1.7.19/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix/compare/v1.7.18...v1.7.19)

---
updated-dependencies:
- dependency-name: phoenix
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 06:39:22 +00:00
Claudio Ortolina f21729ac00 Cache covers for 1 year 2025-01-31 07:43:06 +00:00
dependabot[bot] d9967cb3fd Update dependencies: Bump heroicons from v2.1.5 to v2.2.0
Bumps [heroicons](https://github.com/tailwindlabs/heroicons) from v2.1.5 to v2.2.0.
- [Release notes](https://github.com/tailwindlabs/heroicons/releases)
- [Changelog](https://github.com/tailwindlabs/heroicons/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/heroicons/compare/ad0ad1f6d51bd64dcd67e363d2b2833a8de25154...0435d4ca364a608cc75e2f8683d374e55abbae26)

---
updated-dependencies:
- dependency-name: heroicons
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-31 07:14:01 +00:00
dependabot[bot] 16fcac2611 Update dependencies: Bump bandit from 1.6.6 to 1.6.7
Bumps [bandit](https://github.com/mtrudel/bandit) from 1.6.6 to 1.6.7.
- [Changelog](https://github.com/mtrudel/bandit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mtrudel/bandit/compare/1.6.6...1.6.7)

---
updated-dependencies:
- dependency-name: bandit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-31 07:13:43 +00:00
Claudio Ortolina f82f2d447c Mount /api/backup route 2025-01-30 14:38:02 +00:00
Claudio Ortolina b47f282223 Add database backup functionality 2025-01-30 09:39:45 +00:00
Claudio Ortolina 441bfcb9ef Add logout icon and tighten navbar on mobile 2025-01-30 09:39:33 +00:00
Claudio Ortolina cd4ad66098 Define MusicLibrary.Repo.vacuum/0 2025-01-30 09:29:17 +00:00
Claudio Ortolina 0d0350a514 Reuse Artist schema inside SearchIndex 2025-01-29 15:41:46 +00:00
Claudio Ortolina 9c3acd0fcf Remove duplication of types and formats definitions 2025-01-29 15:39:29 +00:00
Claudio Ortolina 6db631f03b Reword explanation 2025-01-29 15:03:40 +00:00
Claudio Ortolina 5b8083e144 Silence debug logs in tests 2025-01-29 12:44:10 +00:00
Claudio Ortolina 9e1f00c9a8 Refactor type/format labels to enable translations 2025-01-29 11:04:19 +00:00
Claudio Ortolina 96bd453900 When not possible to determine otherwise, assums a record has been released 2025-01-29 10:21:41 +00:00
Claudio Ortolina 06f1997d59 Show if a wishlisted album is unreleased 2025-01-29 10:13:39 +00:00