Commit Graph

612 Commits

Author SHA1 Message Date
Claudio Ortolina f71fa6fa25 Make search smaller on desktop, full width on mobile 2024-12-23 17:11:39 +00:00
Claudio Ortolina 8b877e7ede Shrink input text size at smallest viewport 2024-12-23 17:08:44 +00:00
Claudio Ortolina fe05efb06d Prevent pinch to zoom
I wouldn't normally do this, but I'm the only user and I'm ok with it.
2024-12-23 17:04:31 +00:00
Claudio Ortolina 3e07b50bdf Add red accent to navigation menu 2024-12-23 16:38:04 +00:00
Claudio Ortolina 084ec04079 Add prod tests for cover URLs 2024-12-22 22:20:29 +00:00
Claudio Ortolina 3abcf5d7dd Run hurl in test mode
So that it can output test results.
2024-12-22 22:20:18 +00:00
Claudio Ortolina 97f26e0cd2 Serve covers under API namespace as well 2024-12-22 22:15:24 +00:00
Claudio Ortolina 962d6a0cb0 Run HURL tests on production env after deploy 2024-12-22 19:11:28 +00:00
Claudio Ortolina c92e7cc76a Add HURL production test suite 2024-12-22 18:50:30 +00:00
Claudio Ortolina f1af38606a Protect API behind a bearer token 2024-12-22 18:32:04 +00:00
Claudio Ortolina c18379801f Rename function 2024-12-22 18:23:15 +00:00
Claudio Ortolina c47408699d Update dependencies
ecto_sqlite3 0.17.6 => 0.18.0
2024-12-22 18:20:32 +00:00
Claudio Ortolina cf3761ca79 Fold RequireLogin plug into Auth module 2024-12-22 16:12:31 +00:00
Claudio Ortolina 341d276db5 Include artists and cover in latest record JSON 2024-12-22 15:55:41 +00:00
Claudio Ortolina 75506b6e1c Rename AUTH_PASSWORD -> LOGIN_PASSWORD 2024-12-21 15:02:22 +00:00
Claudio Ortolina 53e8d88b6a Rename auth_password -> login_password 2024-12-21 14:57:44 +00:00
Claudio Ortolina 7214597aeb Update translations 2024-12-21 14:57:44 +00:00
Claudio Ortolina 98087ae568 Extract MusicLibraryWeb.Auth module 2024-12-21 14:48:32 +00:00
Claudio Ortolina 4f456322fc Bootstrap the /api namespace 2024-12-21 14:38:39 +00:00
Claudio Ortolina 89c9c4bf74 Add CI check for unused dependencies 2024-12-20 21:20:59 +00:00
Claudio Ortolina 55d1ea3460 Update dependencies
hpax 1.0.1 => 1.0.2
2024-12-20 21:14:38 +00:00
Claudio Ortolina 1cf61871fd Update dependencies
ecto_sqlite3 0.17.5 => 0.17.6
2024-12-20 11:10:00 +00:00
Claudio Ortolina 4be2330891 Fix prompt to avoid the result being returned in a code block
Not sure why this is needed, considering that the API call clearly
specifies the `json_object` response format.
2024-12-19 21:05:02 +00:00
Claudio Ortolina 1b7e940932 Merge pull request #9 from cloud8421/cloud8421/fix-cache-key-to-include-tool-versions
Include OTP and Elixir version in cache keys
2024-12-19 20:37:49 +00:00
Claudio Ortolina 7b2d641190 Include OTP and Elixir version in cache keys 2024-12-19 20:32:30 +00:00
Claudio Ortolina 9dce1cacb9 Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and
pretty print, as JSON doesn't have such functionality.
2024-12-19 20:18:09 +00:00
Claudio Ortolina aaad2561ec Update to OTP 27.2 2024-12-19 19:59:32 +00:00
Claudio Ortolina 45df749200 No need to create a range when total_pages is 0
Fixes:

warning: Range.new/2 and first..last default to a step of -1 when last < first.
Use Range.new(first, last, -1) or first..last//-1, or pass 1 if that was your intention
2024-12-19 19:07:08 +00:00
Claudio Ortolina 129e9e680f Update to Elixir 1.18 2024-12-19 19:04:35 +00:00
Claudio Ortolina e363328c12 Ignore Lexical build folder 2024-12-19 19:04:34 +00:00
Claudio Ortolina 832e835252 Add function to get embeddings for arbitrary string 2024-12-18 22:20:41 +00:00
Claudio Ortolina d76c108896 Rename file to match module name 2024-12-18 21:58:07 +00:00
Claudio Ortolina 676a9ba681 Add missing instructions for OPENAI_KEY environment variable 2024-12-18 16:44:17 +00:00
Claudio Ortolina 6bef3bed05 Add total for collection and wishlist albums in artist view 2024-12-18 11:33:48 +00:00
Claudio Ortolina a3306c84c3 Increase album grid density in artist view 2024-12-18 11:27:07 +00:00
Claudio Ortolina 53b89dc329 Extract Artists context 2024-12-18 11:12:06 +00:00
Claudio Ortolina 76605a1114 Add function to get similar artists 2024-12-17 20:44:31 +00:00
Claudio Ortolina c60108292a Scroll to top when paginating on small viewports 2024-12-16 18:03:26 +00:00
Claudio Ortolina 637434b50d Underscore unused variable 2024-12-15 19:02:58 +03:00
Claudio Ortolina 019d2fb7f2 Reduce size of test data in stats test
Test is equally effective and a few times faster.
2024-12-15 18:57:48 +03:00
Claudio Ortolina e4fe4e7f4b Cache images for 24 hours 2024-12-15 12:09:29 +03:00
Claudio Ortolina 6660d195e4 Decrease visible records per page
After months of usage, I rarely paginate the list, so it's not necessary
to load 100 at a time. 20 is enough.

By matching 20 records with a 20 pool size, we should keep the repo
queue time to a minimum.
2024-12-15 11:15:46 +03:00
Claudio Ortolina 35435e11c0 Performance tuning
To decrease the repo queue time, we increase the pool size to 10, and
increas RAM accordingly.
2024-12-15 10:59:24 +03:00
Claudio Ortolina 6efe026629 Try and run deploy explicitly on ubuntu-24.04
This addresses an annotation by GitHub:

ubuntu-latest pipelines will use ubuntu-24.04 soon.
For more details, see https://github.com/actions/runner-images/issues/10636
2024-12-15 10:46:57 +03:00
Claudio Ortolina 3fbd6ba1bf Use release and release group fixtures with names everywhere 2024-12-14 23:52:09 +03:00
Claudio Ortolina 4ede4e3736 Add test for importing a record from scrobble activity 2024-12-14 23:41:39 +03:00
Claudio Ortolina a19d42ae30 Add more fixtures for release groups and releases 2024-12-14 23:24:21 +03:00
Claudio Ortolina 632f5c4661 Include album names in mb fixtures 2024-12-14 23:19:14 +03:00
Claudio Ortolina c705517415 Restore import functionality from stats
Accidentally removed in 135d1c2.
2024-12-14 17:23:59 +03:00
Claudio Ortolina 2fbe9db016 Refactor test to extract data dependencies 2024-12-14 17:16:55 +03:00