Commit graph

555 commits

Author SHA1 Message Date
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
Andy Scherzinger
e135a595d4
Merge pull request #54841 from nextcloud/fix/files-inline-sharing-status
fix(files_sharing): add some gap between text and sharing status icon
2025-09-03 18:36:58 +02:00
Ferdinand Thiessen
b1cbcb6a84 fix(files_sharing): add some gap between text and sharing status icon
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-03 18:00:32 +02:00
Ferdinand Thiessen
7cc564bfd1 fix(l10n): use productName instead of hardcoded 'Nextcloud' where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-03 16:24:50 +02:00
Andy Scherzinger
5087e3376a style(icon): Use material symbol variant of upload icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-08-27 15:19:47 +00:00
Salvatore Martire
0d6e9f8410 fix(files_sharing): remove condition on "Others with access"
The condition was checking shares.length to display the Others with
access component, but shares is filled only on expanding that section,
rendering the section never visible.

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2025-08-27 12:14:34 +00:00
Andy Scherzinger
ec84001af7 style(icon): Use material symbol variant of delete icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-08-27 12:29:34 +02:00
Ferdinand Thiessen
cde2618356 fix(files_sharing): correctly apply icons and copy share link
1. Use correct color
2. Do not mix legacy icon classes with MDI icons this will show two
   icons...
3. Use proper aria label and put status into the title

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-26 20:07:37 +00:00
Salvatore Martire
eaaa9070ed fix(files_sharing): do not check password checkbox by default
The checkbox appears checked when no password is set (share.password ===
undefined)

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2025-08-26 17:50:30 +02:00
provokateurin
d4b05201d8
fix(files_sharing): Correctly reject pending remote shares
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-08-25 14:55:27 +02:00
John Molakvoæ
d5417d63e0
Merge pull request #54410 from nextcloud/fix/sharing-status-action-sidebar-promise-return 2025-08-21 11:24:15 +02:00
skjnldsv
88d7275c60 chore(files_sharing): remove unused legacy scripts
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-08-20 14:28:36 +00:00
skjnldsv
9404059f6c fix(files_sharing): sharing status action permission and sidebar await
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-08-20 16:21:09 +02:00
John Molakvoæ
971dfd7cbf fix(files): properly type window Files APIs
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2025-08-20 16:21:09 +02:00
Ferdinand Thiessen
e99ea1a351 fix: adjust server styles for new secondary status colors
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-19 15:05:01 +02:00
kramo
ba4f235628 fix: Replace some more icons with outlined ones
Follow-up to #54054

Signed-off-by: kramo <git@kramo.page>
2025-08-18 10:03:14 +02:00
Richard Steinmetz
798f3734be
perf: render sharing tab sections only once
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2025-08-13 20:10:47 +02:00
kramo
c5d1f2f9ff
fix(l10n): Less jargon in source strings
This removes:
- “enable” for settings
- “settings” for settings sections
- “all” when there is no obvious subset of items
- “show” and “open” for navigation actions
- “changes” for applying/discarding
- “to clipboard” when copying
- Explaining things that cannot happen
- Explaining things twice, right below each other
- Unnecessary technical jargon
- Text that sounds like marketing copy and serves no other purpose

Signed-off-by: kramo <git@kramo.page>
2025-08-12 14:37:34 +02:00
nfebe
e7f4de6296 fix(files_sharing): Implementation conditional federation placeholder
This commits addresses an annoyance where the share input placeholder would
suggest sharing via federated cloud ID even if federation was disabled.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-08-11 18:54:56 +01:00
Ferdinand Thiessen
5cbfe61b18 fix(files_sharing): show shares to remote as internal if configured so
- if this is a GS instance
- or was configured by administrator

Then show the share as internal (remote and remote group shares).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-11 15:18:29 +00:00
Ferdinand Thiessen
ae5d57371a feat(files_sharing): show GS users similar to internal users
- resolves: https://github.com/nextcloud/server/issues/52497

Ensure that when global scale is enabled the federated users are shown
just like internal users.
Meaning no server part but instead use the email address like with internal.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-11 09:18:16 +00:00
Ferdinand Thiessen
61c9a6eb22 fix(files_sharing): only show "shared with me" information if shared
The variable is intialized to `{}` which is truthy, so instead just
check if there is a user assigned to the share info.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-08-06 09:37:58 +00:00
skjnldsv
627f8cabd6 fix(files_sharing): ensure password or date is enabled by default to be enforced
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-08-02 12:22:31 +00:00
Ferdinand Thiessen
48f86c4696
chore: remove nextcloud-vue-collections and use @nextcloud/vue instead
`nextcloud-vue-collections` is deprecated for quite some time and was
merged into `@nextcloud/vue`. So lets drop that dependency.

Adjust the two files where it was used, one of them was itself never
used so just dropped that file.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-31 13:52:32 +02:00
nfebe
2bb8c72c47 feat(files_sharing): Toggle display for trusted server shares
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-07-29 13:24:49 +01:00
skjnldsv
3cff9d87e9 fix(files_sharing): fallback self.crypto.getRandomValues
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-07-28 18:07:26 +02:00
skjnldsv
a1c84cb3c0 feat: replace material icons with outline versions (second pass)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-07-24 12:34:35 +02:00
skjnldsv
3e7dc97cae feat: replace material icons with outline versions
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-07-24 10:55:43 +02:00
Ferdinand Thiessen
fb397e6d23 fix(files_sharing): restore state when updating share failed
We need to save the previous state - here the password - so that if the
update fails we can revert the shown state.
This happens e.g. if you have the password policy app and try to add an
unsecure password.

To reproduce (with password policy):
1. Create new link share
2. enable password protection
3. use insecure password like `1234`
4. save share

Now you see that the update failed, but the password protection is still
enabled. This happened because `password` and `newPassword` were
misused. `password` was already set when `newPassword` was not saved so
we could not know to what we need to reset when the update failed.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-23 17:07:33 +02:00
Ferdinand Thiessen
d5a4eb8139
fix(files): also use open-in-files for the search view
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-01 19:47:25 +02:00
Ferdinand Thiessen
af2cae740c
fix(files_sharing): scope file action id to prevent conflicts
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-07-01 19:47:25 +02:00
provokateurin
d55b1eeb33
fix(files_sharing): Stop hiding delete share button in advanced settings menu
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-06-30 13:01:05 +02:00
Ferdinand Thiessen
87428bfeff
fix(files_sharing): do not double escape the share title
The title is already escaped by vue so special characters would result
in incorrect strings.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-06-19 11:44:21 +02:00
nfebe
c50a33812f feat(files_sharing): Hide external shares for users in excluded groups
- Added frontend check to hide link shares if, public sharing is disabled.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-06-17 14:32:46 +01:00
nfebe
2131b16ced fix(file_sharing): Remove string concatenated translation
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-06-17 11:50:59 +02:00
skjnldsv
df88920680 fix(files_sharing): l10n typo
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-06-11 16:43:53 +02:00
skjnldsv
bf3ce79abd feat(files_sharing): show Account menu on public pages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-06-11 16:43:53 +02:00
skjnldsv
e41e8de0e2 fix(dav): file drop nickname
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-06-05 09:09:17 +02:00
skjnldsv
67e2151ee6 fix(files_sharing): show message when nickname is not valid
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-06-05 06:48:32 +00:00
Ferdinand Thiessen
60ccc85e76
fix(files_sharing): show note, label and list of uploaded files on file drop
This was missing from the Vue migration of the public share view:
- Show the note as the description of the file drop
- Show the label as the heading of the file drop if available
- Show list of uploaded files for verification

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-05-26 15:11:36 +02:00
John Molakvoæ
183c253f5e
Merge pull request #52533 from nextcloud/fix/no-account-filter-public-share
fix: do not show account filter for public shares
2025-05-15 19:25:31 +02:00
nfebe
63cf3f53c3 fix(files_sharing): Show note if note exists on share
When a share includes a note, ensure the note checkbox is checked and the note is
displayed when reopening the share sidebar.

Fixes: #52794.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-14 22:39:15 +02:00
Ferdinand Thiessen
e9382dc4da fix: do not show account filter for public shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-05-13 14:21:22 +02:00
rakekniven
2ed16599e1 chore(i18n): Use plural
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2025-05-09 07:01:56 +00:00
Valdnet
95af3305d8 Spelling standardization
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2025-05-09 07:01:56 +00:00
nfebe
f471bd292f fix(files_sharing): Move ConfigLexicon to Config dir, update sharing input
- Fix autoloading for new `ConfigLexicon`
- Ensure that sharing input in sharing tab respect `show-federated-shares-as-internal`:
This is important, because when federated shares are shown as internal the users should add them from the internal shares section

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-06 14:28:01 +01:00
nfebe
1c50329fdb feat(files_sharing): Add toggle for federated share display area
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-05-06 14:28:01 +01:00
skjnldsv
58aaddeca5 fix(dav): check the owner displayName scope before giving attribute
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-04-30 08:37:08 +02:00
nfebe
99ae04d9ce fix(files_sharing): Prevent create/delete permissions on file shares
File shares can't support create or delete permissions. This change ensures those permissions are
 stripped or ignored when the shared item is not a folder.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-04-29 13:42:02 +02:00
nfebe
6454cb5124 perf(files_sharing): Change sharing filtering from O(3n) to O(n)
Replaced multiple Array.filter() calls with a single loop to improve performance.
This avoids redundant iterations over the shares array and categorizes them more efficiently.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-04-25 12:00:04 +01:00