quintodrome/ui/src
Deluan Quintão e3aec6d2a9
feat(ui): implement RecentlyAddedByModTime support for tracks (#4046) (#4279)
* fix: implement RecentlyAddedByModTime support for mediafiles

Fixes #4046 by adding recently_added sort mapping to MediaFileRepository that respects the RecentlyAddedByModTime configuration setting. Previously, this feature only worked for albums, causing inconsistent behavior when clients requested tracks sorted by 'recently added'.

Changes include:
- Add mediaFileRecentlyAddedSort() function that returns 'updated_at' when RecentlyAddedByModTime=true, 'created_at' otherwise
- Add 'recently_added' sort mapping to mediafile repository
- Add comprehensive tests to verify both configuration scenarios

This ensures consistent sorting behavior between albums and tracks when using the RecentlyAddedByModTime feature.

* fix: update createdAt field to sort by recently added

Modified the createdAt field in the SongList component to include a sortBy
attribute set to "recently_added". This change ensures that the media files
are displayed in the order they were added, improving the user experience
when browsing through recently added items.

Signed-off-by: Deluan <deluan@navidrome.org>

* better testing

Signed-off-by: Deluan <deluan@navidrome.org>

---------

Signed-off-by: Deluan <deluan@navidrome.org>
2025-06-30 09:14:35 -04:00
..
actions fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
album fix(ui): update titles for radios, shares and show pages (#4128) 2025-05-27 09:01:52 -04:00
artist feat(server): expose main credit stat to reflect only album artist | artist credit (#4268) 2025-06-28 19:00:13 -04:00
audioplayer feat(plugins): experimental support for plugins (#3998) 2025-06-22 20:45:38 -04:00
common feat(ui): add song Love and Rating functionality to playlist view (#4134) 2025-06-04 20:38:28 -04:00
dataProvider feat(ui): add 'Show in Playlist' context menu (#4139) 2025-05-30 21:26:35 -04:00
dialogs fix(ui): update AboutDialog styles and improve layout 2025-06-13 17:55:15 -04:00
i18n feat(server): expose main credit stat to reflect only album artist | artist credit (#4268) 2025-06-28 19:00:13 -04:00
icons build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
layout fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
missing fix(ui): update artist link rendering and improve button styles 2025-05-23 17:42:19 -04:00
personal fix(ui): show last.fm api-key missing in a FormHelperText 2024-12-19 16:59:26 -05:00
player build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
playlist feat(ui): add song Love and Rating functionality to playlist view (#4134) 2025-06-04 20:38:28 -04:00
radio fix(ui): update titles for radios, shares and show pages (#4128) 2025-05-27 09:01:52 -04:00
reducers fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
share fix(ui): update titles for radios, shares and show pages (#4128) 2025-05-27 09:01:52 -04:00
song feat(ui): implement RecentlyAddedByModTime support for tracks (#4046) (#4279) 2025-06-30 09:14:35 -04:00
store build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
subsonic feat(plugins): experimental support for plugins (#3998) 2025-06-22 20:45:38 -04:00
themes fix(ui): artist buttons in spotify-ish 2025-06-09 17:56:59 -04:00
transcoding fix(ui): minor icon inconsistencies and "no missing files" translation (#3837) 2025-03-16 19:39:19 -04:00
user fix(ui): update artist link rendering and improve button styles 2025-05-23 17:42:19 -04:00
utils feat(ui): add Play Artist's Top Songs button (#4204) 2025-06-09 19:09:04 -04:00
App.jsx fix(ui): always define config resource. 2025-06-13 00:04:37 -04:00
authProvider.js fix(ui): remove index.html from service worker cache after creating admin user (#3642) 2025-01-12 18:32:02 -05:00
config.js feat(ui): implement new event stream connection logic 2025-06-29 10:18:05 -04:00
consts.js feat(Insights): add anonymous usage data collection (#3543) 2024-12-17 17:10:55 -05:00
eventStream.js fix(ui): keep the NowPlayingPanel badge in sync. 2025-06-29 11:35:10 -04:00
eventStream.test.js feat(ui): implement new event stream connection logic 2025-06-29 10:18:05 -04:00
hotkeys.js Change "Go to current song" hotkey. 2022-12-18 20:58:01 -05:00
index.css chore(deps): bump JS dependencies 2025-03-07 19:47:08 -05:00
index.jsx fix(ui): service worker does not load new version of ui (#3402) 2024-10-16 21:39:14 -04:00
routes.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
setupTests.js Use the default import path for jest-dom. 2024-01-17 17:07:43 -05:00
sw.js fix(ui): service worker crashing on precacheAndRoute (#3528) 2024-12-08 17:43:34 -05:00
useChangeThemeColor.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
vite-env.d.ts build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00