Skip to content

feat(web): add a user setting for default album sort order. - #18950

Merged
alextran1502 merged 2 commits into
immich-app:mainfrom
dagstuan:assetSortOrder
Jun 6, 2025
Merged

alextran1502 merged 2 commits into
immich-app:mainfrom
dagstuan:assetSortOrder

Conversation

@dagstuan

@dagstuan dagstuan commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Description

Add a user setting under "Features" to control the initial sort order when creating an album. Default to the existing behavior of "newest first".

Please bear with me if the code should be structured differently, this is my first PR touching the server-part of the codebase. 😅

Fixes #8068

How Has This Been Tested?

Added a test in album.service.spec.ts, otherwise tested manually locally.

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

@bo0tzz bo0tzz changed the title feat(web): Add a user setting for default album sort order. feat(web): add a user setting for default album sort order. Jun 5, 2025
@dagstuan
dagstuan force-pushed the assetSortOrder branch 3 times, most recently from 9212e3c to 8655928 Compare June 5, 2025 19:30
Comment thread server/src/services/album.service.ts Outdated
Comment thread server/src/services/album.service.ts Outdated
Add a user setting under "Features" to control the initial sort order
when creating an album. Default to the existing behavior of
"newest first".
@alextran1502
alextran1502 merged commit b46e066 into immich-app:main Jun 6, 2025
@dagstuan
dagstuan deleted the assetSortOrder branch June 6, 2025 04:36
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
…pp#18950)

* Add a user setting for default album sort order.

Add a user setting under "Features" to control the initial sort order
when creating an album. Default to the existing behavior of
"newest first".

* chore: patch openapi

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants