Commit graph

940 commits

Author SHA1 Message Date
Ferdinand Thiessen
668f7f6bca
fix(files): show proper notes about overwriting files when moving
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-05-20 23:34:43 +02:00
Ferdinand Thiessen
fcb949c5e6
fix(files): only show template picker menu entries if possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-05-19 12:09:23 +02:00
Kent Delante
f477d37e6e fix(files): escape html entities in dav search requests
Signed-off-by: Kent Delante <kent@delante.me>

This fixes a 'xmlParseEntityRef: no name' error returned when
searching in files navigation while in folders with special characters
in the name.
2026-05-13 14:32:08 +08:00
Jana Peper
7fc0d15483 fix(files): internal drag and drop
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
2026-05-06 13:00:44 +02:00
Ferdinand Thiessen
bb6b0cc240
fix(files): do not show convert-file action in view-only shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-23 12:22:32 +02:00
Ferdinand Thiessen
3df9b6039c
fix(files): add missing table header for actions column
- resolves https://github.com/nextcloud/server/issues/59333

Every column needs an header with some label for accessibility,
so screen reader know which column they are in currently.
This adds the missing header (but hides it visually so only for SR).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-20 20:21:55 +02:00
dsyzov
9b0535115a fix(files):Update openLocallyAction.ts
Signed-off-by: dsyzov <sizovdmitrij@gmail.com>
2026-04-16 04:32:14 +00:00
dsyzov
b2463b9629 fix: remove error message when closing the "Open locally" dialog
catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic

Signed-off-by: dsyzov <sizovdmitrij@gmail.com>
2026-04-16 04:32:14 +00:00
Ferdinand Thiessen
17c436c526 fix(files): properly handle dropped files on subfolders
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-14 17:45:45 +02:00
Git'Fellow
63a3b8dcae
fix(filesDrop): drag-and-drop folder upload directories
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2026-04-01 01:33:53 +02:00
Cristian Scheid
99807fc9f8 feat(recent-search): pass recent_limit config value to getRecentSearch function
feat(recent-search): pass recent_limit config value to getRecentSearch function

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-03-26 10:53:10 +00:00
Cristian Scheid
e804544083 refactor(recent-files): remove user config from frontend files
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-26 08:06:17 +00:00
Cristian Scheid
7c03d21ef2 refactor(files-settings): remove recent file settings section
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-26 08:06:17 +00:00
Cristian Scheid
8962fc4f5a feat(recent-files): add recent_files_limit config on files settings
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-26 08:06:15 +00:00
skjnldsv
0b35614fb2 fix(files): fix tab navigation from select all checkbox to batch actions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2026-03-19 15:58:03 +00:00
Ferdinand Thiessen
be07ff91ce fix(files): properly handle dropping files
- resolves https://github.com/nextcloud/server/issues/58454

use upload library for dropped files instead of custom logic

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-03-17 14:14:27 +01:00
Ferdinand Thiessen
6008694b93 fix(files): ensure creating folders in public shares work
The root of the webdav client needs to be the public share root,
as accessing the `/files` folder is not possible for public shares.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-03-04 11:54:09 +00:00
Cristian Scheid
d15b22d94f fix(dav): add missing search_supports_creation_time and search_supports_upload_time to Capabilities return type
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-03-03 21:16:48 +00:00
Cristian Scheid
90d5d1532a refactor(recent-search): use d:creationdate instead of c:creation_time and crtime instead of attributes.upload_time
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-03 15:09:28 +00:00
Cristian Scheid
657b9b6617 refactor(recently-created-icon): use mdi/js path instead of raw svg prop setup() instead of data()
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-03 15:09:28 +00:00
Cristian Scheid
a553bdf071 feat: set creation_time on file creation and render recently created icon
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
2026-03-03 15:09:28 +00:00
Ferdinand Thiessen
cf76fa5213 fix(files): improve handling of copy-move action
1. only show 1 loading toast instead of N for N files in batch
   operation.
2. Reuse more code to reduce duplicated logic.
3. Show the conflict picker once for all files instead of opening a new
   conflict picker for every file to copy / move.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-03-03 12:45:24 +01:00
Kent Delante
53db3d9e57 fix(files): ensure details doesn't trigger view
When going into "Shared with you" and into a shared folder, clicking
"Details" on the three-dot-menu triggers the file to open. This
ensures that it doesn't trigger it.

Signed-off-by: Kent Delante <kent.delante@proton.me>
2026-02-16 21:39:30 +08:00
Marcel Klehr
26df3ce530 fix(files): Update sidebar when renaming node
fixes #51408

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2026-02-02 10:26:42 +01:00
Louis Chmn
173a4ce40a fix(files): Inhibit download for non downloadable nodes in all contexts
Signed-off-by: Louis Chmn <louis@chmn.me>
2026-01-18 16:23:39 +00:00
Ferdinand Thiessen
b770bbdd54
refactor(test): migrate cypress component tests to vitest
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-12-17 17:47:46 +01:00
Ferdinand Thiessen
a3871346e1 refactor: adjust code for breaking changes in @nextcloud/dialogs v7
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-12-17 16:12:49 +01:00
Louis Chmn
2824bd6b50 chore(files): Remove regular stats request
All views are now migrated.

Signed-off-by: Louis Chmn <louis@chmn.me>
2025-12-03 09:15:58 +00:00
Szymon Kłos
1374b92207 fix(files): Do not fail on missing sidebar in files list
When using richdocuments it was failing in case of shared links
or when user with opened file did a wheel click on a refresh page.
Then new tab appeared but instead opening the file it was doing
nothing (showing the list of files) or downloading the file.

Make code more defensive. I found these logs while debugging:
OCA.Files.Settings initialized
Sidebar.js:19 OCA.Files.Sidebar initialized
ShareSearch.js:16 OCA.Sharing.ShareSearch initialized
comments-app.js:15 OCA.Comments.View initialized
index.mjs:54 files: Error while opening sidebar Object
log @ index.mjs:54
index.mjs:54 files: Error while opening sidebar Objectapp: "files"
TypeError: window.OCA.Files.Sidebar.open is not a function
    at h.exec (http://nc/dist/files-main.js?v=106d16db-0:1:70123)
    at o.openSidebarForFile (http://nc/dist/files-main.js?v=106d16db-0:1:163422)
    at o.handleOpenQueries (http://nc/dist/files-main.js?v=106d16db-0:1:163167)
    at o.openDetails (http://nc/dist/files-main.js?v=106d16db-0:1:162349)
    at fn (http://nc/dist/core-common.js?v=106d16db-0:1:3942538)
    at e.run (http://nc/dist/core-common.js?v=106d16db-0:1:3946900)
    at sa (http://nc/dist/core-common.js?v=106d16db-0:1:3948728)
    at Array.<anonymous> (http://nc/dist/core-common.js?v=106d16db-0:1:3943585)
    at bn (http://nc/dist/core-common.js?v=106d16db-0:1:3942986)level: 2uid: "admin"
       [[Prototype]]: Object
log @ index.mjs:54

Possibly regression from
e7001022c7

Fixes https://github.com/nextcloud/richdocuments/issues/3815

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2025-11-30 18:25:27 +00:00
John Molakvoæ
7b53dacfdd fix(files): use isDownloadable for isSyncable
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>

[skip ci]
2025-11-28 09:55:01 +01:00
Fauzan
a2920dc7a9 fix(files_sharing): Hide 'Open locally' action
This patch ensures that the "Open locally" context menu item is not
displayed for files in a share where the "download and sync" permission
has not been granted.

This prevents user confusion, as the action would fail anyway. The fix
adds a permission check before rendering the menu item, and adds a
corresponding unit test to verify this behavior.

Resolves: #54970

Signed-off-by: Fauzan <fauzanfebriann@gmail.com>
2025-11-28 08:52:44 +00:00
Côme Chilliet
13041eeee7
chore(stable32): npm run lint:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-11-17 10:06:44 +01:00
Ferdinand Thiessen
00e3c94ab9
refactor(files): migrate to new NcForm* components for app settings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-14 15:25:21 +01:00
Ferdinand Thiessen
529d7eae2f
fix(files): use correct types for the Settings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-14 15:24:15 +01:00
Ferdinand Thiessen
74501ca66e
refactor(files): move file action hotkeys to the file actions
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-13 22:52:33 +01:00
Ferdinand Thiessen
8c9ae9f939
refactor(files): use new NcAppSettingsShortcutsSection
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-11-13 22:50:29 +01:00
rakekniven
0cf45b781d chore(i18n): Fixed plural strings
Also reduced words. See https://uxdworld.com/how-to-write-effective-success-messages/ for details

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2025-11-06 17:00:13 +00:00
Ferdinand Thiessen
2aa07b8644
fix(files): make sure drag-and-drop and the upload menu behaves the same
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-28 18:53:43 +01:00
Louis Chmn
fa01bbc98a fix(FilesPicker): Prevent selection of nodes without create permission
And remove the disable callback for the button as it is not needed anymore.

This gives a better experience as the nodes do not have a pointer for cursor, and the submit button does not react when clicking on them.

Signed-off-by: Louis Chmn <louis@chmn.me>
2025-10-22 07:16:43 +00:00
Victor
577fffbac8 feat(files): Add font-variant-numeric to selected files list
Signed-off-by: Victor <victorlap@outlook.com>

[skip ci]
2025-10-21 07:35:34 +00:00
Ferdinand Thiessen
515d1b5ae3
feat: add new link endpoint when using globalscale
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-15 22:52:05 +02:00
Maksim Sukharev
71678ca551 fix(files): clear search input on directory navigation
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-10-14 07:24:08 +00:00
Ferdinand Thiessen
a7f7ae2770 fix(files): pass Node to FileInfo object
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-18 16:22:51 +02:00
Louis Chemineau
2e2994d6a4 fix(encryption): Correctly set encrypted to 0 when copying
If encryption got disabled, copying should set encrypted to 0 for the
 new unencrypted copy. For instance when using encryption:decrypt-all

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-08 22:35:57 +02:00
Ferdinand Thiessen
a2c373b7ea fix: the account files filter should also work in trashbin
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-03 18:38:49 +02:00
Ferdinand Thiessen
a42bd7a507
refactor: add enum for filename sanitization also in the frontend
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-02 11:01:53 +02:00
Ferdinand Thiessen
805fe3e15b
feat(files): provide UI to sanitize filenames after enabling WCF
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-02 10:53:01 +02:00
Luka Trovic
edd5dee342 fix: resolving conflict when uploading multiple files via drag&drop
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2025-08-31 21:20:30 +02:00
John Molakvoæ (skjnldsv)
6fb7f7f4e7 fix(files): verify files are still accessible before downloading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2025-08-28 22:27:26 +02:00
Andy Scherzinger
1248ac93f2 style(icon): Use information-outline instead of information-variant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-08-27 15:19:47 +00:00