Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(users): add configurable quick access preferences

johaven65f377a90b9f
diff --git a/backend/src/applications/users/constants/user-preferences.ts b/backend/src/applications/users/constants/user-preferences.ts
index 70117f3f..a70b58e3 100644
--- a/backend/src/applications/users/constants/user-preferences.ts
+++ b/backend/src/applications/users/constants/user-preferences.ts
@@ -3,3 +3,15 @@ export enum USER_THEME {
LIGHT = 'light',
AUTO = 'auto'
}
+
+export enum USER_SIDEBAR_QUICK_ACCESS_VISIBILITY {
+ BOTH = 'both',
+ RECENTS = 'recents',
+ FAVORITES = 'favorites',
+ NONE = 'none'
+}
+
+export enum USER_SIDEBAR_QUICK_ACCESS_POSITION {
+ TOP = 'top',
+ BOTTOM = 'bottom'
+}
diff --git a/backend/src/applications/users/dto/user-properties.dto.ts b/backend/src/applications/users/dto/user-properties.dto.ts
index 1de07888..c83fef6a 100644
--- a/backend/src/applications/users/dto/user-properties.dto.ts
+++ b/backend/src/applications/users/dto/user-properties.dto.ts
@@ -5,7 +5,7 @@ import { currentDate } from '../../../common/shared'
import { COLLABORA_EDITOR } from '../../files/editors/collabora-online/collabora-online.constants'
import { EURO_OFFICE_EDITOR, ONLY_OFFICE_EDITOR } from '../../files/editors/only-office/only-office.constants'
import { USER_PASSWORD_MIN_LENGTH } from '../constants/user'
-import { USER_THEME } from '../constants/user-preferences'
+import { USER_SIDEBAR_QUICK_ACCESS_POSITION, USER_SIDEBAR_QUICK_ACCESS_VISIBILITY, USER_THEME } from '../constants/user-preferences'
import type { UserPreferences } from '../interfaces/user-preferences.interface'
export class UserLanguageDto {
@@ -37,6 +37,14 @@ export class UserPreferencesDto implements Partial<UserPreferences> {
@ValidateIf((_, value) => value !== undefined)
@IsBoolean()
useSystemNotifications?: UserPreferences['useSystemNotifications']
+
+ @ValidateIf((_, value) => value !== undefined)
+ @IsEnum(USER_SIDEBAR_QUICK_ACCESS_VISIBILITY)
+ sidebarQuickAccessVisibility?: UserPreferences['sidebarQuickAccessVisibility']
+
+ @ValidateIf((_, value) => value !== undefined)
+ @IsEnum(USER_SIDEBAR_QUICK_ACCESS_POSITION)
+ sidebarQuickAccessPosition?: UserPreferences['sidebarQuickAccessPosition']
}
export class UserUpdatePasswordDto {
diff --git a/backend/src/applications/users/interfaces/user-preferences.interface.ts b/backend/src/applications/users/interfaces/user-preferences.interface.ts
index 337c0ad1..f3fc8748 100644
--- a/backend/src/applications/users/interfaces/user-preferences.interface.ts
+++ b/backend/src/applications/users/interfaces/user-preferences.interface.ts
@@ -1,5 +1,5 @@
import type { FileEditorProviders } from '../../files/editors/file-editor-providers.interface'
-import { USER_THEME } from '../constants/user-preferences'
+import { USER_SIDEBAR_QUICK_ACCESS_POSITION, USER_SIDEBAR_QUICK_ACCESS_VISIBILITY, USER_THEME } from '../constants/user-preferences'
export type UserTheme = Exclude<USER_THEME, USER_THEME.AUTO>
@@ -7,4 +7,6 @@ export interface UserPreferences {
theme: USER_THEME
editor: Exclude<keyof FileEditorProviders, 'drawio'> | null
useSystemNotifications: boolean
+ sidebarQuickAccessVisibility: USER_SIDEBAR_QUICK_ACCESS_VISIBILITY
+ sidebarQuickAccessPosition: USER_SIDEBAR_QUICK_ACCESS_POSITION
}
diff --git a/backend/src/applications/users/services/users-manager.service.ts b/backend/src/applications/users/services/users-manager.service.ts
index a1e4fd95..782018b2 100755
--- a/backend/src/applications/users/services/users-manager.service.ts
+++ b/backend/src/applications/users/services/users-manager.service.ts
@@ -239,6 +239,8 @@ export class UsersManager {
if (dto.theme !== undefined) patch.theme = dto.theme
if (dto.editor !== undefined) patch.editor = dto.editor
if (dto.useSystemNotifications !== undefined) patch.useSystemNotifications = dto.useSystemNotifications
+ if (dto.sidebarQuickAccessVisibility !== undefined) patch.sidebarQuickAccessVisibility = dto.sidebarQuickAccessVisibility
+ if (dto.sidebarQuickAccessPosition !== undefined) patch.sidebarQuickAccessPosition = dto.sidebarQuickAccessPosition
try {
return await this.usersQueries.updateUserPreferences(user.id, patch)
} catch (e) {
diff --git a/backend/src/applications/users/services/users-queries.service.ts b/backend/src/applications/users/services/users-queries.service.ts
index 9a656d09..763a639b 100644
--- a/backend/src/applications/users/services/users-queries.service.ts
+++ b/backend/src/applications/users/services/users-queries.service.ts
@@ -196,7 +196,9 @@ export class UsersQueries {
if (
preferences.theme === currentPreferences.theme &&
preferences.editor === currentPreferences.editor &&
- preferences.useSystemNotifications === currentPreferences.useSystemNotifications
+ preferences.useSystemNotifications === currentPreferences.useSystemNotifications &&
+ preferences.sidebarQuickAccessVisibility === currentPreferences.sidebarQuickAccessVisibility &&
+ preferences.sidebarQuickAccessPosition === currentPreferences.sidebarQuickAccessPosition
) {
return currentPreferences
}
diff --git a/backend/src/applications/users/users.md b/backend/src/applications/users/users.md
index 5f546819..0ac8da6a 100644
--- a/backend/src/applications/users/users.md
+++ b/backend/src/applications/users/users.md
@@ -25,6 +25,35 @@ every authenticated user type. The numeric order is therefore security-sensitive
`isLink` match only their exact roles. `USER_GROUP_ROLE` values (`MEMBER` and
`MANAGER`) describe membership inside a group and are independent of these user types.
+## Account settings by role
+
+Administrators and regular users have a complete account. They can update their profile settings, password, avatar, storage-indexing preference, 2FA,
+and application passwords.
+
+Guests have a persistent account with a reduced set of self-service settings. They can update their language, notification channel, and user
+preferences, including interface and editor preferences. They cannot update their password or avatar, enable 2FA, manage application passwords, or
+change storage indexing.
+
+Link pseudo-users do not have a self-service account. They can read the identity required by their authenticated link session, but the account page
+and all account-setting updates are unavailable to them. When a link identity is materialized, `UserModel` normalizes its preferences from an empty
+value instead of using persisted account preferences.
+
+| Account capability | Administrator / User | Guest | Link |
+|---------------------------------|----------------------|-------|------|
+| Read own authenticated identity | Yes | Yes | Yes |
+| Update language | Yes | Yes | No |
+| Update notification channel | Yes | Yes | No |
+| Update user preferences | Yes | Yes | No |
+| Update password | Yes | No | No |
+| Update avatar | Yes | No | No |
+| Change storage indexing | Yes | No | No |
+| Enable or disable 2FA | Yes | No | No |
+| Manage application passwords | Yes | No | No |
+
+Language, notification channel, and storage indexing are stored as dedicated user properties. The remaining user preferences are stored together as
+JSON. Preference updates are partial: omitted values remain unchanged, validated values are merged transactionally, and unchanged results do not
+trigger a database write. Guests use the same persistence behavior as regular users.
+
## Account state and password attempts
The persistent account state and the temporary authentication lock are independent controls. Password failures never change `isActive`, and reaching
diff --git a/backend/src/applications/users/utils/user.ts b/backend/src/applications/users/utils/user.ts
index 4b42f76d..f11ccd11 100644
--- a/backend/src/applications/users/utils/user.ts
+++ b/backend/src/applications/users/utils/user.ts
@@ -1,10 +1,12 @@
-import { USER_THEME } from '../constants/user-preferences'
+import { USER_SIDEBAR_QUICK_ACCESS_POSITION, USER_SIDEBAR_QUICK_ACCESS_VISIBILITY, USER_THEME } from '../constants/user-preferences'
import type { UserPreferences } from '../interfaces/user-preferences.interface'
export function normalizeUserPreferences(preferences?: Partial<UserPreferences> | null): UserPreferences {
return {
theme: preferences?.theme ?? USER_THEME.AUTO,
editor: preferences?.editor ?? null,
- useSystemNotifications: preferences?.useSystemNotifications ?? true
+ useSystemNotifications: preferences?.useSystemNotifications ?? true,
+ sidebarQuickAccessVisibility: preferences?.sidebarQuickAccessVisibility ?? USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH,
+ sidebarQuickAccessPosition: preferences?.sidebarQuickAccessPosition ?? USER_SIDEBAR_QUICK_ACCESS_POSITION.TOP
}
}
diff --git a/frontend/src/app/applications/users/components/user-account.component.html b/frontend/src/app/applications/users/components/user-account.component.html
index f10ed352..e1f39aa8 100755
--- a/frontend/src/app/applications/users/components/user-account.component.html
+++ b/frontend/src/app/applications/users/components/user-account.component.html
@@ -110,141 +110,6 @@
</div>
</div>
- <div class="card dialog-tab-card">
- <div class="card-body">
- <div class="text-muted text-uppercase fs-sm text-bold mb-2" l10nTranslate>Preferences</div>
-
- <div class="row g-2 align-items-center mb-2">
- <label class="col-12 col-sm-6" for="userLanguage" l10nTranslate>Language</label>
- <div class="col-12 col-sm-6">
- <select id="userLanguage" [(ngModel)]="language" class="form-select">
- @for (l of languages; track $index) {
- <option [ngValue]="l">{{ i18nLanguageText[l] }}</option>
- }
- </select>
- </div>
- </div>
-
- <div class="row g-2 align-items-center mb-2">
- <label class="col-12 col-sm-6" for="userTheme" l10nTranslate>Theme</label>
- <div class="col-12 col-sm-6">
- <select id="userTheme"
- class="form-select"
- [ngModel]="user.preferences.theme"
- (ngModelChange)="updateTheme($event)">
- <option [value]="USER_THEME.AUTO" l10nTranslate>Auto</option>
- <option [value]="USER_THEME.LIGHT" l10nTranslate>Light</option>
- <option [value]="USER_THEME.DARK" l10nTranslate>Dark</option>
- </select>
- </div>
- </div>
-
- @if (showEditorPreference) {
- <div class="row g-2 align-items-center mb-2">
- <label class="col-12 col-sm-6" for="documentEditor" l10nTranslate>Document editor</label>
- <div class="col-12 col-sm-6">
- <select
- id="documentEditor"
- class="form-select"
- [ngModel]="userEditorPreference"
- (ngModelChange)="updateEditorPreference($event)">
- <option [ngValue]="null" l10nTranslate>Ask Me</option>
- @for (e of editors | keyvalue: originalOrderKeyValue; track e.key) {
- <option [ngValue]="e.value">{{ e.key }}</option>
- }
- </select>
- </div>
- </div>
- <div class="text-muted fs-sm mb-3" l10nTranslate>
- Used when both editors support the file type.
- </div>
- }
-
- @if (user.isUser) {
- <div class="row g-0">
- <div class="col-12">
- <div class="card dialog-check-card dialog-check-card--interactive"
- [class.dialog-check-card--active]="user.storageIndexing"
- (click)="updateStorageIndexing(!user.storageIndexing)">
- <div class="card-body p-2">
- <div class="d-flex align-items-center cursor-pointer">
- <label for="prefSwitchFullText" class="form-label me-auto text-nowrap" l10nTranslate>Full-text search</label>
- <div class="d-flex align-items-center form-check form-switch ps-0 mb-0">
- <label class="form-check-label" for="prefSwitchFullText" (click)="$event.stopPropagation()"></label>
- <input
- [ngModel]="user.storageIndexing"
- (ngModelChange)="updateStorageIndexing($event)"
- (click)="$event.stopPropagation()"
- class="form-check-input ms-2"
- id="prefSwitchFullText"
- type="checkbox"
- role="button">
- </div>
- </div>
- <div class="text-muted fs-sm mt-2 px-1" l10nTranslate>
- Enable content indexation for personal files.
- </div>
- </div>
- </div>
- </div>
- </div>
- }
- </div>
- </div>
- </div>
-
- <div class="col-12 col-lg-6 d-flex flex-column gap-3">
- <div class="card dialog-tab-card">
- <div class="card-body">
- <div class="text-muted text-uppercase fs-sm text-bold mb-2" l10nTranslate>Notifications</div>
- <div class="d-flex flex-column gap-2">
- <div class="row g-2 align-items-center">
- <label class="form-label col-12 col-md-6 mb-0" for="userNotification" l10nTranslate>Channels</label>
- <div class="col-12 col-md-6">
- <select id="userNotification"
- [ngModel]="user.notification"
- (ngModelChange)="updateNotification($event)"
- class="form-select">
- @for (n of allNotifications; track $index) {
- <option [ngValue]="allNotifications.indexOf(n)" l10nTranslate>{{ n }}</option>
- }
- </select>
- </div>
- </div>
-
- @if (store.isElectronApp()) {
- <div class="row g-0">
- <div class="col-12">
- <div class="card dialog-check-card dialog-check-card--interactive"
- [class.dialog-check-card--active]="user.preferences.useSystemNotifications"
- (click)="updateSystemNotificationsPreference(!user.preferences.useSystemNotifications)">
- <div class="card-body p-2">
- <div class="d-flex align-items-center cursor-pointer">
- <label for="useSystemNotifications" class="form-label me-auto text-nowrap" l10nTranslate>System display</label>
- <div class="d-flex align-items-center form-check form-switch ps-0 mb-0">
- <label class="form-check-label" for="useSystemNotifications" (click)="$event.stopPropagation()"></label>
- <input
- [ngModel]="user.preferences.useSystemNotifications"
- (ngModelChange)="updateSystemNotificationsPreference($event)"
- (click)="$event.stopPropagation()"
- class="form-check-input ms-2"
- id="useSystemNotifications"
- type="checkbox"
- role="button">
- </div>
- </div>
- <div class="text-muted fs-sm mt-2 px-1" l10nTranslate>
- Show notifications through the operating system instead of in the application.
- </div>
- </div>
- </div>
- </div>
- </div>
- }
- </div>
- </div>
- </div>
-
@if (user.isUser) {
<div class="card dialog-tab-card">
<div class="card-body">
@@ -356,6 +221,179 @@
</div>
</div>
}
+
+ </div>
+
+ <div class="col-12 col-lg-6 d-flex flex-column gap-3">
+ <div class="card dialog-tab-card">
+ <div class="card-body">
+ <div class="text-muted text-uppercase fs-sm text-bold mb-2" l10nTranslate>Interface</div>
+
+ <div class="row g-2 align-items-center mb-2">
+ <label class="col-12 col-sm-6" for="userLanguage" l10nTranslate>Language</label>
+ <div class="col-12 col-sm-6">
+ <select id="userLanguage" [(ngModel)]="language" class="form-select">
+ @for (l of languages; track $index) {
+ <option [ngValue]="l">{{ i18nLanguageText[l] }}</option>
+ }
+ </select>
+ </div>
+ </div>
+
+ <div class="row g-2 align-items-center mb-2">
+ <label class="col-12 col-sm-6" for="userTheme" l10nTranslate>Theme</label>
+ <div class="col-12 col-sm-6">
+ <select id="userTheme"
+ class="form-select"
+ [ngModel]="user.preferences.theme"
+ (ngModelChange)="updateTheme($event)">
+ <option [value]="USER_THEME.AUTO" l10nTranslate>Auto</option>
+ <option [value]="USER_THEME.LIGHT" l10nTranslate>Light</option>
+ <option [value]="USER_THEME.DARK" l10nTranslate>Dark</option>
+ </select>
+ </div>
+ </div>
+
+ <div class="row g-2 align-items-center mb-2">
+ <label class="col-12 col-sm-6" for="sidebarQuickAccessVisibility" l10nTranslate>Quick access display</label>
+ <div class="col-12 col-sm-6">
+ <select id="sidebarQuickAccessVisibility"
+ class="form-select"
+ [ngModel]="user.preferences.sidebarQuickAccessVisibility"
+ (ngModelChange)="updateSidebarQuickAccessVisibility($event)">
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH" l10nTranslate>Recents and favorites</option>
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.RECENTS" l10nTranslate>Recents only</option>
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.FAVORITES" l10nTranslate>Favorites only</option>
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.NONE" l10nTranslate>None</option>
+ </select>
+ </div>
+ </div>
+
+ <div class="row g-2 align-items-center mb-2">
+ <label class="col-12 col-sm-6" for="sidebarQuickAccessPosition" l10nTranslate>Quick access position</label>
+ <div class="col-12 col-sm-6">
+ <select id="sidebarQuickAccessPosition"
+ class="form-select"
+ [ngModel]="user.preferences.sidebarQuickAccessPosition"
+ (ngModelChange)="updateSidebarQuickAccessPosition($event)">
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_POSITION.TOP" l10nTranslate>Top</option>
+ <option [value]="USER_SIDEBAR_QUICK_ACCESS_POSITION.BOTTOM" l10nTranslate>Bottom</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ @if (showEditorPreference || user.isUser) {
+ <div class="card dialog-tab-card">
+ <div class="card-body">
+ <div class="text-muted text-uppercase fs-sm text-bold mb-2" l10nTranslate>Files</div>
+
+ @if (showEditorPreference) {
+ <div class="row g-2 align-items-center mb-2">
+ <label class="col-12 col-sm-6" for="documentEditor" l10nTranslate>Document editor</label>
+ <div class="col-12 col-sm-6">
+ <select
+ id="documentEditor"
+ class="form-select"
+ [ngModel]="userEditorPreference"
+ (ngModelChange)="updateEditorPreference($event)">
+ <option [ngValue]="null" l10nTranslate>Ask Me</option>
+ @for (e of editors | keyvalue: originalOrderKeyValue; track e.key) {
+ <option [ngValue]="e.value">{{ e.key }}</option>
+ }
+ </select>
+ </div>
+ </div>
+ <div class="text-muted fs-sm mb-3" l10nTranslate>
+ Used when both editors support the file type.
+ </div>
+ }
+
+ @if (user.isUser) {
+ <div class="row g-0">
+ <div class="col-12">
+ <div class="card dialog-check-card dialog-check-card--interactive"
+ [class.dialog-check-card--active]="user.storageIndexing"
+ (click)="updateStorageIndexing(!user.storageIndexing)">
+ <div class="card-body p-2">
+ <div class="d-flex align-items-center cursor-pointer">
+ <label for="prefSwitchFullText" class="form-label me-auto text-nowrap" l10nTranslate>Full-text search</label>
+ <div class="d-flex align-items-center form-check form-switch ps-0 mb-0">
+ <label class="form-check-label" for="prefSwitchFullText" (click)="$event.stopPropagation()"></label>
+ <input
+ [ngModel]="user.storageIndexing"
+ (ngModelChange)="updateStorageIndexing($event)"
+ (click)="$event.stopPropagation()"
+ class="form-check-input ms-2"
+ id="prefSwitchFullText"
+ type="checkbox"
+ role="button">
+ </div>
+ </div>
+ <div class="text-muted fs-sm mt-2 px-1" l10nTranslate>
+ Enable content indexation for personal files.
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ }
+ </div>
+ </div>
+ }
+
+ <div class="card dialog-tab-card">
+ <div class="card-body">
+ <div class="text-muted text-uppercase fs-sm text-bold mb-2" l10nTranslate>Notifications</div>
+ <div class="d-flex flex-column gap-2">
+ <div class="row g-2 align-items-center">
+ <label class="form-label col-12 col-md-6 mb-0" for="userNotification" l10nTranslate>Channels</label>
+ <div class="col-12 col-md-6">
+ <select id="userNotification"
+ [ngModel]="user.notification"
+ (ngModelChange)="updateNotification($event)"
+ class="form-select">
+ @for (n of allNotifications; track $index) {
+ <option [ngValue]="allNotifications.indexOf(n)" l10nTranslate>{{ n }}</option>
+ }
+ </select>
+ </div>
+ </div>
+
+ @if (store.isElectronApp()) {
+ <div class="row g-0">
+ <div class="col-12">
+ <div class="card dialog-check-card dialog-check-card--interactive"
+ [class.dialog-check-card--active]="user.preferences.useSystemNotifications"
+ (click)="updateSystemNotificationsPreference(!user.preferences.useSystemNotifications)">
+ <div class="card-body p-2">
+ <div class="d-flex align-items-center cursor-pointer">
+ <label for="useSystemNotifications" class="form-label me-auto text-nowrap" l10nTranslate>System display</label>
+ <div class="d-flex align-items-center form-check form-switch ps-0 mb-0">
+ <label class="form-check-label" for="useSystemNotifications" (click)="$event.stopPropagation()"></label>
+ <input
+ [ngModel]="user.preferences.useSystemNotifications"
+ (ngModelChange)="updateSystemNotificationsPreference($event)"
+ (click)="$event.stopPropagation()"
+ class="form-check-input ms-2"
+ id="useSystemNotifications"
+ type="checkbox"
+ role="button">
+ </div>
+ </div>
+ <div class="text-muted fs-sm mt-2 px-1" l10nTranslate>
+ Show notifications through the operating system instead of in the application.
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ }
+ </div>
+ </div>
+ </div>
+
</div>
</div>
}
diff --git a/frontend/src/app/applications/users/components/user-account.component.ts b/frontend/src/app/applications/users/components/user-account.component.ts
index e3601eff..4e587b21 100644
--- a/frontend/src/app/applications/users/components/user-account.component.ts
+++ b/frontend/src/app/applications/users/components/user-account.component.ts
@@ -14,7 +14,11 @@ import {
ONLY_OFFICE_EDITOR
} from '@sync-in-server/backend/src/applications/files/editors/only-office/only-office.constants'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
-import { USER_THEME } from '@sync-in-server/backend/src/applications/users/constants/user-preferences'
+import {
+ USER_SIDEBAR_QUICK_ACCESS_POSITION,
+ USER_SIDEBAR_QUICK_ACCESS_VISIBILITY,
+ USER_THEME
+} from '@sync-in-server/backend/src/applications/users/constants/user-preferences'
import type { UserPreferences } from '@sync-in-server/backend/src/applications/users/interfaces/user-preferences.interface'
import { UserAppPassword } from '@sync-in-server/backend/src/applications/users/interfaces/user-secrets.interface'
import { WEBDAV_BASE_PATH } from '@sync-in-server/backend/src/applications/webdav/constants/routes'
@@ -69,6 +73,8 @@ export class UserAccountComponent implements OnInit, OnDestroy {
protected readonly allOnlineStatus = USER_ONLINE_STATUS_LIST
protected readonly passwordMinLength = USER_PASSWORD_MIN_LENGTH
protected readonly USER_THEME = USER_THEME
+ protected readonly USER_SIDEBAR_QUICK_ACCESS_VISIBILITY = USER_SIDEBAR_QUICK_ACCESS_VISIBILITY
+ protected readonly USER_SIDEBAR_QUICK_ACCESS_POSITION = USER_SIDEBAR_QUICK_ACCESS_POSITION
protected readonly icons = { LucideCopy, LucideKeyRound }
protected user: UserType
protected userAvatar: string = null
@@ -222,6 +228,14 @@ export class UserAccountComponent implements OnInit, OnDestroy {
this.userService.changePreferences({ editor }).subscribe()
}
+ updateSidebarQuickAccessVisibility(sidebarQuickAccessVisibility: UserPreferences['sidebarQuickAccessVisibility']) {
+ this.userService.changePreferences({ sidebarQuickAccessVisibility }).subscribe()
+ }
+
+ updateSidebarQuickAccessPosition(sidebarQuickAccessPosition: UserPreferences['sidebarQuickAccessPosition']) {
+ this.userService.changePreferences({ sidebarQuickAccessPosition }).subscribe()
+ }
+
updateSystemNotificationsPreference(useSystemNotifications: UserPreferences['useSystemNotifications']) {
this.userService.changePreferences({ useSystemNotifications }).subscribe()
}
diff --git a/frontend/src/app/applications/users/user.service.ts b/frontend/src/app/applications/users/user.service.ts
index ac92a216..b3174267 100644
--- a/frontend/src/app/applications/users/user.service.ts
+++ b/frontend/src/app/applications/users/user.service.ts
@@ -254,7 +254,9 @@ export class UserService {
? 'Unable to update theme preference'
: patch.editor !== undefined
? 'Unable to update editor preference'
- : 'Unable to update notification preference'
+ : patch.sidebarQuickAccessVisibility !== undefined || patch.sidebarQuickAccessPosition !== undefined
+ ? 'Unable to update sidebar preference'
+ : 'Unable to update notification preference'
this.layout.sendNotification('error', 'Configuration', message, e)
return EMPTY
}),
diff --git a/frontend/src/app/layout/sidebar/sidebar.left.component.html b/frontend/src/app/layout/sidebar/sidebar.left.component.html
index 3214da3b..21c7241c 100644
--- a/frontend/src/app/layout/sidebar/sidebar.left.component.html
+++ b/frontend/src/app/layout/sidebar/sidebar.left.component.html
@@ -67,7 +67,7 @@
<div class="menus-group">
<div class="menus-top">
@for (menu of navigationSubmenus; track $index; let menuIndex = $index) {
- @if (menu.placement !== 'bottom') {
+ @if (!isBottomMenu(menu)) {
<ng-container [ngTemplateOutlet]="MenuEntry"
[ngTemplateOutletContext]="{menus: navigationSubmenus, menu: menu, menuIndex: menuIndex}"></ng-container>
}
@@ -75,7 +75,7 @@
</div>
<div class="menus-bottom">
@for (menu of navigationSubmenus; track $index; let menuIndex = $index) {
- @if (menu.placement === 'bottom') {
+ @if (isBottomMenu(menu)) {
<ng-container [ngTemplateOutlet]="MenuEntry"
[ngTemplateOutletContext]="{menus: navigationSubmenus, menu: menu, menuIndex: menuIndex}"></ng-container>
}
@@ -88,7 +88,7 @@
<!--Start Templates-->
<ng-template #MenuEntry let-menus="menus" let-menu="menu" let-menuIndex="menuIndex">
@if (isMenu(menu)) {
- @if (!menu.hide) {
+ @if (showNavigationMenu(menu)) {
<ng-container [ngTemplateOutlet]="MenuApps" [ngTemplateOutletContext]="{menu: menu}"></ng-container>
}
} @else if (showMenuSeparator(menus, menuIndex, menu)) {
@@ -116,7 +116,7 @@
@if (menu.hasSubmenus) {
@for (submenu of menu.submenus; track $index; let submenuIndex = $index) {
@if (isMenu(submenu)) {
- @if (!submenu.hide) {
+ @if (showNavigationMenu(submenu)) {
<div class="menu submenu" [class.active]="submenu.isActive">
<a (click)="closeSideBarOnMobile()" [routerLink]="submenu.link" draggable="false">
<ng-container [ngTemplateOutlet]="MenuTemplate" [ngTemplateOutletContext]="{menu: submenu}"></ng-container>
diff --git a/frontend/src/app/layout/sidebar/sidebar.left.component.ts b/frontend/src/app/layout/sidebar/sidebar.left.component.ts
index 7b3aa451..6ad505dd 100644
--- a/frontend/src/app/layout/sidebar/sidebar.left.component.ts
+++ b/frontend/src/app/layout/sidebar/sidebar.left.component.ts
@@ -2,11 +2,17 @@ import { AsyncPipe, Location, NgTemplateOutlet } from '@angular/common'
import { Component, inject, OnDestroy } from '@angular/core'
import { ResolveEnd, Router, RouterLink } from '@angular/router'
import { LucideChevronLeft, LucideChevronRight, LucideDynamicIcon, LucideLogOut, LucideVenetianMask } from '@lucide/angular'
+import {
+ USER_SIDEBAR_QUICK_ACCESS_POSITION,
+ USER_SIDEBAR_QUICK_ACCESS_VISIBILITY
+} from '@sync-in-server/backend/src/applications/users/constants/user-preferences'
import { L10nTranslateDirective } from 'angular-l10n'
import { Subscription } from 'rxjs'
import { filter } from 'rxjs/operators'
import { APP_NAME } from '../../app.constants'
import { ADMIN_MENU } from '../../applications/admin/admin.constants'
+import { FAVORITES_PATH } from '../../applications/favorites/favorites.constants'
+import { RECENTS_PATH } from '../../applications/recents/recents.constants'
import { SEARCH_MENU } from '../../applications/search/search.constants'
import { SPACES_MENU } from '../../applications/spaces/spaces.constants'
import { SYNC_MENU } from '../../applications/sync/sync.constants'
@@ -129,23 +135,45 @@ export class SideBarLeftComponent implements OnDestroy {
return hasMenuBefore && hasMenuAfter
}
+ protected showNavigationMenu(menu: AppMenu): boolean {
+ if (menu.hide) return false
+ if (!this.isQuickAccessMenu(menu)) return true
+ const quickAccess = this.store.user.getValue()?.preferences?.sidebarQuickAccessVisibility ?? USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH
+ if (menu.link === RECENTS_PATH.BASE) {
+ return quickAccess === USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH || quickAccess === USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.RECENTS
+ }
+ return quickAccess === USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH || quickAccess === USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.FAVORITES
+ }
+
+ protected isBottomMenu(menu: AppMenuEntry): boolean {
+ if (isAppMenu(menu) && this.isQuickAccessMenu(menu)) {
+ const position = this.store.user.getValue()?.preferences?.sidebarQuickAccessPosition ?? USER_SIDEBAR_QUICK_ACCESS_POSITION.TOP
+ return position === USER_SIDEBAR_QUICK_ACCESS_POSITION.BOTTOM
+ }
+ return menu.placement === 'bottom'
+ }
+
private hasVisibleMenuUntilNextSeparator(menus: AppMenuEntry[], startIndex: number, direction: 1 | -1): boolean {
for (let i = startIndex; i >= 0 && i < menus.length; i += direction) {
const menu = menus[i]
if (isAppMenuSeparator(menu)) {
return false
}
- if (isAppMenu(menu) && !menu.hide) {
+ if (isAppMenu(menu) && this.showNavigationMenu(menu)) {
return true
}
}
return false
}
+ private isQuickAccessMenu(menu: AppMenu): boolean {
+ return menu.link === RECENTS_PATH.BASE || menu.link === FAVORITES_PATH.BASE
+ }
+
private hasVisibleMenuUntilNextSimpleSeparator(menus: AppMenuEntry[], startIndex: number, direction: 1 | -1): boolean {
for (let i = startIndex; i >= 0 && i < menus.length; i += direction) {
const menu = menus[i]
- if (isAppMenu(menu) && !menu.hide) {
+ if (isAppMenu(menu) && this.showNavigationMenu(menu)) {
return true
}
if (isAppMenuSeparator(menu) && !menu.title) {
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index f1f92ba7..1d0ecabf 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -745,11 +745,21 @@
"System display": "Systemanzeige",
"Show notifications through the operating system instead of in the application.": "Benachrichtigungen über das Betriebssystem statt in der Anwendung anzeigen.",
"Theme": "Design",
+ "Quick access display": "Anzeige des Schnellzugriffs",
+ "Interface": "Benutzeroberfläche",
+ "Quick access position": "Position des Schnellzugriffs",
+ "Top": "Oben",
+ "Bottom": "Unten",
+ "Recents and favorites": "Zuletzt verwendet und Favoriten",
+ "Recents only": "Nur zuletzt verwendet",
+ "Favorites only": "Nur Favoriten",
+ "None": "Keine",
"Auto": "Automatisch",
"Light": "Hell",
"Dark": "Dunkel",
"Unable to update theme preference": "Die Designeinstellung konnte nicht aktualisiert werden",
"Unable to update editor preference": "Die Editoreinstellung konnte nicht aktualisiert werden",
+ "Unable to update sidebar preference": "Die Seitenleisteneinstellung konnte nicht aktualisiert werden",
"of": "von",
"Sidebar auto-hide enabled": "Automatisches Ausblenden der Seitenleiste aktiviert",
"Sidebar pinned": "Seitenleiste angeheftet",
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index 76a6f032..c5327b61 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -745,11 +745,21 @@
"System display": "Visualización del sistema",
"Show notifications through the operating system instead of in the application.": "Mostrar las notificaciones a través del sistema operativo en lugar de la aplicación.",
"Theme": "Tema",
+ "Quick access display": "Visualización del acceso rápido",
+ "Interface": "Interfaz",
+ "Quick access position": "Posición del acceso rápido",
+ "Top": "Arriba",
+ "Bottom": "Abajo",
+ "Recents and favorites": "Recientes y favoritos",
+ "Recents only": "Solo recientes",
+ "Favorites only": "Solo favoritos",
+ "None": "Ninguno",
"Auto": "Automático",
"Light": "Claro",
"Dark": "Oscuro",
"Unable to update theme preference": "No se pudo actualizar la preferencia de tema",
"Unable to update editor preference": "No se pudo actualizar la preferencia de editor",
+ "Unable to update sidebar preference": "No se pudo actualizar la preferencia de la barra lateral",
"of": "de",
"Sidebar auto-hide enabled": "Ocultación automática de la barra lateral activada",
"Sidebar pinned": "Barra lateral fijada",
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index c8c2ee72..c58efaa9 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -745,11 +745,21 @@
"System display": "Affichage système",
"Show notifications through the operating system instead of in the application.": "Afficher les notifications via le système d’exploitation plutôt que dans l’application.",
"Theme": "Thème",
+ "Quick access display": "Affichage des accès rapides",
+ "Interface": "Interface",
+ "Quick access position": "Position des accès rapides",
+ "Top": "Haut",
+ "Bottom": "Bas",
+ "Recents and favorites": "Récents et favoris",
+ "Recents only": "Récents uniquement",
+ "Favorites only": "Favoris uniquement",
+ "None": "Aucun",
"Auto": "Automatique",
"Light": "Clair",
"Dark": "Sombre",
"Unable to update theme preference": "Impossible de mettre à jour la préférence de thème",
"Unable to update editor preference": "Impossible de mettre à jour la préférence d’éditeur",
+ "Unable to update sidebar preference": "Impossible de mettre à jour la préférence de la barre latérale",
"of": "de",
"Sidebar auto-hide enabled": "Masquage automatique de la barre latérale activé",
"Sidebar pinned": "Barre latérale épinglée",
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index 89d8b509..97145cdd 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -745,11 +745,21 @@
"System display": "सिस्टम में प्रदर्शन",
"Show notifications through the operating system instead of in the application.": "सूचनाएँ ऐप के बजाय ऑपरेटिंग सिस्टम के माध्यम से दिखाएँ।",
"Theme": "थीम",
+ "Quick access display": "त्वरित पहुँच का प्रदर्शन",
+ "Interface": "इंटरफ़ेस",
+ "Quick access position": "त्वरित पहुँच का स्थान",
+ "Top": "ऊपर",
+ "Bottom": "नीचे",
+ "Recents and favorites": "हाल के और पसंदीदा",
+ "Recents only": "केवल हाल के",
+ "Favorites only": "केवल पसंदीदा",
+ "None": "कोई नहीं",
"Auto": "स्वचालित",
"Light": "लाइट",
"Dark": "डार्क",
"Unable to update theme preference": "थीम की प्राथमिकता अपडेट नहीं की जा सकी",
"Unable to update editor preference": "संपादक की प्राथमिकता अपडेट नहीं की जा सकी",
+ "Unable to update sidebar preference": "साइडबार की प्राथमिकता अपडेट नहीं की जा सकी",
"of": "का",
"Sidebar auto-hide enabled": "साइडबार स्वतः छिपाना सक्षम",
"Sidebar pinned": "साइडबार पिन किया गया",
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index e9e45628..6b828da0 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -745,11 +745,21 @@
"System display": "Visualizzazione di sistema",
"Show notifications through the operating system instead of in the application.": "Mostra le notifiche tramite il sistema operativo anziché nell'applicazione.",
"Theme": "Tema",
+ "Quick access display": "Visualizzazione dell'accesso rapido",
+ "Interface": "Interfaccia",
+ "Quick access position": "Posizione dell'accesso rapido",
+ "Top": "In alto",
+ "Bottom": "In basso",
+ "Recents and favorites": "Recenti e preferiti",
+ "Recents only": "Solo recenti",
+ "Favorites only": "Solo preferiti",
+ "None": "Nessuno",
"Auto": "Automatico",
"Light": "Chiaro",
"Dark": "Scuro",
"Unable to update theme preference": "Impossibile aggiornare la preferenza del tema",
"Unable to update editor preference": "Impossibile aggiornare la preferenza dell'editor",
+ "Unable to update sidebar preference": "Impossibile aggiornare la preferenza della barra laterale",
"of": "di",
"Sidebar auto-hide enabled": "Nascondimento automatico della barra laterale attivato",
"Sidebar pinned": "Barra laterale bloccata",
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index 27e6cb7d..48c04768 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -745,11 +745,21 @@
"System display": "システム表示",
"Show notifications through the operating system instead of in the application.": "アプリ内ではなく、オペレーティングシステム経由で通知を表示します。",
"Theme": "テーマ",
+ "Quick access display": "クイックアクセスの表示",
+ "Interface": "インターフェース",
+ "Quick access position": "クイックアクセスの位置",
+ "Top": "上",
+ "Bottom": "下",
+ "Recents and favorites": "最近とお気に入り",
+ "Recents only": "最近のみ",
+ "Favorites only": "お気に入りのみ",
+ "None": "なし",
"Auto": "自動",
"Light": "ライト",
"Dark": "ダーク",
"Unable to update theme preference": "テーマ設定を更新できませんでした",
"Unable to update editor preference": "エディタ設定を更新できませんでした",
+ "Unable to update sidebar preference": "サイドバー設定を更新できませんでした",
"of": "の",
"Sidebar auto-hide enabled": "サイドバー自動非表示が有効",
"Sidebar pinned": "サイドバー固定",
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index 3b74623e..8cbbd362 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -745,11 +745,21 @@
"System display": "시스템 표시",
"Show notifications through the operating system instead of in the application.": "애플리케이션 내부 대신 운영 체제를 통해 알림을 표시합니다.",
"Theme": "테마",
+ "Quick access display": "빠른 액세스 표시",
+ "Interface": "인터페이스",
+ "Quick access position": "빠른 액세스 위치",
+ "Top": "위",
+ "Bottom": "아래",
+ "Recents and favorites": "최근 항목 및 즐겨찾기",
+ "Recents only": "최근 항목만",
+ "Favorites only": "즐겨찾기만",
+ "None": "없음",
"Auto": "자동",
"Light": "라이트",
"Dark": "다크",
"Unable to update theme preference": "테마 설정을 업데이트할 수 없습니다",
"Unable to update editor preference": "편집기 설정을 업데이트할 수 없습니다",
+ "Unable to update sidebar preference": "사이드바 설정을 업데이트할 수 없습니다",
"of": "의",
"Sidebar auto-hide enabled": "사이드바 자동 숨김 활성화",
"Sidebar pinned": "사이드바 고정됨",
diff --git a/frontend/src/i18n/nl.json b/frontend/src/i18n/nl.json
index f1b9f298..77978ae6 100644
--- a/frontend/src/i18n/nl.json
+++ b/frontend/src/i18n/nl.json
@@ -745,11 +745,21 @@
"System display": "Systeemweergave",
"Show notifications through the operating system instead of in the application.": "Meldingen via het besturingssysteem weergeven in plaats van in de toepassing.",
"Theme": "Thema",
+ "Quick access display": "Weergave van snelle toegang",
+ "Interface": "Interface",
+ "Quick access position": "Positie van snelle toegang",
+ "Top": "Boven",
+ "Bottom": "Onder",
+ "Recents and favorites": "Recente bestanden en favorieten",
+ "Recents only": "Alleen recente bestanden",
+ "Favorites only": "Alleen favorieten",
+ "None": "Geen",
"Auto": "Automatisch",
"Light": "Licht",
"Dark": "Donker",
"Unable to update theme preference": "Kan de themavoorkeur niet bijwerken",
"Unable to update editor preference": "Kan de editorvoorkeur niet bijwerken",
+ "Unable to update sidebar preference": "Kan zijbalkvoorkeur niet bijwerken",
"of": "van",
"Sidebar auto-hide enabled": "Zijbalk automatisch verbergen ingeschakeld",
"Sidebar pinned": "Zijbalk vastgemaakt",
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 71acff85..6d2d6b5e 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -745,11 +745,21 @@
"System display": "Wyświetlanie systemowe",
"Show notifications through the operating system instead of in the application.": "Wyświetlaj powiadomienia przez system operacyjny zamiast w aplikacji.",
"Theme": "Motyw",
+ "Quick access display": "Wyświetlanie szybkiego dostępu",
+ "Interface": "Interfejs",
+ "Quick access position": "Pozycja szybkiego dostępu",
+ "Top": "U góry",
+ "Bottom": "Na dole",
+ "Recents and favorites": "Ostatnie i ulubione",
+ "Recents only": "Tylko ostatnie",
+ "Favorites only": "Tylko ulubione",
+ "None": "Brak",
"Auto": "Automatyczny",
"Light": "Jasny",
"Dark": "Ciemny",
"Unable to update theme preference": "Nie można zaktualizować preferencji motywu",
"Unable to update editor preference": "Nie można zaktualizować preferencji edytora",
+ "Unable to update sidebar preference": "Nie udało się zaktualizować preferencji paska bocznego",
"of": "z",
"Sidebar auto-hide enabled": "Włączono automatyczne ukrywanie panelu bocznego",
"Sidebar pinned": "Panel boczny przypięty",
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index 341a46d8..60891b25 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -745,11 +745,21 @@
"System display": "Exibição do sistema",
"Show notifications through the operating system instead of in the application.": "Exibir notificações pelo sistema operacional em vez de no aplicativo.",
"Theme": "Tema",
+ "Quick access display": "Exibição do acesso rápido",
+ "Interface": "Interface",
+ "Quick access position": "Posição do acesso rápido",
+ "Top": "Superior",
+ "Bottom": "Inferior",
+ "Recents and favorites": "Recentes e favoritos",
+ "Recents only": "Apenas recentes",
+ "Favorites only": "Apenas favoritos",
+ "None": "Nenhum",
"Auto": "Automático",
"Light": "Claro",
"Dark": "Escuro",
"Unable to update theme preference": "Não foi possível atualizar a preferência de tema",
"Unable to update editor preference": "Não foi possível atualizar a preferência de editor",
+ "Unable to update sidebar preference": "Não foi possível atualizar a preferência da barra lateral",
"of": "de",
"Sidebar auto-hide enabled": "Ocultação automática da barra lateral ativada",
"Sidebar pinned": "Barra lateral fixada",
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index 08ef2d9b..6423d25e 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -745,11 +745,21 @@
"System display": "Apresentação do sistema",
"Show notifications through the operating system instead of in the application.": "Mostrar notificações através do sistema operativo em vez de na aplicação.",
"Theme": "Tema",
+ "Quick access display": "Apresentação do acesso rápido",
+ "Interface": "Interface",
+ "Quick access position": "Posição do acesso rápido",
+ "Top": "Em cima",
+ "Bottom": "Em baixo",
+ "Recents and favorites": "Recentes e favoritos",
+ "Recents only": "Apenas recentes",
+ "Favorites only": "Apenas favoritos",
+ "None": "Nenhum",
"Auto": "Automático",
"Light": "Claro",
"Dark": "Escuro",
"Unable to update theme preference": "Não foi possível atualizar a preferência do tema",
"Unable to update editor preference": "Não foi possível atualizar a preferência do editor",
+ "Unable to update sidebar preference": "Não foi possível atualizar a preferência da barra lateral",
"of": "de",
"Sidebar auto-hide enabled": "Ocultação automática da barra lateral ativada",
"Sidebar pinned": "Barra lateral fixa",
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index a2ff5e38..03a32229 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -745,11 +745,21 @@
"System display": "Отображение в системе",
"Show notifications through the operating system instead of in the application.": "Показывать уведомления средствами операционной системы, а не в приложении.",
"Theme": "Тема",
+ "Quick access display": "Отображение быстрого доступа",
+ "Interface": "Интерфейс",
+ "Quick access position": "Положение быстрого доступа",
+ "Top": "Сверху",
+ "Bottom": "Снизу",
+ "Recents and favorites": "Недавние и избранное",
+ "Recents only": "Только недавние",
+ "Favorites only": "Только избранное",
+ "None": "Нет",
"Auto": "Автоматически",
"Light": "Светлая",
"Dark": "Тёмная",
"Unable to update theme preference": "Не удалось обновить настройку темы",
"Unable to update editor preference": "Не удалось обновить настройку редактора",
+ "Unable to update sidebar preference": "Не удалось обновить настройку боковой панели",
"of": "из",
"Sidebar auto-hide enabled": "Автоскрытие боковой панели включено",
"Sidebar pinned": "Боковая панель закреплена",
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index 228e9403..99bbf2f7 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -745,11 +745,21 @@
"System display": "Sistem görünümü",
"Show notifications through the operating system instead of in the application.": "Bildirimleri uygulama yerine işletim sistemi üzerinden göster.",
"Theme": "Tema",
+ "Quick access display": "Hızlı erişim görünümü",
+ "Interface": "Arayüz",
+ "Quick access position": "Hızlı erişim konumu",
+ "Top": "Üst",
+ "Bottom": "Alt",
+ "Recents and favorites": "Son kullanılanlar ve favoriler",
+ "Recents only": "Yalnızca son kullanılanlar",
+ "Favorites only": "Yalnızca favoriler",
+ "None": "Hiçbiri",
"Auto": "Otomatik",
"Light": "Açık",
"Dark": "Koyu",
"Unable to update theme preference": "Tema tercihi güncellenemedi",
"Unable to update editor preference": "Düzenleyici tercihi güncellenemedi",
+ "Unable to update sidebar preference": "Kenar çubuğu tercihi güncellenemedi",
"of": "/",
"Sidebar auto-hide enabled": "Kenar çubuğu otomatik gizleme etkin",
"Sidebar pinned": "Kenar çubuğu sabitlendi",
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index 17ad231b..2bc59326 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -745,11 +745,21 @@
"System display": "系统显示",
"Show notifications through the operating system instead of in the application.": "通过操作系统而非应用内显示通知。",
"Theme": "主题",
+ "Quick access display": "快速访问显示",
+ "Interface": "界面",
+ "Quick access position": "快速访问位置",
+ "Top": "顶部",
+ "Bottom": "底部",
+ "Recents and favorites": "最近和收藏",
+ "Recents only": "仅最近",
+ "Favorites only": "仅收藏",
+ "None": "无",
"Auto": "自动",
"Light": "浅色",
"Dark": "深色",
"Unable to update theme preference": "无法更新主题偏好设置",
"Unable to update editor preference": "无法更新编辑器偏好设置",
+ "Unable to update sidebar preference": "无法更新侧边栏偏好设置",
"of": "的",
"Sidebar auto-hide enabled": "侧边栏自动隐藏已启用",
"Sidebar pinned": "侧边栏已固定",