Commit Graph

640 Commits

Author SHA1 Message Date
Claudio Ortolina 500455481f Set the LastFm http client to terminate idle connections after 30 secs
This change attempts at solving the issue of the application being woken
up after suspension and being unable to talk to the LastFm API (i.e.
throwing plenty of Mint/timeout errors).

The theory is that with this setting the application should quickly
enough restart the pool after waking up.
2025-03-01 07:25:05 +00:00
Claudio Ortolina 545dd808b7 Address Tailwind deprecations and renames 2025-02-28 20:55:36 +00:00
Claudio Ortolina a218942110 Remove mox in favour of built-in Req stubs 2025-02-28 16:41:16 +00:00
Claudio Ortolina 8aa283cb84 Refactor MusicBrainz.APIImpl to use Req 2025-02-28 11:19:37 +00:00
Claudio Ortolina 0d11df4279 Format mix task info messages to improve readability 2025-02-28 07:57:56 +00:00
Claudio Ortolina 74602323ee Use pattern matching to improve readability 2025-02-27 16:33:09 +00:00
Claudio Ortolina 47bfe736ef Remove unused LastFm.Finch pool 2025-02-27 16:29:34 +00:00
Claudio Ortolina 68d8fa4d3c Improve readability by moving on one line 2025-02-27 13:47:45 +00:00
Claudio Ortolina 7ac2f7a815 Remove LastFm.APIBehaviour 2025-02-27 13:43:49 +00:00
Claudio Ortolina 3d11cd585d Use built-in Req stub for LastFm tests 2025-02-27 13:43:49 +00:00
Claudio Ortolina 522b3034aa Rewrite LastFm.APIImpl using Req 2025-02-27 13:43:48 +00:00
Claudio Ortolina eb6d49fe96 Allow longer LastFm refresh times 2025-02-27 13:43:48 +00:00
Claudio Ortolina 1902c5f42f Sign and encrypt cookies 2025-02-24 11:02:00 +00:00
Claudio Ortolina fabc3a7557 Set strict session for a week 2025-02-24 11:01:45 +00:00
Claudio Ortolina 2617094e7b Always reset artist records when patching the page 2025-02-23 19:17:27 +00:00
Claudio Ortolina a7a95efde2 Make render bio work on bio summary as well 2025-02-23 19:12:22 +00:00
Claudio Ortolina 3599ab19a1 Reformat artist show page 2025-02-23 19:12:02 +00:00
Claudio Ortolina 825c00dd50 Add summary to artist 2025-02-23 18:53:28 +00:00
Claudio Ortolina c67d11da0c Show similar artists in artist page
Styling to be defined - only links for now.
2025-02-23 16:56:52 +00:00
Claudio Ortolina 1685354487 Remove unnecessary hover effect on barcode results 2025-02-22 13:35:38 +00:00
Claudio Ortolina 15b60a4619 Link badges in barcode scanner results 2025-02-22 13:34:21 +00:00
Claudio Ortolina 570ce4b145 Can count records by genre 2025-02-22 10:34:56 +00:00
Claudio Ortolina 358dc10138 Ping production instance before backing up the db 2025-02-22 10:00:15 +00:00
Claudio Ortolina 889ba61e4c Extract LastFm module 2025-02-21 16:02:18 +00:00
Claudio Ortolina 4835d4bdee Move DataComponents to /components 2025-02-21 15:45:47 +00:00
Claudio Ortolina 7df136c890 Sort aliases 2025-02-20 15:27:01 +00:00
Claudio Ortolina 184c110599 Don't use parentheses on 0-arity function definitions 2025-02-20 15:27:01 +00:00
Claudio Ortolina b2daa561d7 Use aliases 2025-02-20 15:27:01 +00:00
Claudio Ortolina 26297a8bb1 Avoid unnecessary module attributes 2025-02-20 15:08:39 +00:00
Claudio Ortolina ab2d1726bf Use Application.app_dir/2 instead of :code.priv_dir 2025-02-20 15:04:29 +00:00
Claudio Ortolina 502436c987 Move api_key resolution to OpenAI module 2025-02-20 09:17:28 +00:00
Claudio Ortolina 72cc2bf0c4 Move all components under /components 2025-02-20 09:11:27 +00:00
Claudio Ortolina 55538903d4 Consolidate record components into one module 2025-02-20 09:04:47 +00:00
Claudio Ortolina 0873b12eed Fix buttons/links for scanner modal in dark mode 2025-02-19 18:58:20 +00:00
Claudio Ortolina 4ca6421767 Can barcode scan a wishlisted record and import it 2025-02-19 15:47:09 +00:00
Claudio Ortolina 818e8918ff Remove outline from camera button 2025-02-19 11:17:54 +00:00
Claudio Ortolina d09622b433 Add some debug logs when scanning barcodes 2025-02-19 11:16:32 +00:00
Claudio Ortolina ce75b42d06 Show record status when scanning
For now it only imports new records - it should also purchase wishlisted
ones.
2025-02-19 10:21:44 +00:00
Claudio Ortolina 5ef05a94f5 Move badge/1 to core components 2025-02-19 09:49:05 +00:00
Claudio Ortolina adabb6ad28 Fix refresh fixtures Mix task 2025-02-18 20:38:11 +00:00
Claudio Ortolina 17a1e87be5 Fix 'variable name before the pattern' consistency issue 2025-02-18 12:41:10 +00:00
Claudio Ortolina 50b025efca Refactor with to avoid internal assignments 2025-02-18 12:38:29 +00:00
Claudio Ortolina 025a5105ed Use map_join instead of map+join 2025-02-18 10:14:31 +00:00
Claudio Ortolina 94a2784020 Move function in MusicBrainz main module 2025-02-17 22:07:49 +00:00
Claudio Ortolina dd9be660a9 Convert seeds to obsidian.import task 2025-02-17 20:55:44 +00:00
Claudio Ortolina 37f72261c3 Extract MusicBrainz main module 2025-02-17 17:30:13 +00:00
Claudio Ortolina 5a391eb549 Use a button group for import/scan 2025-02-17 09:11:45 +00:00
Claudio Ortolina 6d0eeccbb7 Add TODOs for moving logic to MusicBrainz context 2025-02-17 08:47:59 +00:00
Claudio Ortolina dfcfd1a066 Move import releases button at the bottom
Disabled when no records are present.
2025-02-16 14:07:02 +00:00
Claudio Ortolina 23fab67e53 Add TODO around scanning an already collected record 2025-02-16 13:45:23 +00:00