quintodrome/ui/src/utils
zacaj 3294bcacfc
feat: add Rated At field - #4653 (#4660)
* feat(model): add Rated At field - #4653

Signed-off-by: zacaj <zacaj@zacaj.com>

* fix(ui): ignore empty dates in rating/love tooltips - #4653

* refactor(ui): add isDateSet util function

Signed-off-by: zacaj <zacaj@zacaj.com>

* feat: add tests for isDateSet and rated_at sort mappings

Added comprehensive tests for isDateSet and urlValidate functions in
ui/src/utils/validations.test.js covering falsy values, Go zero date handling,
valid date strings, Date objects, and edge cases.

Added rated_at sort mapping to album, artist, and mediafile repositories,
following the same pattern as starred_at (sorting by rating first, then by
timestamp). This enables proper sorting by rating date in the UI.

---------

Signed-off-by: zacaj <zacaj@zacaj.com>
Co-authored-by: zacaj <zacaj@zacaj.com>
Co-authored-by: Deluan <deluan@navidrome.org>
2025-11-24 23:18:05 -05:00
..
calculateReplayGain.js fix(ui): show effective dB of track when playing (#3293) 2024-09-21 16:46:14 -04:00
formatters.js test: fix locale-dependent tests by making formatNumber locale-aware (#4619) 2025-11-06 14:34:00 -05:00
formatters.test.js test: fix locale-dependent tests by making formatNumber locale-aware (#4619) 2025-11-06 14:34:00 -05:00
index.js feat(ui): add Play Artist's Top Songs button (#4204) 2025-06-09 19:09:04 -04:00
intersperse.js Reformat code with Prettier's new rules. 2023-12-18 15:12:24 -05:00
notifications.js Fix formatting 2020-11-21 02:03:54 -05:00
openInNewTab.js Implement Last.fm account linking UI 2021-06-23 11:01:58 -04:00
removeHomeCache.js fix(ui): remove index.html from service worker cache after creating admin user (#3642) 2025-01-12 18:32:02 -05:00
urls.js fix(share): force share image to be square (to fix aspect ratio) (#4122) 2025-05-26 17:39:05 -04:00
validations.js feat: add Rated At field - #4653 (#4660) 2025-11-24 23:18:05 -05:00
validations.test.js feat: add Rated At field - #4653 (#4660) 2025-11-24 23:18:05 -05:00