Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(files): add user preference for showing hidden files (#295)
Johan Legrand31ed436fc540
diff --git a/backend/src/applications/files/files.config.ts b/backend/src/applications/files/files.config.tsindex 45ecd5ef..a338a4d3 100644--- a/backend/src/applications/files/files.config.ts+++ b/backend/src/applications/files/files.config.ts@@ -77,7 +77,6 @@ export const FilesConfigSchema = z.looseObject({maxUploadSize: integerNumberSchema.default(5368709120), // 5 GBcontentIndexing: FilesContentIndexingConfigSchema.prefault({}),trashRetention: FilesTrashRetentionConfigSchema.prefault({}),- showHiddenFiles: z.boolean().default(false),sampleDocuments: sampleDocumentsSchema.default(() => [...SAMPLE_DOCUMENT_GROUPS]),editors: FilesEditorsConfigSchema.prefault({})})diff --git a/backend/src/applications/files/services/files-manager.service.spec.ts b/backend/src/applications/files/services/files-manager.service.spec.tsindex e92a9ea2..e53f31b5 100644--- a/backend/src/applications/files/services/files-manager.service.spec.ts+++ b/backend/src/applications/files/services/files-manager.service.spec.ts@@ -53,7 +53,7 @@ describe(FilesManager.name, () => {removeChildLocks: Mock}- const user = { id: 7, login: 'john', tmpPath: '/data/users/john/tmp' } as any+ const user = { id: 7, login: 'john', tmpPath: '/data/users/john/tmp', preferences: { showHiddenFiles: false } } as anyconst targetTmpRoot = '/data/users/john/.sync-in-tmp/users/7'const targetTrashDbScope = { ownerId: 7, spaceId: null, spaceExternalRootId: null, shareExternalId: null, inTrash: true }const temporaryPath = (operation: FILE_OPERATION, executionId: string, name: string, parentPath = targetTmpRoot): string =>@@ -1290,7 +1290,7 @@ describe(FilesManager.name, () => {})describe('delete', () => {- it('should empty visible trash-root entries through a task without deleting the root', async () => {+ it('should empty all trash-root entries through a task without deleting the root', async () => {const trashRoot = makeTrashSpace({url: 'trash/personal',realPath: '/data/users/john/trash',@@ -1316,22 +1316,17 @@ describe(FilesManager.name, () => {paths: [name]})})- const showHiddenFiles = configuration.applications.files.showHiddenFiles- configuration.applications.files.showHiddenFiles = false+ await service.delete(user, trashRoot)- try {- await service.delete(user, trashRoot)- } finally {- configuration.applications.files.showHiddenFiles = showHiddenFiles- }-- expect(spacesManager.spaceEnv).toHaveBeenCalledTimes(2)+ expect(spacesManager.spaceEnv).toHaveBeenCalledTimes(3)expect(spacesManager.spaceEnv).toHaveBeenNthCalledWith(1, user, ['trash', 'personal', 'old.txt'])expect(spacesManager.spaceEnv).toHaveBeenNthCalledWith(2, user, ['trash', 'personal', 'archive'])+ expect(spacesManager.spaceEnv).toHaveBeenNthCalledWith(3, user, ['trash', 'personal', '.hidden'])expect(filesUtils.removeFiles).toHaveBeenCalledWith('/data/users/john/trash/old.txt')expect(filesUtils.removeFiles).toHaveBeenCalledWith('/data/users/john/trash/archive')+ expect(filesUtils.removeFiles).toHaveBeenCalledWith('/data/users/john/trash/.hidden')expect(filesUtils.removeFiles).not.toHaveBeenCalledWith(trashRoot.realPath)- expect(filesQueries.deleteFiles).toHaveBeenCalledTimes(2)+ expect(filesQueries.deleteFiles).toHaveBeenCalledTimes(3)})it('should empty the trash root synchronously and forward WebDAV lock tokens', async () => {diff --git a/backend/src/applications/files/services/files-manager.service.ts b/backend/src/applications/files/services/files-manager.service.tsindex a8e4c82d..07016cf8 100644--- a/backend/src/applications/files/services/files-manager.service.ts+++ b/backend/src/applications/files/services/files-manager.service.ts@@ -900,11 +900,7 @@ export class FilesManager {let failureCount = 0for (const entry of entries) {- if (- isInternalTemporaryEntry(entry.name) ||- (!configuration.applications.files.showHiddenFiles && entry.name.startsWith('.')) ||- (!entry.isDirectory() && !entry.isFile())- ) {+ if (isInternalTemporaryEntry(entry.name) || (!entry.isDirectory() && !entry.isFile())) {continue}try {diff --git a/backend/src/applications/spaces/services/spaces-browser.service.spec.ts b/backend/src/applications/spaces/services/spaces-browser.service.spec.tsindex c5ed9f67..577ec907 100644--- a/backend/src/applications/spaces/services/spaces-browser.service.spec.ts+++ b/backend/src/applications/spaces/services/spaces-browser.service.spec.ts@@ -1,6 +1,5 @@import { Test, TestingModule } from '@nestjs/testing'import fs from 'node:fs/promises'-import { configuration } from '../../../configuration/config.environment.js'import { Cache } from '../../../infrastructure/cache/cache.service.js'import { DB_TOKEN_PROVIDER } from '../../../infrastructure/database/constants.js'import { FilesQuotaManager } from '../../files/services/files-quota-manager.service.js'@@ -59,7 +58,7 @@ describe(SpacesBrowser.name, () => {})it('should expose the space name while preserving its alias', async () => {- const user = { id: 1 } as UserModel+ const user = { id: 1, preferences: { showHiddenFiles: true } } as UserModelconst space = {alias: 'communication',name: 'Communication',@@ -94,7 +93,8 @@ describe(SpacesBrowser.name, () => {const user = {id: 1,isUser,- isLink+ isLink,+ preferences: { showHiddenFiles: true }} as unknown as UserModelconst space = {alias: 'communication',@@ -117,8 +117,6 @@ describe(SpacesBrowser.name, () => {})it('always hides internal temporary entries from filesystem browsing', async () => {- const showHiddenFiles = configuration.applications.files.showHiddenFiles- configuration.applications.files.showHiddenFiles = truevi.spyOn(fs, 'readdir').mockResolvedValue([{ name: '.sync-in-tmp', isDirectory: () => true, isFile: () => false },{ name: '.sync-in.uploading', isDirectory: () => false, isFile: () => true },@@ -133,14 +131,56 @@ describe(SpacesBrowser.name, () => {} as any)const names: string[] = []- try {- for await (const file of (spacesBrowserService as any).parsePath({ realPath: '/storage', relativeUrl: '/space' })) {- names.push(file.name)- }- } finally {- configuration.applications.files.showHiddenFiles = showHiddenFiles+ for await (const file of (spacesBrowserService as any).parsePath({ realPath: '/storage', relativeUrl: '/space' })) {+ names.push(file.name)}expect(names).toEqual(['.visible'])})++ it('reconciles hidden files before excluding them from the response', async () => {+ const user = { id: 1, isUser: true, isLink: false, preferences: { showHiddenFiles: false } } as UserModel+ const space = {+ alias: 'personal',+ name: 'Personal',+ inSharesList: false,+ inTrashRepository: false,+ browsePermissions: vi.fn().mockReturnValue('a:m')+ } as unknown as SpaceEnv+ const hiddenFSFile = { name: '.hidden', path: '', size: 1 }+ const hiddenDBFile = { id: 1, name: '.hidden', path: '', size: 1 }+ vi.spyOn(spacesBrowserService as any, 'parseFS').mockResolvedValue([hiddenFSFile])+ vi.spyOn(spacesBrowserService as any, 'parseDB').mockResolvedValue([hiddenDBFile])+ vi.spyOn(spacesBrowserService as any, 'parseRootFiles').mockResolvedValue([])+ const compareAndUpdate = vi.spyOn((spacesBrowserService as any).filesQueries, 'compareAndUpdateFileProps').mockResolvedValue(undefined)+ const deleteDBFile = vi.spyOn(spacesBrowserService as any, 'deleteDBFile').mockResolvedValue(undefined)+ vi.spyOn((spacesBrowserService as any).filesRecents, 'updateRecents').mockResolvedValue(undefined)++ const result = await spacesBrowserService.browse(user, space)++ expect(result.files).toEqual([])+ expect(compareAndUpdate).toHaveBeenCalledWith(hiddenDBFile, expect.objectContaining({ id: hiddenDBFile.id, name: '.hidden' }))+ expect(deleteDBFile).not.toHaveBeenCalled()+ })++ it('removes stale database metadata for a hidden file missing from the filesystem', async () => {+ const user = { id: 1, isUser: true, isLink: false, preferences: { showHiddenFiles: false } } as UserModel+ const space = {+ alias: 'personal',+ name: 'Personal',+ inSharesList: false,+ inTrashRepository: false,+ browsePermissions: vi.fn().mockReturnValue('a:m')+ } as unknown as SpaceEnv+ const hiddenDBFile = { id: 1, name: '.hidden', path: '', size: 1 }+ vi.spyOn(spacesBrowserService as any, 'parseFS').mockResolvedValue([])+ vi.spyOn(spacesBrowserService as any, 'parseDB').mockResolvedValue([hiddenDBFile])+ vi.spyOn(spacesBrowserService as any, 'parseRootFiles').mockResolvedValue([])+ const deleteDBFile = vi.spyOn(spacesBrowserService as any, 'deleteDBFile').mockResolvedValue(undefined)+ vi.spyOn((spacesBrowserService as any).filesRecents, 'updateRecents').mockResolvedValue(undefined)++ await spacesBrowserService.browse(user, space)++ expect(deleteDBFile).toHaveBeenCalledWith(user, space, hiddenDBFile)+ })})diff --git a/backend/src/applications/spaces/services/spaces-browser.service.ts b/backend/src/applications/spaces/services/spaces-browser.service.tsindex 838d0ed4..f2fc73e5 100644--- a/backend/src/applications/spaces/services/spaces-browser.service.ts+++ b/backend/src/applications/spaces/services/spaces-browser.service.ts@@ -2,7 +2,6 @@ import { HttpException, HttpStatus, Injectable, Logger } from '@nestjs/common'import fs from 'node:fs/promises'import path from 'node:path'import { toErrorMessage } from '../../../common/errors.js'-import { configuration } from '../../../configuration/config.environment.js'import { FileDBProps } from '../../files/interfaces/file-db-props.interface.js'import { FileLock } from '../../files/interfaces/file-lock.interface.js'import { FileProps } from '../../files/interfaces/file-props.interface.js'@@ -50,14 +49,16 @@ export class SpacesBrowser {this.parseDB(user.id, space, details),this.parseRootFiles(user, space, details)])- const visibleRootFiles = rootFiles.filter((file) => !isInternalTemporaryEntry(file.name))this.updateDBFiles(user, space, dbFiles, fsFiles, details)+ const showHiddenFiles = user.preferences.showHiddenFiles+ const visibleFSFiles = showHiddenFiles ? fsFiles : fsFiles.filter((file) => !file.name.startsWith('.'))+ const visibleRootFiles = rootFiles.filter((file) => !isInternalTemporaryEntry(file.name) && (showHiddenFiles || !file.name.startsWith('.')))if (space.inSharesList) {// the share space includes shares as root files- spaceFiles.files = [...visibleRootFiles, ...fsFiles]+ spaceFiles.files = [...visibleRootFiles, ...visibleFSFiles]spaceFiles.hasRoots = true} else {- await this.mergeSpaceRootFiles(space, visibleRootFiles, fsFiles, spaceFiles)+ await this.mergeSpaceRootFiles(space, visibleRootFiles, visibleFSFiles, spaceFiles)}if (details && !space.inTrashRepository) {// locks were removed when files were moved to the trash, no need to parse locks@@ -114,10 +115,6 @@ export class SpacesBrowser {this.logger.log({ tag: this.parsePath.name, msg: `ignore special file : ${element.name}` })continue}- if (!configuration.applications.files.showHiddenFiles && element.name[0] === '.') {- this.logger.verbose({ tag: this.parsePath.name, msg: `ignore filtered file : ${element.name}` })- continue- }const realPath = path.join(space.realPath, element.name)const filePath = path.join(space.relativeUrl, element.name)try {diff --git a/backend/src/applications/spaces/services/spaces-manager.service.spec.ts b/backend/src/applications/spaces/services/spaces-manager.service.spec.tsindex dc2304aa..fce48777 100644--- a/backend/src/applications/spaces/services/spaces-manager.service.spec.ts+++ b/backend/src/applications/spaces/services/spaces-manager.service.spec.ts@@ -116,11 +116,12 @@ describe(SpacesManager.name, () => {try {await fs.writeFile(path.join(userTest.trashPath, 'visible.txt'), '')+ await fs.writeFile(path.join(userTest.trashPath, '.hidden'), '')await fs.symlink('visible.txt', path.join(userTest.trashPath, 'file-link'))const trashes = await spacesManager.listTrashes(userTest)expect(trashes).toHaveLength(1)- expect(trashes[0]).toMatchObject({ alias: SPACE_ALIAS.PERSONAL, nb: 1 })+ expect(trashes[0]).toMatchObject({ alias: SPACE_ALIAS.PERSONAL, nb: 2 })} finally {await removeFiles(userTest.trashPath)}diff --git a/backend/src/applications/spaces/services/spaces-manager.service.ts b/backend/src/applications/spaces/services/spaces-manager.service.tsindex b331cae0..6606fc0f 100644--- a/backend/src/applications/spaces/services/spaces-manager.service.ts+++ b/backend/src/applications/spaces/services/spaces-manager.service.ts@@ -7,7 +7,6 @@ import { toErrorMessage } from '../../../common/errors.js'import { convertDiffUpdate, diffCollection, differencePermissions } from '../../../common/functions.js'import type { Entries } from '../../../common/interfaces.js'import { createSlug, InvalidSlugError, regExpNumberSuffix } from '../../../common/shared.js'-import { configuration } from '../../../configuration/config.environment.js'import { DEFAULT_DIRECTORY_BUFFER_SIZE } from '../../files/constants/files.js'import { FileError } from '../../files/models/file-error.js'import { dirListFileNames, getProps, isInternalTemporaryEntry, isPathExists, moveFiles, removeFiles } from '../../files/utils/files.js'@@ -206,7 +205,7 @@ export class SpacesManager {if ((entry.isDirectory() || entry.isFile()) &&!isInternalTemporaryEntry(entry.name) &&- (configuration.applications.files.showHiddenFiles || entry.name[0] !== '.')+ (user.preferences.showHiddenFiles || entry.name[0] !== '.')) {space.nb++}diff --git a/backend/src/applications/spaces/spaces.md b/backend/src/applications/spaces/spaces.mdindex 5f51becd..15fcf61a 100644--- a/backend/src/applications/spaces/spaces.md+++ b/backend/src/applications/spaces/spaces.md@@ -100,11 +100,11 @@ browsing trash. For an external root, the trash path is relative to the externalThe trash list examines the personal trash and every space available to the user. It returns only repositories containing at least one visibletop-level file or directory. Internal temporary and special filesystem entries are always ignored; hidden entries follow the `showHiddenFiles`-configuration.+user preference.-Deleting `trash/<trash-alias>` through the synchronous Files API, WebDAV, or an asynchronous file task empties its visible top-level entries while-preserving the physical trash directory. The frontend uses the asynchronous form. The trash root cannot be copied or moved, but its children can be-restored outside the read-only trash repository.+Deleting `trash/<trash-alias>` through the synchronous Files API, WebDAV, or an asynchronous file task empties all supported top-level file and+directory entries, including hidden entries, while preserving the physical trash directory. The frontend uses the asynchronous form. The trash root+cannot be copied or moved, but its children can be restored outside the read-only trash repository.## Deletion target resolutiondiff --git a/backend/src/applications/users/dto/user-properties.dto.ts b/backend/src/applications/users/dto/user-properties.dto.tsindex 527f0905..b134c869 100644--- a/backend/src/applications/users/dto/user-properties.dto.ts+++ b/backend/src/applications/users/dto/user-properties.dto.ts@@ -27,6 +27,7 @@ export type UserStorageIndexingDto = z.infer<typeof userStorageIndexingSchema>export const userPreferencesSchema = z.object({theme: z.enum(USER_THEME).optional(),editor: z.enum([COLLABORA_EDITOR, ONLY_OFFICE_EDITOR, EURO_OFFICE_EDITOR]).nullish(),+ showHiddenFiles: z.boolean().optional(),useSystemNotifications: z.boolean().optional(),sidebarQuickAccessVisibility: z.enum(USER_SIDEBAR_QUICK_ACCESS_VISIBILITY).optional(),sidebarQuickAccessPosition: z.enum(USER_SIDEBAR_QUICK_ACCESS_POSITION).optional()diff --git a/backend/src/applications/users/interfaces/user-model.interface.ts b/backend/src/applications/users/interfaces/user-model.interface.tsnew file mode 100644index 00000000..34568378--- /dev/null+++ b/backend/src/applications/users/interfaces/user-model.interface.ts@@ -0,0 +1,8 @@+import type { User } from '../schemas/user.interface.js'+import type { UserPreferences } from './user-preferences.interface.js'++export type UserModelProps = Omit<Partial<User>, 'preferences'> & {+ preferences?: Partial<UserPreferences> | null+ exp?: number+ twoFaEnabled?: boolean+}diff --git a/backend/src/applications/users/interfaces/user-preferences.interface.ts b/backend/src/applications/users/interfaces/user-preferences.interface.tsindex c7ea7957..2badb5ac 100644--- a/backend/src/applications/users/interfaces/user-preferences.interface.ts+++ b/backend/src/applications/users/interfaces/user-preferences.interface.ts@@ -6,6 +6,7 @@ export type UserTheme = Exclude<USER_THEME, USER_THEME.AUTO>export interface UserPreferences {theme: USER_THEMEeditor: Exclude<keyof FileEditorProviders, 'drawio'> | null+ showHiddenFiles: booleanuseSystemNotifications: booleansidebarQuickAccessVisibility: USER_SIDEBAR_QUICK_ACCESS_VISIBILITYsidebarQuickAccessPosition: USER_SIDEBAR_QUICK_ACCESS_POSITIONdiff --git a/backend/src/applications/users/models/user.model.spec.ts b/backend/src/applications/users/models/user.model.spec.tsindex b510db19..4cccb195 100644--- a/backend/src/applications/users/models/user.model.spec.ts+++ b/backend/src/applications/users/models/user.model.spec.ts@@ -2,6 +2,14 @@ import { USER_ROLE } from '../constants/user.js'import { UserModel } from './user.model.js'describe(UserModel.name, () => {+ it('shows hidden files by default and preserves an explicit opt-out', () => {+ const defaultUser = new UserModel({ id: 1, login: 'alice', role: USER_ROLE.USER })+ const optOutUser = new UserModel({ id: 2, login: 'bob', role: USER_ROLE.USER, preferences: { showHiddenFiles: false } })++ expect(defaultUser.preferences.showHiddenFiles).toBe(true)+ expect(optOutUser.preferences.showHiddenFiles).toBe(false)+ })+it('serializes only public user properties', () => {const user = new UserModel({diff --git a/backend/src/applications/users/models/user.model.ts b/backend/src/applications/users/models/user.model.tsindex 64239958..e2857d2e 100644--- a/backend/src/applications/users/models/user.model.ts+++ b/backend/src/applications/users/models/user.model.ts@@ -7,6 +7,7 @@ import { configuration } from '../../../configuration/config.environment.js'import { isPathInside } from '../../files/utils/files.js'import { SPACE_REPOSITORY } from '../../spaces/constants/spaces.js'import { GUEST_PERMISSION, USER_PERMISSION, USER_PERMS_SEP, USER_ROLE, USER_TMP_DIRECTORY } from '../constants/user.js'+import type { UserModelProps } from '../interfaces/user-model.interface.js'import type { Owner } from '../interfaces/owner.interface.js'import type { UserPreferences } from '../interfaces/user-preferences.interface.js'import type { UserSecrets } from '../interfaces/user-secrets.interface.js'@@ -114,7 +115,7 @@ export class UserModel implements Omit<User, 'password' | 'permissions'> {// Token-only refresh expiration; never exposed in the public representation.exp?: number- constructor(props: Partial<User> & { exp?: number; twoFaEnabled?: boolean }, removePassword = true) {+ constructor(props: UserModelProps, removePassword = true) {// User model can be instantiated with data from the database or from a token payloadthis.initSecrets(props)Object.assign(this, props)@@ -298,7 +299,7 @@ export class UserModel implements Omit<User, 'password' | 'permissions'> {return this.role <= role}- private initSecrets(props: Partial<User> & { exp?: number; twoFaEnabled?: boolean }) {+ private initSecrets(props: UserModelProps) {// Remove the serialized `twoFaEnabled` property before assigning values to the model,// because the public value is exposed through a getter.if (props && 'twoFaEnabled' in props) {diff --git a/backend/src/applications/users/services/users-manager.service.spec.ts b/backend/src/applications/users/services/users-manager.service.spec.tsindex 6f7bcbec..b6404f70 100755--- a/backend/src/applications/users/services/users-manager.service.spec.ts+++ b/backend/src/applications/users/services/users-manager.service.spec.ts@@ -239,6 +239,7 @@ describe(UsersManager.name, () => {expect(resolved!.impersonatedFromId).toBe(admin.id)expect(resolved!.impersonatedClientId).toBe('admin-client')+ expect(resolved!.impersonated).toBe(true)const formerAdmin = { ...generateUserTest(), id: 1, role: USER_ROLE.USER }usersQueriesService.from = vi.fn().mockImplementation(async (id: number) => (id === authUser.id ? currentUser : formerAdmin))@@ -246,6 +247,17 @@ describe(UsersManager.name, () => {await expect(usersManager.fromAuthToken(authUser)).resolves.toBeNull()})+ it('should clear the WebDAV auth cache when the hidden-files preference changes', async () => {+ const preferences = { ...userTest.preferences, showHiddenFiles: false }+ const updatePreferences = vi.spyOn(usersQueriesService, 'updateUserPreferences').mockResolvedValue(preferences)+ const clearWebDAVAuthCache = vi.spyOn(usersQueriesService, 'clearWebDAVAuthCache').mockResolvedValue()++ await expect(usersManager.updatePreferences(userTest, { showHiddenFiles: false })).resolves.toEqual(preferences)++ expect(updatePreferences).toHaveBeenCalledWith(userTest.id, { showHiddenFiles: false })+ expect(clearWebDAVAuthCache).toHaveBeenCalledWith(userTest.id)+ })+it('paths + avatars (default/generate) + create/delete user', async () => {await expect(ensurePaths()).resolves.not.toThrow()expect(await isPathExists(userTest.filesPath)).toBe(true)diff --git a/backend/src/applications/users/services/users-manager.service.ts b/backend/src/applications/users/services/users-manager.service.tsindex 8157bbcb..a5fa4477 100755--- a/backend/src/applications/users/services/users-manager.service.ts+++ b/backend/src/applications/users/services/users-manager.service.ts@@ -81,6 +81,7 @@ export class UsersManager {}user.impersonatedFromId = authUser.impersonatedFromIduser.impersonatedClientId = authUser.impersonatedClientId+ user.impersonated = true}user.clientId = authUser.clientIduser.authSession = authUser.authSession@@ -252,11 +253,16 @@ export class UsersManager {const patch: Partial<UserPreferences> = {}if (dto.theme !== undefined) patch.theme = dto.themeif (dto.editor !== undefined) patch.editor = dto.editor+ if (dto.showHiddenFiles !== undefined) patch.showHiddenFiles = dto.showHiddenFilesif (dto.useSystemNotifications !== undefined) patch.useSystemNotifications = dto.useSystemNotificationsif (dto.sidebarQuickAccessVisibility !== undefined) patch.sidebarQuickAccessVisibility = dto.sidebarQuickAccessVisibilityif (dto.sidebarQuickAccessPosition !== undefined) patch.sidebarQuickAccessPosition = dto.sidebarQuickAccessPositiontry {- return await this.usersQueries.updateUserPreferences(user.id, patch)+ const preferences = await this.usersQueries.updateUserPreferences(user.id, patch)+ if (dto.showHiddenFiles !== undefined) {+ await this.usersQueries.clearWebDAVAuthCache(user.id)+ }+ return preferences} catch (e) {this.logger.error({ tag: this.updatePreferences.name, msg: `Unable to update preferences for user (${user.id}) : ${toErrorMessage(e)}` })throw new HttpException('Unable to update preferences', HttpStatus.INTERNAL_SERVER_ERROR)diff --git a/backend/src/applications/users/services/users-queries.service.ts b/backend/src/applications/users/services/users-queries.service.tsindex 449c1d7b..b045da59 100644--- a/backend/src/applications/users/services/users-queries.service.ts+++ b/backend/src/applications/users/services/users-queries.service.ts@@ -193,6 +193,7 @@ export class UsersQueries {if (preferences.theme === currentPreferences.theme &&preferences.editor === currentPreferences.editor &&+ preferences.showHiddenFiles === currentPreferences.showHiddenFiles &&preferences.useSystemNotifications === currentPreferences.useSystemNotifications &&preferences.sidebarQuickAccessVisibility === currentPreferences.sidebarQuickAccessVisibility &&preferences.sidebarQuickAccessPosition === currentPreferences.sidebarQuickAccessPositiondiff --git a/backend/src/applications/users/users.md b/backend/src/applications/users/users.mdindex 0e1823b0..5755573a 100644--- a/backend/src/applications/users/users.md+++ b/backend/src/applications/users/users.md@@ -31,8 +31,8 @@ Administrators and regular users have a complete account. They can update theirand 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.+preferences, including interface, editor, and hidden-file visibility 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 pageand all account-setting updates are unavailable to them. When a link identity is materialized, `UserModel` normalizes its preferences from an empty@@ -52,7 +52,8 @@ value instead of using persisted account preferences.Language, notification channel, and storage indexing are stored as dedicated user properties. The remaining user preferences are stored together asJSON. 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.+trigger a database write. Guests use the same persistence behavior as regular users. `showHiddenFiles` defaults to `true` when it is absent from an+existing preference document.## Account state and password attemptsdiff --git a/backend/src/applications/users/utils/user.ts b/backend/src/applications/users/utils/user.tsindex 3d3a69e0..0990ee97 100644--- a/backend/src/applications/users/utils/user.ts+++ b/backend/src/applications/users/utils/user.ts@@ -5,6 +5,7 @@ export function normalizeUserPreferences(preferences?: Partial<UserPreferences>return {theme: preferences?.theme ?? USER_THEME.AUTO,editor: preferences?.editor ?? null,+ showHiddenFiles: preferences?.showHiddenFiles ?? true,useSystemNotifications: preferences?.useSystemNotifications ?? true,sidebarQuickAccessVisibility: preferences?.sidebarQuickAccessVisibility ?? USER_SIDEBAR_QUICK_ACCESS_VISIBILITY.BOTH,sidebarQuickAccessPosition: preferences?.sidebarQuickAccessPosition ?? USER_SIDEBAR_QUICK_ACCESS_POSITION.TOPdiff --git a/backend/src/authentication/auth.service.spec.ts b/backend/src/authentication/auth.service.spec.tsindex 4117a678..d91da884 100755--- a/backend/src/authentication/auth.service.spec.ts+++ b/backend/src/authentication/auth.service.spec.ts@@ -39,7 +39,8 @@ describe(AuthManager.name, () => {firstName: 'Alice',lastName: 'Doe',language: 'en',- role: USER_ROLE.USER+ role: USER_ROLE.USER,+ preferences: { showHiddenFiles: false }})const res = { setCookie: vi.fn() }@@ -48,7 +49,10 @@ describe(AuthManager.name, () => {expect(response.user.authSession).toBe(AUTH_SESSION.OIDC)expect(jwtService.signAsync).toHaveBeenCalledWith(expect.objectContaining({- identity: expect.objectContaining({ authSession: AUTH_SESSION.OIDC })+ identity: expect.objectContaining({+ authSession: AUTH_SESSION.OIDC,+ preferences: { showHiddenFiles: false }+ })}),expect.any(Object))diff --git a/backend/src/authentication/auth.service.ts b/backend/src/authentication/auth.service.tsindex 08523b58..0b0b975d 100755--- a/backend/src/authentication/auth.service.ts+++ b/backend/src/authentication/auth.service.ts@@ -174,7 +174,10 @@ export class AuthManager {impersonatedClientId: user.impersonatedClientId || undefined,authSession: user.authSession || AUTH_SESSION.LOCAL,clientId: user.clientId || undefined,- twoFaEnabled: user.twoFaEnabled || undefined+ twoFaEnabled: user.twoFaEnabled || undefined,+ preferences: {+ showHiddenFiles: user.preferences.showHiddenFiles+ }} satisfies JwtIdentityPayload,...((type === TOKEN_TYPE.ACCESS || type === TOKEN_TYPE.REFRESH) && { csrf: csrfToken })},diff --git a/backend/src/authentication/guards/auth-token-access.guard.spec.ts b/backend/src/authentication/guards/auth-token-access.guard.spec.tsindex 966596f2..9d329a40 100644--- a/backend/src/authentication/guards/auth-token-access.guard.spec.ts+++ b/backend/src/authentication/guards/auth-token-access.guard.spec.ts@@ -31,7 +31,8 @@ describe(AuthTokenAccessGuard.name, () => {fullName: 'Foo Bar',language: 'fr',role: USER_ROLE.USER,- applications: [USER_PERMISSION.DESKTOP_APP, USER_PERMISSION.PERSONAL_SPACE]+ applications: [USER_PERMISSION.DESKTOP_APP, USER_PERMISSION.PERSONAL_SPACE],+ preferences: { showHiddenFiles: false }}let authConfig: AuthConfiglet jwtService: JwtService@@ -132,6 +133,7 @@ describe(AuthTokenAccessGuard.name, () => {expect(await authAccessGuard.canActivate(context)).toBe(true)expect(request.user).toMatchObject(accessTokenIdentity)+ expect(request.user.preferences.showHiddenFiles).toBe(false)expect(request.user.haveRole(USER_ROLE.USER)).toBe(true)expect(request.user.havePermission(USER_PERMISSION.DESKTOP_APP)).toBe(true)})diff --git a/backend/src/authentication/interfaces/jwt-payload.interface.ts b/backend/src/authentication/interfaces/jwt-payload.interface.tsindex 81ec1492..3d00d201 100644--- a/backend/src/authentication/interfaces/jwt-payload.interface.ts+++ b/backend/src/authentication/interfaces/jwt-payload.interface.ts@@ -1,6 +1,10 @@import type { AUTH_SESSION } from '../providers/auth-providers.constants.js'import { TOKEN_TYPE } from './token.interface.js'+export interface JwtIdentityPreferences {+ showHiddenFiles: boolean+}+export interface JwtIdentityPayload {id: numberlogin: string@@ -14,6 +18,7 @@ export interface JwtIdentityPayload {authSession?: AUTH_SESSIONclientId?: stringtwoFaEnabled?: boolean+ preferences?: JwtIdentityPreferences}export interface JwtIdentity2FaPayload {diff --git a/backend/src/configuration/config.validation.spec.ts b/backend/src/configuration/config.validation.spec.tsindex 8e600376..f1dcd7aa 100644--- a/backend/src/configuration/config.validation.spec.ts+++ b/backend/src/configuration/config.validation.spec.ts@@ -71,7 +71,6 @@ describe('configuration contracts', () => {maxUploadSize: 5368709120,contentIndexing: { enabled: true, ocr: { enabled: true, languages: ['eng'], offline: false } },trashRetention: { users: false, spaces: false },- showHiddenFiles: false,sampleDocuments: [...SAMPLE_DOCUMENT_GROUPS],editors: {onlyoffice: { enabled: false, externalServer: null, verifySSL: false },diff --git a/environment/environment.dist.yaml b/environment/environment.dist.yamlindex 147c3339..1d6f3a54 100644--- a/environment/environment.dist.yaml+++ b/environment/environment.dist.yaml@@ -373,9 +373,6 @@ applications:trashRetention:users: falsespaces: false- # Show files starting with a dot in the file explorer- # default: false- showHiddenFiles: false# Optional document groups shown in the "new document" dialog.# options: `microsoft` | `opendocument` | `drawio`# use [] to only show Text and Markdowndiff --git a/frontend/src/app/applications/users/components/user-account.component.html b/frontend/src/app/applications/users/components/user-account.component.htmlindex 2dd334a6..04d45f69 100755--- a/frontend/src/app/applications/users/components/user-account.component.html+++ b/frontend/src/app/applications/users/components/user-account.component.html@@ -286,7 +286,7 @@</div></div>- @if (showEditorPreference || user.isUser) {+ @if (!user.isLink) {<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>@@ -312,6 +312,44 @@</div>}+ <div class="row g-0 mb-2">+ <div class="col-12">+ <div class="card dialog-check-card"+ [class.dialog-check-card--interactive]="!updatingShowHiddenFiles"+ [class.dialog-check-card--active]="user.preferences.showHiddenFiles"+ [class.opacity-50]="updatingShowHiddenFiles"+ [class.pe-none]="updatingShowHiddenFiles"+ [attr.aria-busy]="updatingShowHiddenFiles"+ [attr.aria-disabled]="updatingShowHiddenFiles"+ (click)="updateShowHiddenFiles(!user.preferences.showHiddenFiles)">+ <div class="card-body p-2">+ <div class="d-flex align-items-center cursor-pointer">+ <label+ for="showHiddenFiles"+ class="form-label me-auto text-nowrap"+ (click)="$event.stopPropagation()"+ l10nTranslate>Show hidden files</label>+ <div class="d-flex align-items-center form-check form-switch ps-0 mb-0">+ <label class="form-check-label" for="showHiddenFiles" (click)="$event.stopPropagation()"></label>+ <input+ [ngModel]="user.preferences.showHiddenFiles"+ [disabled]="updatingShowHiddenFiles"+ (ngModelChange)="updateShowHiddenFiles($event)"+ (click)="$event.stopPropagation()"+ class="form-check-input ms-2"+ id="showHiddenFiles"+ type="checkbox"+ role="button">+ </div>+ </div>+ <div class="text-muted fs-sm mt-2 px-1" l10nTranslate>+ Show files and folders whose names start with a dot.+ </div>+ </div>+ </div>+ </div>+ </div>+@if (user.isUser) {<div class="row g-0"><div class="col-12">diff --git a/frontend/src/app/applications/users/components/user-account.component.ts b/frontend/src/app/applications/users/components/user-account.component.tsindex 4e587b21..e0624bde 100644--- a/frontend/src/app/applications/users/components/user-account.component.ts+++ b/frontend/src/app/applications/users/components/user-account.component.ts@@ -29,7 +29,7 @@ import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } frimport { BsModalRef } from 'ngx-bootstrap/modal'import { ClipboardService } from 'ngx-clipboard'import { Subscription } from 'rxjs'-import { filter, take } from 'rxjs/operators'+import { filter, finalize, switchMap, take } from 'rxjs/operators'import { i18nLanguageText } from '../../../../i18n/l10n'import { AuthService } from '../../../auth/auth.service'import { InputPasswordComponent } from '../../../common/components/input-password.component'@@ -84,6 +84,7 @@ export class UserAccountComponent implements OnInit, OnDestroy {protected newPassword: stringprotected readonly store = inject(StoreService)protected showEditorPreference = false+ protected updatingShowHiddenFiles = falseprivate readonly onlyOfficeEditorEnabled = this.store.server().files.editors.onlyofficeprotected readonly editors: Record<string, NonNullable<UserPreferences['editor']>> = {[COLLABORA_APP_LOCK]: COLLABORA_EDITOR,@@ -228,6 +229,18 @@ export class UserAccountComponent implements OnInit, OnDestroy {this.userService.changePreferences({ editor }).subscribe()}+ updateShowHiddenFiles(showHiddenFiles: UserPreferences['showHiddenFiles']) {+ if (this.updatingShowHiddenFiles) return+ this.updatingShowHiddenFiles = true+ this.userService+ .changePreferences({ showHiddenFiles })+ .pipe(+ switchMap(() => this.authService.refreshToken()),+ finalize(() => (this.updatingShowHiddenFiles = false))+ )+ .subscribe()+ }+updateSidebarQuickAccessVisibility(sidebarQuickAccessVisibility: UserPreferences['sidebarQuickAccessVisibility']) {this.userService.changePreferences({ sidebarQuickAccessVisibility }).subscribe()}diff --git a/frontend/src/app/applications/users/user.service.ts b/frontend/src/app/applications/users/user.service.tsindex b3174267..f08acf5e 100644--- a/frontend/src/app/applications/users/user.service.ts+++ b/frontend/src/app/applications/users/user.service.ts@@ -254,9 +254,11 @@ export class UserService {? 'Unable to update theme preference': patch.editor !== undefined? 'Unable to update editor preference'- : patch.sidebarQuickAccessVisibility !== undefined || patch.sidebarQuickAccessPosition !== undefined- ? 'Unable to update sidebar preference'- : 'Unable to update notification preference'+ : patch.showHiddenFiles !== undefined+ ? 'Unable to update hidden files 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/i18n/ca.json b/frontend/src/i18n/ca.jsonindex a11c4aa1..c4596fb4 100644--- a/frontend/src/i18n/ca.json+++ b/frontend/src/i18n/ca.json@@ -741,6 +741,8 @@"Document editor": "Editor de documents","Ask Me": "Preguntar-me","Used when both editors support the file type.": "S'usa quan els dos editors admeten el tipus de fitxer.",+ "Show hidden files": "Mostra els fitxers ocults",+ "Show files and folders whose names start with a dot.": "Mostra els fitxers i les carpetes els noms dels quals comencen amb un punt.","Enable content indexation for personal files.": "Habilitar la indexació de contingut per a fitxers personals.","Actions": "Accions","Delete all indexes.": "Eliminar tots els índexs.",@@ -776,6 +778,7 @@"Dark": "Fosc","Unable to update theme preference": "No s'ha pogut actualitzar la preferència de tema","Unable to update editor preference": "No s'ha pogut actualitzar la preferència d'editor",+ "Unable to update hidden files preference": "No s'ha pogut actualitzar la preferència dels fitxers ocults","Unable to update sidebar preference": "No s'ha pogut actualitzar la preferència de la barra lateral","Sidebar auto-hide enabled": "Ocultació automàtica de la barra lateral activada","Sidebar pinned": "Barra lateral fixada",diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.jsonindex a852daf0..bfffa1ab 100644--- a/frontend/src/i18n/de.json+++ b/frontend/src/i18n/de.json@@ -741,6 +741,8 @@"Document editor": "Dokumenteditor","Ask Me": "Mich fragen","Used when both editors support the file type.": "Wird verwendet, wenn beide Editoren den Dateityp unterstützen.",+ "Show hidden files": "Versteckte Dateien anzeigen",+ "Show files and folders whose names start with a dot.": "Dateien und Ordner anzeigen, deren Namen mit einem Punkt beginnen.","Enable content indexation for personal files.": "Inhaltsindexierung für persönliche Dateien aktivieren.","Actions": "Aktionen","Delete all indexes.": "Alle Indizes löschen.",@@ -776,6 +778,7 @@"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 hidden files preference": "Die Einstellung für versteckte Dateien konnte nicht aktualisiert werden","Unable to update sidebar preference": "Die Seitenleisteneinstellung konnte nicht aktualisiert werden","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.jsonindex 90761b7d..3dfe4a15 100644--- a/frontend/src/i18n/es.json+++ b/frontend/src/i18n/es.json@@ -741,6 +741,8 @@"Document editor": "Editor de documentos","Ask Me": "Preguntarme","Used when both editors support the file type.": "Se usa cuando ambos editores admiten el tipo de archivo.",+ "Show hidden files": "Mostrar archivos ocultos",+ "Show files and folders whose names start with a dot.": "Mostrar archivos y carpetas cuyos nombres comienzan por un punto.","Enable content indexation for personal files.": "Habilitar la indexación de contenido para archivos personales.","Actions": "Acciones","Delete all indexes.": "Eliminar todos los índices.",@@ -776,6 +778,7 @@"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 hidden files preference": "No se pudo actualizar la preferencia de archivos ocultos","Unable to update sidebar preference": "No se pudo actualizar la preferencia de la barra lateral","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.jsonindex 389c055c..52249bd0 100644--- a/frontend/src/i18n/fr.json+++ b/frontend/src/i18n/fr.json@@ -741,6 +741,8 @@"Document editor": "Éditeur de documents","Ask Me": "Me demander","Used when both editors support the file type.": "Utilisé lorsque les deux éditeurs prennent en charge le type de fichier.",+ "Show hidden files": "Afficher les fichiers cachés",+ "Show files and folders whose names start with a dot.": "Afficher les fichiers et dossiers dont le nom commence par un point.","Enable content indexation for personal files.": "Activer l'indexation du contenu pour les fichiers personnels.","Actions": "Actions","Delete all indexes.": "Supprimer tous les indexes.",@@ -776,6 +778,7 @@"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 hidden files preference": "Impossible de mettre à jour la préférence des fichiers cachés","Unable to update sidebar preference": "Impossible de mettre à jour la préférence de la barre latérale","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.jsonindex 16ebf25a..7197cd77 100644--- a/frontend/src/i18n/hi.json+++ b/frontend/src/i18n/hi.json@@ -741,6 +741,8 @@"Document editor": "दस्तावेज़ संपादक","Ask Me": "मुझसे पूछें","Used when both editors support the file type.": "जब दोनों संपादक फ़ाइल प्रकार का समर्थन करते हैं तो उपयोग किया जाता है।",+ "Show hidden files": "छिपी हुई फ़ाइलें दिखाएँ",+ "Show files and folders whose names start with a dot.": "वे फ़ाइलें और फ़ोल्डर दिखाएँ जिनके नाम बिंदु से शुरू होते हैं।","Enable content indexation for personal files.": "व्यक्तिगत फ़ाइलों के लिए सामग्री अनुक्रमण सक्षम करें।","Actions": "क्रियाएँ","Delete all indexes.": "सभी इंडेक्स हटाएँ।",@@ -776,6 +778,7 @@"Dark": "डार्क","Unable to update theme preference": "थीम की प्राथमिकता अपडेट नहीं की जा सकी","Unable to update editor preference": "संपादक की प्राथमिकता अपडेट नहीं की जा सकी",+ "Unable to update hidden files preference": "छिपी हुई फ़ाइलों की प्राथमिकता अपडेट नहीं की जा सकी","Unable to update sidebar preference": "साइडबार की प्राथमिकता अपडेट नहीं की जा सकी","Sidebar auto-hide enabled": "साइडबार स्वतः छिपाना सक्षम","Sidebar pinned": "साइडबार पिन किया गया",diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.jsonindex f7eead76..08406ebf 100644--- a/frontend/src/i18n/it.json+++ b/frontend/src/i18n/it.json@@ -741,6 +741,8 @@"Document editor": "Editor di documenti","Ask Me": "Chiedimelo","Used when both editors support the file type.": "Usato quando entrambi gli editor supportano il tipo di file.",+ "Show hidden files": "Mostra file nascosti",+ "Show files and folders whose names start with a dot.": "Mostra file e cartelle i cui nomi iniziano con un punto.","Enable content indexation for personal files.": "Abilita l'indicizzazione dei contenuti per i file personali.","Actions": "Azioni","Delete all indexes.": "Elimina tutti gli indici.",@@ -776,6 +778,7 @@"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 hidden files preference": "Impossibile aggiornare la preferenza per i file nascosti","Unable to update sidebar preference": "Impossibile aggiornare la preferenza della barra laterale","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.jsonindex f560ee83..355faed5 100644--- a/frontend/src/i18n/ja.json+++ b/frontend/src/i18n/ja.json@@ -741,6 +741,8 @@"Document editor": "ドキュメントエディタ","Ask Me": "毎回確認","Used when both editors support the file type.": "両方のエディタがファイルタイプをサポートしている場合に使用されます。",+ "Show hidden files": "隠しファイルを表示",+ "Show files and folders whose names start with a dot.": "名前がドットで始まるファイルとフォルダーを表示します。","Enable content indexation for personal files.": "個人ファイルのコンテンツインデックス作成を有効にする。","Actions": "アクション","Delete all indexes.": "すべてのインデックスを削除します。",@@ -776,6 +778,7 @@"Dark": "ダーク","Unable to update theme preference": "テーマ設定を更新できませんでした","Unable to update editor preference": "エディタ設定を更新できませんでした",+ "Unable to update hidden files preference": "隠しファイルの設定を更新できません","Unable to update sidebar preference": "サイドバー設定を更新できませんでした","Sidebar auto-hide enabled": "サイドバー自動非表示が有効","Sidebar pinned": "サイドバー固定",diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.jsonindex 063bd58f..d86826ce 100644--- a/frontend/src/i18n/ko.json+++ b/frontend/src/i18n/ko.json@@ -741,6 +741,8 @@"Document editor": "문서 편집기","Ask Me": "매번 물어보기","Used when both editors support the file type.": "두 편집기 모두 파일 유형을 지원할 때 사용됩니다.",+ "Show hidden files": "숨김 파일 표시",+ "Show files and folders whose names start with a dot.": "이름이 점으로 시작하는 파일과 폴더를 표시합니다.","Enable content indexation for personal files.": "개인 파일에 대한 콘텐츠 인덱싱을 활성화합니다.","Actions": "작업","Delete all indexes.": "모든 인덱스를 삭제합니다.",@@ -776,6 +778,7 @@"Dark": "다크","Unable to update theme preference": "테마 설정을 업데이트할 수 없습니다","Unable to update editor preference": "편집기 설정을 업데이트할 수 없습니다",+ "Unable to update hidden files preference": "숨김 파일 설정을 업데이트할 수 없습니다","Unable to update sidebar preference": "사이드바 설정을 업데이트할 수 없습니다","Sidebar auto-hide enabled": "사이드바 자동 숨김 활성화","Sidebar pinned": "사이드바 고정됨",diff --git a/frontend/src/i18n/nl.json b/frontend/src/i18n/nl.jsonindex 07a60f10..972ab0da 100644--- a/frontend/src/i18n/nl.json+++ b/frontend/src/i18n/nl.json@@ -741,6 +741,8 @@"Document editor": "Documenteditor","Ask Me": "Mij vragen","Used when both editors support the file type.": "Wordt gebruikt wanneer beide editors het bestandstype ondersteunen.",+ "Show hidden files": "Verborgen bestanden tonen",+ "Show files and folders whose names start with a dot.": "Bestanden en mappen tonen waarvan de naam met een punt begint.","Enable content indexation for personal files.": "Inhoudsindexering inschakelen voor persoonlijke bestanden.","Actions": "Acties","Delete all indexes.": "Alle indexen verwijderen.",@@ -776,6 +778,7 @@"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 hidden files preference": "Kan de voorkeur voor verborgen bestanden niet bijwerken","Unable to update sidebar preference": "Kan zijbalkvoorkeur niet bijwerken","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.jsonindex d1e1febe..56c9daab 100644--- a/frontend/src/i18n/pl.json+++ b/frontend/src/i18n/pl.json@@ -741,6 +741,8 @@"Document editor": "Edytor dokumentów","Ask Me": "Pytaj mnie","Used when both editors support the file type.": "Używane, gdy oba edytory obsługują typ pliku.",+ "Show hidden files": "Pokaż ukryte pliki",+ "Show files and folders whose names start with a dot.": "Pokaż pliki i foldery, których nazwy zaczynają się od kropki.","Enable content indexation for personal files.": "Włącz indeksowanie treści dla plików osobistych.","Actions": "Akcje","Delete all indexes.": "Usuń wszystkie indeksy.",@@ -776,6 +778,7 @@"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 hidden files preference": "Nie można zaktualizować ustawienia ukrytych plików","Unable to update sidebar preference": "Nie udało się zaktualizować preferencji paska bocznego","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.jsonindex d9f2fda0..12cbb6ef 100644--- a/frontend/src/i18n/pt-BR.json+++ b/frontend/src/i18n/pt-BR.json@@ -741,6 +741,8 @@"Document editor": "Editor de documentos","Ask Me": "Perguntar sempre","Used when both editors support the file type.": "Usado quando ambos os editores suportam o tipo de arquivo.",+ "Show hidden files": "Mostrar arquivos ocultos",+ "Show files and folders whose names start with a dot.": "Mostrar arquivos e pastas cujos nomes começam com um ponto.","Enable content indexation for personal files.": "Ativar indexação de conteúdo para arquivos pessoais.","Actions": "Ações","Delete all indexes.": "Excluir todos os índices.",@@ -776,6 +778,7 @@"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 hidden files preference": "Não foi possível atualizar a preferência de arquivos ocultos","Unable to update sidebar preference": "Não foi possível atualizar a preferência da barra lateral","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.jsonindex 3eb9987a..5f83e15a 100644--- a/frontend/src/i18n/pt.json+++ b/frontend/src/i18n/pt.json@@ -741,6 +741,8 @@"Document editor": "Editor de documentos","Ask Me": "Perguntar sempre","Used when both editors support the file type.": "Usado quando ambos os editores suportam o tipo de arquivo.",+ "Show hidden files": "Mostrar arquivos ocultos",+ "Show files and folders whose names start with a dot.": "Mostrar arquivos e pastas cujos nomes começam com um ponto.","Enable content indexation for personal files.": "Ativar indexação de conteúdo para ficheiros pessoais.","Actions": "Ações","Delete all indexes.": "Eliminar todos os índices.",@@ -776,6 +778,7 @@"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 hidden files preference": "Não foi possível atualizar a preferência de arquivos ocultos","Unable to update sidebar preference": "Não foi possível atualizar a preferência da barra lateral","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.jsonindex 78f370c4..afcf95a4 100644--- a/frontend/src/i18n/ru.json+++ b/frontend/src/i18n/ru.json@@ -741,6 +741,8 @@"Document editor": "Редактор документов","Ask Me": "Спрашивать каждый раз","Used when both editors support the file type.": "Используется, когда оба редактора поддерживают тип файла.",+ "Show hidden files": "Показывать скрытые файлы",+ "Show files and folders whose names start with a dot.": "Показывать файлы и папки, имена которых начинаются с точки.","Enable content indexation for personal files.": "Включить индексацию содержимого для личных файлов.","Actions": "Действия","Delete all indexes.": "Удалить все индексы.",@@ -776,6 +778,7 @@"Dark": "Тёмная","Unable to update theme preference": "Не удалось обновить настройку темы","Unable to update editor preference": "Не удалось обновить настройку редактора",+ "Unable to update hidden files preference": "Не удалось обновить настройку скрытых файлов","Unable to update sidebar preference": "Не удалось обновить настройку боковой панели","Sidebar auto-hide enabled": "Автоскрытие боковой панели включено","Sidebar pinned": "Боковая панель закреплена",diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.jsonindex d19c3b4e..bec45858 100644--- a/frontend/src/i18n/tr.json+++ b/frontend/src/i18n/tr.json@@ -741,6 +741,8 @@"Document editor": "Belge düzenleyici","Ask Me": "Bana sor","Used when both editors support the file type.": "Her iki editör de dosya türünü desteklediğinde kullanılır.",+ "Show hidden files": "Gizli dosyaları göster",+ "Show files and folders whose names start with a dot.": "Adları noktayla başlayan dosya ve klasörleri göster.","Enable content indexation for personal files.": "Kişisel dosyalar için içerik indekslemeyi etkinleştir.","Actions": "İşlemler","Delete all indexes.": "Tüm dizinleri silin.",@@ -776,6 +778,7 @@"Dark": "Koyu","Unable to update theme preference": "Tema tercihi güncellenemedi","Unable to update editor preference": "Düzenleyici tercihi güncellenemedi",+ "Unable to update hidden files preference": "Gizli dosya tercihi güncellenemedi","Unable to update sidebar preference": "Kenar çubuğu tercihi güncellenemedi","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.jsonindex 3746275b..c55f8d0d 100644--- a/frontend/src/i18n/zh.json+++ b/frontend/src/i18n/zh.json@@ -741,6 +741,8 @@"Document editor": "文档编辑器","Ask Me": "询问我","Used when both editors support the file type.": "当两个编辑器都支持该文件类型时使用。",+ "Show hidden files": "显示隐藏文件",+ "Show files and folders whose names start with a dot.": "显示名称以点开头的文件和文件夹。","Enable content indexation for personal files.": "启用个人文件内容索引。","Actions": "操作","Delete all indexes.": "删除所有索引。",@@ -776,6 +778,7 @@"Dark": "深色","Unable to update theme preference": "无法更新主题偏好设置","Unable to update editor preference": "无法更新编辑器偏好设置",+ "Unable to update hidden files preference": "无法更新隐藏文件偏好设置","Unable to update sidebar preference": "无法更新侧边栏偏好设置","Sidebar auto-hide enabled": "侧边栏自动隐藏已启用","Sidebar pinned": "侧边栏已固定",