Commit Graph

72 Commits

Author SHA1 Message Date
Claudio Ortolina b042c54d6b Move record leading into handle_params
Loading records in mount/3 proved to be useless, and only caused more
load for nothing. Moving it in handle_params made the app faster, at the
expense of complicating a couple of other actions (edit and import)
which needed to be extended to concern themselves about records.
2024-10-16 12:49:14 +01:00
Claudio Ortolina 0218f8223c Add more artist links with correct style 2024-10-15 23:03:20 +01:00
Claudio Ortolina 6e3300429b Collection defaults to 100 records per page 2024-10-15 22:53:41 +01:00
Claudio Ortolina f89b9173f6 Navigate to individual artist from collection 2024-10-15 15:41:04 +01:00
Claudio Ortolina 754109f77e Remove layout repaint due to covers refresh 2024-10-15 15:24:35 +01:00
Claudio Ortolina 18937865bf Improve record details styling 2024-10-15 15:19:40 +01:00
Claudio Ortolina dafcd0ed6f Fix side padding inconsistencies in collection view 2024-10-15 14:58:14 +01:00
Claudio Ortolina 2cd376ae5d Improve styling of search bar
- Larger for more space
- Border color and focused state consistent with rest of application
2024-10-15 08:17:39 +01:00
Claudio Ortolina 9d76f3dfb7 Display releases in localized date format 2024-10-14 16:36:41 +01:00
Claudio Ortolina 6c9d1775d7 Rename application sections 2024-10-13 21:58:12 +01:00
Claudio Ortolina 02a071be28 Disable autocorrect and autocapizalize in search field 2024-10-10 10:59:03 +01:00
Claudio Ortolina 10003c34f6 Include timestamps in record detail page 2024-10-10 08:00:07 +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 e404808c06 Add record count in records list 2024-10-07 22:59:38 +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 ddbda5b4d2 Normalize display of artist names 2024-10-07 14:57:30 +01:00
Claudio Ortolina 0bf96d0470 Allow png cover uploads 2024-10-07 12:39:28 +01:00
Claudio Ortolina 2c3babdf13 Normalize music_brainz -> musicbrainz spell 2024-10-07 08:27:47 +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 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 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 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
Claudio Ortolina 8ee1fec3cb Allow editing of record format 2024-10-03 18:51:24 +01:00
Claudio Ortolina 040c73ce59 Remove column labels from record list 2024-10-03 10:38:33 +01:00
Claudio Ortolina 1e0d5486e0 Rename image* to cover* 2024-10-02 16:33:42 +01:00
Claudio Ortolina 024d95da7c Use release instead of year 2024-10-02 14:22:22 +01:00
Claudio Ortolina 83c70d4ec3 Make import format choice buttons visible on mobile 2024-10-01 22:37:46 +01:00
Claudio Ortolina df83d0a82b Fix inconsistencies in import and search 2024-10-01 22:32:05 +01:00
Claudio Ortolina a3eaaef9d2 Move release group assembling logic into MB module 2024-10-01 17:22:31 +01:00
Claudio Ortolina e7405f4c71 Fix wrong event name for import logic 2024-10-01 17:22:11 +01:00
Claudio Ortolina c89ef20b07 Make input names for search(es) more consistent 2024-09-30 21:45:34 +01:00
Claudio Ortolina 9c7a2917a9 Style the record type when showing an album 2024-09-30 20:33:28 +01:00
Claudio Ortolina 180224d381 Store image hashes in the db - part 1 2024-09-30 20:09:32 +01:00
Claudio Ortolina 9cd24bad17 No need to keep uploaded images in the socket
As images are only processed on save AFTER validation, we can avoid
keeping them in the socket, with the only downside of losing a little
resilience in case the save operation errors out (in which case the
upload would be lost).
2024-09-30 13:50:07 +01:00
Claudio Ortolina 1f1c69f738 Allow uploading custom cover art 2024-09-30 10:31:45 +01:00
Claudio Ortolina a1c782a670 Fix artwork shadow in record list 2024-09-30 09:40:42 +01:00
Claudio Ortolina 547195e455 Improve show record interface
Use a single column layout on mobile, with centered buttons.
2024-09-30 09:40:26 +01:00
Claudio Ortolina c58f783e9e Fix double render of records
Records were rendered twice due to handle_params reassigning data
irrespectively of the need for it.
2024-09-30 09:16:15 +01:00
Claudio Ortolina ccd3dbfa74 Add top navigation 2024-09-29 22:54:57 +01:00
Claudio Ortolina e00c926afe Fix positioning of format labels 2024-09-28 20:25:27 +01:00
Claudio Ortolina 64ea8fe3fa Extend import to support choosing format 2024-09-28 20:23:22 +01:00
Claudio Ortolina 82e5962c74 Add record format (defaulting to CD) 2024-09-28 19:16:15 +01:00
Claudio Ortolina 02dccaf042 Use icons in record list 2024-09-28 15:55:50 +01:00
Claudio Ortolina 92de18e493 Restyle records list to work better on mobile 2024-09-27 10:25:09 +01:00
Claudio Ortolina ae45ab44df Can search and paginate records 2024-09-27 09:46:45 +01:00
Claudio Ortolina cebc50e107 Make delete button red
Not sure if this is the correct Tailwind approach though.
2024-09-24 22:54:26 +01:00