Commit graph

174 commits

Author SHA1 Message Date
Ferdinand Thiessen
5c3bb1d91d
fix: ensure enabled themes are set on the template
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-04 10:07:48 +02:00
Ferdinand Thiessen
e1f94d0f67
test: add cypress tests for sharing download permission
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-02 13:16:10 +02:00
Ferdinand Thiessen
a7fcd2428e
fix(files_sharing): ensure share status action works also in grid view
Remove some hacks from files app about the *files_sharing* status
action, in general not sure why this hack was there instead of being in
the correct app - but it broke the grid view.

So now the sharing information is also available in grid view.

Moreover the icon is fixed in size to not overflow the actions menu.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-31 16:33:47 +02:00
Ferdinand Thiessen
ecfe02db47
fix(files_versions): correctly show version author also for shared files
The users endpoint is not available for other users if the current user
has no admin privileges, so instead use the displaynames endpoint.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-26 10:21:19 +01:00
Ferdinand Thiessen
d2ed25d862 fix(profile): allow to reset phone number
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-22 17:47:09 +01:00
Ferdinand Thiessen
bec567164e
test(cypress): adjust files-renaming
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-19 18:58:38 +01:00
Ferdinand Thiessen
c5ad89a9a2
test(cypress): wait for button to be visible
Instead of just expecting the button in the DOM.
This causes flaky tests with files-renaming.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-19 18:02:56 +01:00
Ferdinand Thiessen
d417f41115
fix(files_trashbin): disable bulk download for trashbin
The backend does not allow bulk download within the trashbin,
so we need to disable this also on the frontend.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-19 18:02:17 +01:00
skjnldsv
86a25c84d8 fix(cypress): rename select all clear
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-03-06 16:32:45 +01:00
Louis Chemineau
9730f8634b
test: Improve stability of live photo e2ee tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-03-06 11:27:28 +01:00
Louis Chemineau
ad5aa6c631
fix(test): Escape quotes in runOccCommand argument
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-03-06 10:26:42 +01:00
Louis Chemineau
4e65026d2f
chore(tests): Fix using save/restore state in cypress
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-03-06 10:26:40 +01:00
skjnldsv
5dbca559e4 fix(cypress): opendetails tests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-21 10:54:17 +01:00
skjnldsv
fc88c7862e fix(cypress): action selector menu lookup
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-21 09:53:11 +01:00
skjnldsv
18e6fe22ba chore(cypress): also log the current server image sha
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>

[skip ci]
2025-02-21 09:53:11 +01:00
skjnldsv
e5b9034c20 chore(files_external): add cypress tests for user credentials action
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-21 09:53:11 +01:00
skjnldsv
70f65efb39 fix(files): properly show file not found error
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-19 09:52:53 +01:00
Ferdinand Thiessen
2777ef7ea7
fix(files): Do not download files with openfile query flag
Instead of downloading files, if there is no other default action,
we should just open the details tab.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-14 16:40:19 +01:00
nfebe
f7cc372444 test(files_sharing): Check that default expiration date is shown b4 create share
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 10:51:22 -08:00
nextcloud-command
df5ffb13b3
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-11 17:17:18 +01:00
nfebe
f0c3f81b77
test(files_sharing): add e2e tests for public link sharing
This commit introduces end-to-end tests for various public link sharing scenarios in the `files_sharing` app. It validates the behavior under multiple configurations:

- Password and expiration date enforced
- Password enforced with a default expiration date
- Expiration date enforced with optional password
- Default password and expiration date without enforcement
- Password enforced, expiration date set but not enforced
- Both password and expiration date not enforced, but defaults set
- Password not enforced, expiration date enforced
- Password not enforced, default expiration date set
- Password and expiration date not enforced with no defaults

The tests ensure proper validation and functionality of the configurations, leveraging the `setupData` and `createShare` utilities.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 17:16:08 +01:00
nfebe
6b29527e61
feat: Add setup-public-share.ts
This addition enhances the testing framework for public sharing by
improving the setup and management of share contexts.

Additionally, the update optimizes share permission adjustments and
improves state management, making public share setups more efficient and maintainable.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 17:16:08 +01:00
Ferdinand Thiessen
44742d617f
fix(settings): Also sanitize fediverse and twitter handle in the frontend
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-09 13:46:27 +01:00
Ferdinand Thiessen
00d9d8366e fix: Redirect user to login if session is terminated
If a session timed out or was closed in another tab,
then currently the user gets random error messages.
This intercepts 401 responses (should only happen if logged out, or the
users does something wrong).

If we get a 401, we make sure its because of the session,
by checking if the user can access the files app.
If that is also the case we forward the user to the login page
and set the redirect URL to the last used URL.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-28 10:06:03 +01:00
Ferdinand Thiessen
d8593af7f2 fix(theming): Ensure to only send valid URLs to backend
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-27 17:57:41 +00:00
Richard Steinmetz
f0dfc9c504
fix(files): sort not working after changing views
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2025-01-20 19:30:06 +01:00
Ferdinand Thiessen
105fa977d1
test: Add end-to-end test for share expiration date
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-15 21:07:09 +01:00
skjnldsv
b51e7b42fd fix(files): cancel renaming on enter if no file name changes
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-10 10:55:00 +00:00
Ferdinand Thiessen
42c5900e11
test: Adjust Cypress setup to support mainline JS syntax
TODO: Drop when we support Node 22.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-11-07 17:37:44 +01:00
Ferdinand Thiessen
533c5e2aa4
fix(files): Ensure renaming state is correctly reset
Problem: Is a node is renamed and the new name is out of the current
visible list of nodes the component will be recycled, this means
the props will change, so when the `onRename` functions is about to reset
the state the `this.source` will point to a different node.

To fix this, but also to separate business logic from visual representation,
the logic is moved into the renaming store and the component is only
responsible for rendering.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-11-07 16:37:55 +01:00
Ferdinand Thiessen
714ef088ad
test(files): Add tests for path handling
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-16 18:32:59 +02:00
Côme Chilliet
3ea281269f
chore(tests): fix import in cypress test limit_to_same_group.cy.ts
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 16:16:52 +02:00
Côme Chilliet
3ec0998ecf
chore(tests): Fix import in cypress test limit_to_same_group.cy.ts
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:39:39 +02:00
Côme Chilliet
8ee5180f39
chore(tests): Fix SPDX license header on new cypress test
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:39:32 +02:00
Côme Chilliet
21e47d4ff9
fix: Remove shares only if there are no more common groups between users
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:33:26 +02:00
Louis Chemineau
ac6c0363de
chore(tests): Test limiting sharing to same group
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-08-13 14:33:17 +02:00
Ferdinand Thiessen
adacfa8e9b
fix(files): Provide file actions from list entry to make it reactive
This fixes non reactive default action text of the name component.
Also use download action as default action so that only one place
is needed to define how to download a file.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-08 17:20:54 +02:00
Ferdinand Thiessen
6524f0a756
test: Add test for recent view
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-08 16:49:15 +02:00
Ferdinand Thiessen
e56fe07bbc
fix(files): Correctly validate new node name
* Resolves https://github.com/nextcloud/server/issues/45409

This includes two fixes:

1. The name in the "new node" dialog is correctly selected (e.g. `file.txt` only `file` is selected by default), to allow quick naming

2. `@nextcloud/files` functions for filename validation are used, this allows to use new Nextcloud 30 capabilities (e.g. reserved names)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 22:08:16 +02:00
skjnldsv
0523fad4c1 fix(cypress): filesSharingUtils import
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-08-02 15:44:29 +02:00
Ferdinand Thiessen
62cf0a3788 test: Add regression test for opening shared folders
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 15:44:29 +02:00
skjnldsv
a2ea37921f chore(cypress): adjust files-sidebar.cy.ts
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-08-02 15:00:47 +02:00
Ferdinand Thiessen
c27de43886 fix(files): Close the sidebar on navigation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 10:21:05 +02:00
Ferdinand Thiessen
0539b0a92d
fix: Use functions from @nextcloud/files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-26 02:23:19 +02:00
skjnldsv
70113b817c fix(cypress): wait for apps list fetch for better testing stability
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-09 20:37:10 +00:00
Ferdinand Thiessen
7b49eea413 feat(cypress): Add tests for files sidebar
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-07 12:08:37 +02:00
Ferdinand Thiessen
6c544172e3
fix(files): Do not show files from hidden folders in "Recent"-view if hidden files are disabled by user
Needed to adjust the store creation to be able to inject pinia before the vue app is initialized.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-18 12:46:13 +02:00
Ferdinand Thiessen
986fd6e783
fix(files): Ensure search query is cleared when changing view or directory
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-18 00:55:21 +02:00
Eduardo Morales
e7c1850283 fix(Cypress): Adjust tests for new breadcrumbs
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-10 08:06:57 -05:00
skjnldsv
0aa4e0a675 chore: add drag and drop recursion and FilesystemAPI testing
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 11:58:34 +00:00