Claudio Ortolina
fa535393e0
Fix toggling/scrobbling event handlers in scrobble anything show view
2026-03-10 20:04:39 +00:00
Claudio Ortolina
f86800368d
Streamline test suite
...
record_set_live/index_test.exs — Removed 3 describe blocks ("Delete set", "Remove record from set", "Drag-and-drop reorder") that were duplicated in ShowTest. Removed 3 tests.
record_set_live/show_test.exs — Replaced context-level assertion in "Remove record" with UI assertion (refute has_element?). Removed redundant assert_raise from "Delete set" (kept assert_redirect).
scrobble_rules_live/index_test.exs — Removed "Form validation" describe block (2 tests duplicated in "saves new scrobble_rule" and changeset tests). Kept the "updates form labels" test, moved into "Index"
block. Replaced ScrobbleRules.get_scrobble_rule! assertions in toggle test with UI assertions checking button text.
online_store_template_live/index_test.exs — Replaced context-level assertions with UI assertions in Create, Edit, Delete, and Toggle tests. Removed OnlineStoreTemplates alias.
scrobbled_tracks_live/index_test.exs — Collapsed 3 search tests into 1. Removed 2 tests.
2026-03-09 18:55:07 +00:00
Claudio Ortolina
1bc01a2346
Fix flaky collection live index test
2026-03-09 13:38:24 +00:00
Claudio Ortolina
4584b7bcb8
Remove drop down from record set items
...
Have just a bin icon, and rely on drag and drop.
This solves a massive performance issue with the page, which is
traceable to the Fluxon dropdowns, particularly the Class.merge logic
used to merge Tailwind classes
2026-03-08 13:21:33 +00:00
Claudio Ortolina
52815bde2f
When doing markdown to HTML, sanitize HTML
...
Closes #101
Closes #102
2026-03-07 19:05:37 +00:00
Claudio Ortolina
f75485e5db
Small optimizations to speed up the test suite
...
Shaves off 1 second on M1
2026-03-07 09:13:02 +00:00
Claudio Ortolina
c3cb510892
Convert phoenix_test assertions to simplified syntax
2026-03-06 06:41:06 +00:00
Claudio Ortolina
08f7565d44
Replace inspect(reason) with friendly error messages
...
Closes #81
2026-03-05 20:25:13 +00:00
Claudio Ortolina
4b1f6bb245
Fix inconsistent toast arity in form components
...
Closes #94
2026-03-05 17:06:23 +00:00
Claudio Ortolina
42a51b9539
Add test coverage for ScrobbleLive Index and Show
2026-03-05 14:52:58 +00:00
Claudio Ortolina
de14ec3e25
Consolidate completely stateless tests into doctests
...
Removing dupes
2026-03-03 11:30:52 +00:00
Claudio Ortolina
a0df11d26f
Use new style for MB link and copy button in artist page
2026-03-01 20:19:46 +00:00
Claudio Ortolina
bfbb74d601
BETA: new layout for record details page
2026-02-26 08:49:40 +00:00
Claudio Ortolina
23d6e736e7
Uniform ux/ui of adding a new record to a set
2026-02-15 14:24:02 +00:00
Claudio Ortolina
fe748782c7
Reorder record sets via drag and drop
2026-02-10 11:16:41 +00:00
Claudio Ortolina
f82e764c94
Add tests for Last.fm controller
2026-02-09 11:12:38 +00:00
Claudio Ortolina
fc307a0aba
Add tests for health controller
2026-02-09 11:12:02 +00:00
Claudio Ortolina
356efb1c65
Add tests for archive controller
2026-02-09 11:11:41 +00:00
Claudio Ortolina
68956978e1
Add show route for record sets
2026-02-07 16:09:26 +00:00
Claudio Ortolina
29dc57abdb
Simplify record sets page structure (no title, better margins)
2026-02-07 13:47:42 +00:00
Claudio Ortolina
84159a1c0d
Improve test coverage
...
Files Created (8 files, 54 new tests)
Fixtures
1. test/support/fixtures/music_library/record_sets.ex — record_set/1
and record_set_with_records/2 helpers
2. test/support/fixtures/music_library/online_store_templates.ex —
online_store_template/1 helper
Context Tests
3. test/music_library/record_sets_test.exs — 20 tests covering search,
count, CRUD, add/remove/move records
4. test/music_library/online_store_templates_test.exs — 8 tests
covering list, CRUD, URL generation, validation
5. test/music_library/search_test.exs — 5 tests covering universal
search and search counts
6. test/music_library/notes_test.exs — 4 tests covering get, create,
update
LiveView Tests
7. test/music_library_web/live/record_set_live/index_test.exs — 11
tests covering listing, empty state, search, ordering,
create/edit/delete sets, remove records, reorder records
8.
test/music_library_web/live/online_store_template_live/index_test.exs —
6 tests covering listing, create/edit/delete, toggle enabled
Results
- 297 tests, 0 failures (up from 243 — 54 new tests added)
- All existing tests continue to pass
There's a remaining gettext warning that needs to be investigated
2026-02-07 10:39:22 +00:00
Claudio Ortolina
9666b24b4a
Standardize button labels
2025-12-14 09:25:41 +03:00
Claudio Ortolina
0df348ae19
Add pagination for scrobble rules
2025-12-14 09:21:13 +03:00
Claudio Ortolina
84e7c06d27
Can edit scrobbled tracks album/artist mbids
2025-12-09 14:38:01 +00:00
Claudio Ortolina
5692be4e63
Update dependencies
...
credo 1.7.13 => 1.7.14 - requires updates to pass updated checks
2025-12-01 16:09:51 +00:00
Claudio Ortolina
71f7a38fee
Don't use streams for records on this day
2025-11-26 18:50:35 +00:00
Claudio Ortolina
997ac40cc5
Fix broken test
2025-11-09 19:22:53 +00:00
copilot-swe-agent[bot]
36d1ba1b48
Fix hook and add keyboard navigation tests
...
Co-authored-by: cloud8421 <537608+cloud8421@users.noreply.github.com >
2025-11-09 19:22:53 +00:00
Claudio Ortolina
ed99f6bda8
Implement dense grid as variation of normal grid
2025-11-03 09:49:51 +00:00
Claudio Ortolina
12272608bc
Default collection and wishlist to a grid layout
2025-11-03 09:49:50 +00:00
Claudio Ortolina
f4808c25c2
Update dependencies
...
phoenix_test 0.8.2 => 0.8.3
Includes a test fix due to PhoenixTest having changed the logic used to
match text content in a nested selector.
2025-10-27 15:21:26 +00:00
Claudio Ortolina
e1a1ddd682
Speed up test
...
There are only 20 tracks per page, so 21 tracks are enough
2025-10-26 14:23:14 +00:00
Claudio Ortolina
89db253e59
Refactor test to use PhoenixTest APIs
2025-10-25 13:35:21 +01:00
Claudio Ortolina
4dc80cf739
Make test actually work
2025-10-25 13:18:05 +01:00
Claudio Ortolina
49b5075222
More speed up test
2025-10-25 13:07:35 +01:00
Claudio Ortolina
0b56e01162
Speed up test
...
Entire spec is AI generated and needs to be revised.
2025-10-25 12:59:14 +01:00
Claudio Ortolina
59eb603b3f
Return more record information in the API
2025-10-25 11:52:50 +01:00
Claudio Ortolina
f02564fa30
Add /api/collection/on_this_day endpoint
2025-10-24 20:06:23 +01:00
Claudio Ortolina
35aec967fe
Simplify tests using PhoenixTest
2025-10-22 10:52:22 +01:00
Claudio Ortolina
40143df96d
Add tests for universal search
2025-10-22 09:23:54 +01:00
Claudio Ortolina
90b3fa1fdc
Refactor Records.Cover to Assets.Image
2025-09-20 07:42:38 +03:00
Claudio Ortolina
e158345674
Change /covers to /assets
2025-09-18 21:26:16 +03:00
Claudio Ortolina
aa72692eaf
Cache transformations
2025-09-17 16:54:47 +03:00
Claudio Ortolina
b0f4e18ef7
Fix API collection record cover URLs
2025-09-17 11:24:14 +03:00
Claudio Ortolina
0996b78c7b
Use Transforms to serve covers at the right size
2025-09-17 10:26:38 +03:00
Claudio Ortolina
d932498c11
Rename tests for consistency
2025-09-17 09:12:07 +03:00
Claudio Ortolina
e7c2b92a3b
Remove track count from scrobbled tracks list
2025-09-17 09:11:03 +03:00
Claudio Ortolina
f42f050de0
Simplify scrobbled tracks layout
...
Remove no results view
2025-09-16 21:01:44 +03:00
Claudio Ortolina
a0647ab91a
Remove buggy tests
2025-09-16 13:15:23 +03:00
Claudio Ortolina
dae334b1b7
Scrobbled tracks CRUD
...
- Failing tests
- Warnings
2025-09-16 12:45:36 +03:00