Commit Graph

29 Commits

Author SHA1 Message Date
Claudio Ortolina 65899b8077 Add tests for /api/collection/random endpoint 2025-01-01 20:57:01 +00:00
Claudio Ortolina 97533416f7 Support arbitrary resizing in cover controller 2024-12-31 11:58:30 +00:00
Claudio Ortolina 68b2d48228 Return thumb_url in latest record response 2024-12-31 11:39:36 +00:00
Claudio Ortolina 97f26e0cd2 Serve covers under API namespace as well 2024-12-22 22:15:24 +00:00
Claudio Ortolina f1af38606a Protect API behind a bearer token 2024-12-22 18:32:04 +00:00
Claudio Ortolina 341d276db5 Include artists and cover in latest record JSON 2024-12-22 15:55:41 +00:00
Claudio Ortolina 53e8d88b6a Rename auth_password -> login_password 2024-12-21 14:57:44 +00:00
Claudio Ortolina 4f456322fc Bootstrap the /api namespace 2024-12-21 14:38:39 +00:00
Claudio Ortolina e4fe4e7f4b Cache images for 24 hours 2024-12-15 12:09:29 +03:00
Claudio Ortolina d9773bf45d Improve test description 2024-11-29 17:21:42 +00:00
Claudio Ortolina 7d574c7fd9 Convert stats page to a live view 2024-10-29 16:32:34 +00:00
Claudio Ortolina 79edd6eade Add missing index to records table
Updates a relevant test to remove flakyness
2024-10-22 22:15:13 +01:00
Claudio Ortolina 65a6bbbea9 Increase tests counts
Makes distribution of counts more interesting, reducing false positives
in the assertions (which are very simple)
2024-10-22 18:36:13 +01:00
Claudio Ortolina bb74057c31 Include wishlist count in stats page 2024-10-22 18:29:51 +01:00
Claudio Ortolina 913694b380 Rename "Sign in" to "Login" 2024-10-22 13:37:48 +01:00
Claudio Ortolina be314e3916 Reset session when hitting /login 2024-10-21 09:59:29 +01:00
Claudio Ortolina 28609dcf87 Display latest purchase in stats page 2024-10-19 19:46:39 +01:00
Claudio Ortolina 2661c9f60d Display type stats 2024-10-14 22:33:05 +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 1fdf36ea8a Include artists in record test fixture 2024-10-10 10:02:03 +01:00
Claudio Ortolina 52c1be1e32 Restructure stats
Split out count by format
2024-10-08 20:36:39 +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 be9dc37ed5 Use long labels for formats in stats page 2024-10-07 10:04:31 +01:00
Claudio Ortolina ac27e86fb5 Rename /images to /covers 2024-10-06 16:06:33 +01:00
Claudio Ortolina 70ca206b5d Show artists for latest record 2024-10-03 23:10:55 +01:00
Claudio Ortolina e7fc335251 Correctly return 404s in /images endpoint 2024-10-03 16:14:27 +01:00
Claudio Ortolina 60939a304b Remove autogenerated home route
Renders records instead.
2024-09-27 19:59:15 +01:00
Claudio Ortolina 705fd665d2 Formatter pass 2024-09-15 20:28:37 +01:00
Claudio Ortolina d547ee6f8d Generate project
Using `mix phx.new music_library --database sqlite3 --binary-id --no-mailer`
2024-09-12 14:05:08 +01:00