feat(web): add a user setting for default album sort order. (#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>
This commit is contained in:
Dag Stuan 2025-06-06 06:31:34 +02:00 committed by GitHub
parent 55f4e93456
commit b46e066cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 397 additions and 13 deletions

View file

@ -1,7 +1,10 @@
import type { UserPreferencesResponseDto } from '@immich/sdk';
import { AssetOrder, type UserPreferencesResponseDto } from '@immich/sdk';
import { Sync } from 'factory.ts';
export const preferencesFactory = Sync.makeFactory<UserPreferencesResponseDto>({
albums: {
defaultAssetOrder: AssetOrder.Desc,
},
cast: {
gCastEnabled: false,
},