Commit Graph

3472 Commits

Author SHA1 Message Date
Claudio Ortolina d12a461a5d Improve error handling in db_pull task 2024-10-10 16:41:45 +01:00
Claudio Ortolina 9f383dfc5b Make db-dependent tests sync
As explained at
https://hexdocs.pm/ecto_sqlite3/Ecto.Adapters.SQLite3.html#module-async-sandbox-testing:

The Ecto SQLite3 adapter does not support async tests when used with
Ecto.Adapters.SQL.Sandbox. This is due to SQLite only allowing up one
write transaction at a time, which often does not work with the Sandbox
approach of wrapping each test in a transaction.
2024-10-10 15:54:22 +01:00
Claudio Ortolina 1451da1dee Don't fail import when cover fetch fails 2024-10-10 15:35:29 +01:00
Claudio Ortolina 21e773ff5e Formatting (line breaks) 2024-10-10 15:27:40 +01:00
Claudio Ortolina 1ff06bb178 Add disclaimer in search_parser module 2024-10-10 12:41:35 +01:00
Claudio Ortolina 02a071be28 Disable autocorrect and autocapizalize in search field 2024-10-10 10:59:03 +01:00
Claudio Ortolina 201c2edc01 Enable tagged search 2024-10-10 10:02:26 +01:00
Claudio Ortolina e30ba5ef3f Implement basic parser 2024-10-10 10:02:26 +01:00
Claudio Ortolina 1fdf36ea8a Include artists in record test fixture 2024-10-10 10:02:03 +01:00
Claudio Ortolina 10003c34f6 Include timestamps in record detail page 2024-10-10 08:00:07 +01:00
Claudio Ortolina e4c0ce58f6 Increase test pool size to avoid resource contention 2024-10-08 20:37:28 +01:00
Claudio Ortolina 52c1be1e32 Restructure stats
Split out count by format
2024-10-08 20:36:39 +01:00
Claudio Ortolina 36f1d44468 Add counts by format as a separate item 2024-10-08 20:21:38 +01:00
Claudio Ortolina 76907a4a6f Make all tests async
Doesn't make a difference at this stage, but it's a good foundation as
the application grows.
2024-10-08 16:53:47 +01:00
Claudio Ortolina ea8465b569 Show flash when static assets have changed 2024-10-08 09:49:48 +01:00
Claudio Ortolina 8e615658f8 Allow pagination component to be used multiple times
Enables further experimentation with multiple pagination controls on the
same page (not necessarily a good idea).
2024-10-08 08:56:25 +01:00
Claudio Ortolina b01e335db1 Increase pagination padding 2024-10-07 23:03:07 +01:00
Claudio Ortolina e404808c06 Add record count in records list 2024-10-07 22:59:38 +01:00
Claudio Ortolina 33f4cb11be Use a different icon for home stats 2024-10-07 15:26:04 +01:00
Claudio Ortolina bc2126cb8d Make pagination colors consistent with the everything else 2024-10-07 15:20:26 +01:00
Claudio Ortolina 1e245547bc Display no results notice in import dialog 2024-10-07 15:16:41 +01:00
Claudio Ortolina d4f93eae03 Shorten Import button text 2024-10-07 15:11:23 +01:00
Claudio Ortolina cd1331bbc6 Sort formats by descending count in stats 2024-10-07 15:05:54 +01:00
Claudio Ortolina ddbda5b4d2 Normalize display of artist names 2024-10-07 14:57:30 +01:00
Claudio Ortolina 764c4cebb3 Fix mobile spacing issues with links 2024-10-07 14:49:00 +01:00
Claudio Ortolina 0bf96d0470 Allow png cover uploads 2024-10-07 12:39:28 +01:00
Claudio Ortolina eb9697d36e Fix mobile spacing issues with links 2024-10-07 11:21:36 +01:00
Claudio Ortolina fa0be0d740 Use fallback cover when not found 2024-10-07 10:28:49 +01:00
Claudio Ortolina be9dc37ed5 Use long labels for formats in stats page 2024-10-07 10:04:31 +01:00
Claudio Ortolina 409a8414d0 Fix stats layout to account for more groups 2024-10-07 10:01:30 +01:00
Claudio Ortolina 2e950325cb Add test to verify that musicbrainz_data gets stored 2024-10-07 08:39:22 +01:00
Claudio Ortolina 11a8149bcc Store MusicBrainz release group data on records 2024-10-07 08:36:56 +01:00
Claudio Ortolina 2c3babdf13 Normalize music_brainz -> musicbrainz spell 2024-10-07 08:27:47 +01:00
Claudio Ortolina 3934fe1fb7 Update example in get_release_group/1 2024-10-07 08:23:21 +01:00
Claudio Ortolina 94ca2ab625 Move databases into /data 2024-10-07 08:12:05 +01:00
Claudio Ortolina ecfeeb3158 Improve behaviour of "Back to records" link
When possible, maintain search and pagination params.
2024-10-07 08:04:24 +01:00
Claudio Ortolina dcde30ba86 Extend script to restore remote data to local 2024-10-06 16:16:23 +01:00
Claudio Ortolina ac27e86fb5 Rename /images to /covers 2024-10-06 16:06:33 +01:00
Claudio Ortolina 6913ee2d8d Simplify import logic and add relevant tests
Import directly redirects to the record - previous version was buggy and
worked completely by chance.

In addition, this commit adds extensive tests around importing a record
via use of mocks.
2024-10-05 21:46:52 +01:00
Claudio Ortolina a72236449d Extract musicbrainz behaviour and impl 2024-10-05 20:30:18 +01:00
Claudio Ortolina ea6a856f30 Rename test for consistency 2024-10-04 20:41:35 +01:00
Claudio Ortolina 220dfe3c89 Add record show tests 2024-10-04 20:40:55 +01:00
Claudio Ortolina 6a8d4f1e54 Revert "Ensure code is formatted on CI"
This reverts commit 63e63b3bb4.
2024-10-04 12:47:56 +01:00
Claudio Ortolina 63e63b3bb4 Ensure code is formatted on CI 2024-10-04 12:44:27 +01:00
Claudio Ortolina 8a67736476 Uniform CI job names 2024-10-04 12:44:08 +01:00
Claudio Ortolina ec0a96087c Improve cover upload input
- Enable drag and drop (invisible)
- Show upload progress
- Add relevant tests
2024-10-04 12:07:00 +01:00
Claudio Ortolina d191ff50fd Set default font to Inter 2024-10-03 23:18:32 +01:00
Claudio Ortolina 70ca206b5d Show artists for latest record 2024-10-03 23:10:55 +01:00
Claudio Ortolina 360b287a2c Space out genre badges 2024-10-03 20:12:39 +01:00
Claudio Ortolina 995ec3f624 Render format and type selects on the same line
With the exception of mobile, where the stacked layout still makes
sense.
2024-10-03 20:10:51 +01:00