nextcloud-desktop.git
2 years agoGive debug archive save location dialog a default location
Claudio Cambra [Mon, 1 Apr 2024 09:54:25 +0000 (17:54 +0800)]
Give debug archive save location dialog a default location

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix "false" error about bad applying of nodiscard to value type
Claudio Cambra [Wed, 27 Mar 2024 11:47:04 +0000 (19:47 +0800)]
Fix "false" error about bad applying of nodiscard to value type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRe-run update sync paused state slot when folder list has changed
Claudio Cambra [Wed, 27 Mar 2024 11:25:37 +0000 (19:25 +0800)]
Re-run update sync paused state slot when folder list has changed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure to emit syncIsPausedChanged in syncIsPaused setter
Claudio Cambra [Wed, 27 Mar 2024 11:25:11 +0000 (19:25 +0800)]
Make sure to emit syncIsPausedChanged in syncIsPaused setter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure to emit relevant signals and set sync is paused to true if relevant
Claudio Cambra [Wed, 27 Mar 2024 11:24:54 +0000 (19:24 +0800)]
Make sure to emit relevant signals and set sync is paused to true if relevant

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoExtract syncIsPaused initialisation into new updater slot
Claudio Cambra [Wed, 27 Mar 2024 10:09:33 +0000 (18:09 +0800)]
Extract syncIsPaused initialisation into new updater slot

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agodo not cause implicit hydration of virtual files during sync
Matthieu Gallien [Wed, 3 Apr 2024 11:29:58 +0000 (13:29 +0200)]
do not cause implicit hydration of virtual files during sync

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6675 from nextcloud/backport/6621/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 16:22:22 +0000 (18:22 +0200)]
Merge pull request #6675 from nextcloud/backport/6621/stable-3.13

[stable-3.13] if a virtual file change but nothing changed: set it as in sync

2 years agoif a virtual file change but bothing changed: set it as in sync
Matthieu Gallien [Thu, 11 Apr 2024 16:39:20 +0000 (18:39 +0200)]
if a virtual file change but bothing changed: set it as in sync

some software (at least outlook native software) may fiddle with CfApi
placeholder metadta and set a .msg file to be out of sync state when
opening it

in that case, we will let the sync engine go over it and decide what to
do

it is then possible in that case that we would just put it back in "in
sync" state

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6626 from nextcloud/backport/6613/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 16:21:05 +0000 (18:21 +0200)]
Merge pull request #6626 from nextcloud/backport/6613/stable-3.13

[stable-3.13] Feature/office files lock newly created. Plus refactoring.

2 years agoDetect office files for locking on new upload. Notify FolderWatcher.
alex-z [Wed, 3 Apr 2024 16:10:49 +0000 (18:10 +0200)]
Detect office files for locking on new upload. Notify FolderWatcher.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoMerge pull request #6674 from nextcloud/backport/6670/stable-3.13
Claudio Cambra [Tue, 23 Apr 2024 15:57:06 +0000 (23:57 +0800)]
Merge pull request #6674 from nextcloud/backport/6670/stable-3.13

[stable-3.13] Use davUser instead of direct credentials user in file provider

2 years agoUse davUser instead of direct credentials user in file provider
Claudio Cambra [Tue, 23 Apr 2024 14:24:20 +0000 (22:24 +0800)]
Use davUser instead of direct credentials user in file provider

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6667 from nextcloud/backport/6663/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 15:29:44 +0000 (17:29 +0200)]
Merge pull request #6667 from nextcloud/backport/6663/stable-3.13

[stable-3.13] create registry keys needed for edit locally in local machine category

2 years agocreate registry keys needed for edit locally in local machine category
Matthieu Gallien [Tue, 23 Apr 2024 08:17:20 +0000 (10:17 +0200)]
create registry keys needed for edit locally in local machine category

creating the registry keys via installer for the current user is not
enough to have the feature enabled for all user accounts on a given
machine

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6664 from nextcloud/backport/6655/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 12:47:57 +0000 (14:47 +0200)]
Merge pull request #6664 from nextcloud/backport/6655/stable-3.13

[stable-3.13] Bugfix/folder conflict disappear

2 years agoFix tests failure. Refactoring.
alex-z [Mon, 22 Apr 2024 19:44:49 +0000 (21:44 +0200)]
Fix tests failure. Refactoring.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoFix CI errors.
alex-z [Sun, 21 Apr 2024 22:36:02 +0000 (00:36 +0200)]
Fix CI errors.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoUnit tests for diverse conflicts in one folder.
alex-z [Sun, 21 Apr 2024 21:48:01 +0000 (23:48 +0200)]
Unit tests for diverse conflicts in one folder.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoAlso support nested folder scenarios.
alex-z [Sun, 21 Apr 2024 19:21:32 +0000 (21:21 +0200)]
Also support nested folder scenarios.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years ago Bugfix. Folder invalid char conflict. Do not update parent folder record if it conta...
alex-z [Sun, 21 Apr 2024 18:06:28 +0000 (20:06 +0200)]
 Bugfix. Folder invalid char conflict. Do not update parent folder record if it contains conflicted subfolders.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBugfix. Folder case clash conflict. Do not update parent folder record if it contains...
alex-z [Thu, 18 Apr 2024 21:49:47 +0000 (23:49 +0200)]
Bugfix. Folder case clash conflict. Do not update parent folder record if it contains conflicted subfolers. Also fix crash with local rename.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoMerge pull request #6649 from nextcloud/backport/6648/stable-3.13
Claudio Cambra [Thu, 18 Apr 2024 05:15:05 +0000 (13:15 +0800)]
Merge pull request #6649 from nextcloud/backport/6648/stable-3.13

[stable-3.13] Fix possible issues with item metadata acquisition required for macOS VFS file sharing

2 years agoWrap access of itemUrl in security scoping
Claudio Cambra [Wed, 17 Apr 2024 20:55:14 +0000 (04:55 +0800)]
Wrap access of itemUrl in security scoping

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoExplicitly set bundle name and identifiers from env vars in FileProviderUIExt
Claudio Cambra [Wed, 17 Apr 2024 20:54:40 +0000 (04:54 +0800)]
Explicitly set bundle name and identifiers from env vars in FileProviderUIExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUnify FileProviderUIExt entitlements
Claudio Cambra [Wed, 17 Apr 2024 18:26:49 +0000 (02:26 +0800)]
Unify FileProviderUIExt entitlements

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure network error is shown in UI instead of generic error
Claudio Cambra [Wed, 17 Apr 2024 18:07:48 +0000 (02:07 +0800)]
Make sure network error is shown in UI instead of generic error

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoImprove logging across file provider sharing
Claudio Cambra [Wed, 17 Apr 2024 17:58:38 +0000 (01:58 +0800)]
Improve logging across file provider sharing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6645 from nextcloud/backport/6642/stable-3.13
Claudio Cambra [Wed, 17 Apr 2024 08:45:46 +0000 (16:45 +0800)]
Merge pull request #6645 from nextcloud/backport/6642/stable-3.13

[stable-3.13] Make use of NextcloudFileProviderKit in File Provider Module

2 years agoPin NextcloudFileProviderKit version to 0.9.0 (up to next major version)
Claudio Cambra [Wed, 17 Apr 2024 08:18:17 +0000 (16:18 +0800)]
Pin NextcloudFileProviderKit version to 0.9.0 (up to next major version)

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove now-unneeded Realm dependency from FileProviderExt
Claudio Cambra [Wed, 17 Apr 2024 08:17:42 +0000 (16:17 +0800)]
Remove now-unneeded Realm dependency from FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoSet changeobserver as delegate for nkcommon
Claudio Cambra [Tue, 16 Apr 2024 18:47:21 +0000 (02:47 +0800)]
Set changeobserver as delegate for nkcommon

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove client-side push notification handling for file provider extension in favour...
Claudio Cambra [Tue, 16 Apr 2024 18:06:30 +0000 (02:06 +0800)]
Remove client-side push notification handling for file provider extension in favour of simply using NCFPK remote change observer

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd change observer from NCFPK
Claudio Cambra [Tue, 16 Apr 2024 16:48:59 +0000 (00:48 +0800)]
Add change observer from NCFPK

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAlways signal enumerator after errors to try and recover from what the error might...
Claudio Cambra [Tue, 16 Apr 2024 13:27:47 +0000 (21:27 +0800)]
Always signal enumerator after errors to try and recover from what the error might have been

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoProvide NCFPK enumerator with extension domain
Claudio Cambra [Tue, 16 Apr 2024 13:27:27 +0000 (21:27 +0800)]
Provide NCFPK enumerator with extension domain

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoCorrectly set up NCKit instance with account string
Claudio Cambra [Tue, 16 Apr 2024 10:22:53 +0000 (18:22 +0800)]
Correctly set up NCKit instance with account string

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove unused components in FileProviderExt
Claudio Cambra [Mon, 15 Apr 2024 18:47:36 +0000 (02:47 +0800)]
Remove unused components in FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix passing of wrong item into item.modify
Claudio Cambra [Mon, 15 Apr 2024 18:42:50 +0000 (02:42 +0800)]
Fix passing of wrong item into item.modify

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoImprove logging in delete item procedure of FPExt
Claudio Cambra [Mon, 15 Apr 2024 17:54:37 +0000 (01:54 +0800)]
Improve logging in delete item procedure of FPExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse NCFPK item modify method
Claudio Cambra [Mon, 15 Apr 2024 17:54:20 +0000 (01:54 +0800)]
Use NCFPK item modify method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse NCFPK Item.create in createItem
Claudio Cambra [Mon, 15 Apr 2024 16:54:21 +0000 (00:54 +0800)]
Use NCFPK Item.create in createItem

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse fetchContents from NCFPK item
Claudio Cambra [Mon, 15 Apr 2024 15:51:40 +0000 (23:51 +0800)]
Use fetchContents from NCFPK item

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoSimplify FileProviderExtension's deleteItem method by leveraging Item's delete method
Claudio Cambra [Mon, 15 Apr 2024 14:42:53 +0000 (22:42 +0800)]
Simplify FileProviderExtension's deleteItem method by leveraging Item's delete method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoGreatly simplify item method of FIleProviderExtension by using item storedItem method
Claudio Cambra [Mon, 15 Apr 2024 14:41:22 +0000 (22:41 +0800)]
Greatly simplify item method of FIleProviderExtension by using item storedItem method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse new convenience method to get Item for root container from NCFPK
Claudio Cambra [Mon, 15 Apr 2024 11:40:53 +0000 (19:40 +0800)]
Use new convenience method to get Item for root container from NCFPK

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse thumbnail fetching procedure from NCFPK
Claudio Cambra [Mon, 15 Apr 2024 11:30:09 +0000 (19:30 +0800)]
Use thumbnail fetching procedure from NCFPK

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix build of ShareTableViewDataSource
Claudio Cambra [Mon, 15 Apr 2024 10:42:50 +0000 (18:42 +0800)]
Fix build of ShareTableViewDataSource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdapt to new NextcloudFileProviderKit item nomenclature
Claudio Cambra [Mon, 15 Apr 2024 10:33:08 +0000 (18:33 +0800)]
Adapt to new NextcloudFileProviderKit item nomenclature

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake use of NextcloudFileProviderKit materialisedenumerationobserver
Claudio Cambra [Mon, 15 Apr 2024 10:24:57 +0000 (18:24 +0800)]
Make use of NextcloudFileProviderKit materialisedenumerationobserver

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse FileProviderItem from NextcloudFileProviderKit
Claudio Cambra [Mon, 15 Apr 2024 10:21:31 +0000 (18:21 +0800)]
Use FileProviderItem from NextcloudFileProviderKit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse Enumerator in NextcloudFileProviderKit
Claudio Cambra [Mon, 15 Apr 2024 10:07:23 +0000 (18:07 +0800)]
Use Enumerator in NextcloudFileProviderKit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove use of all code now available in NextcloudFileProviderKit
Claudio Cambra [Mon, 15 Apr 2024 09:30:08 +0000 (17:30 +0800)]
Remove use of all code now available in NextcloudFileProviderKit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd NextcloudFileProviderKit dependency
Claudio Cambra [Mon, 15 Apr 2024 09:28:37 +0000 (17:28 +0800)]
Add NextcloudFileProviderKit dependency

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove FileProviderExtTests
Claudio Cambra [Mon, 15 Apr 2024 08:08:40 +0000 (16:08 +0800)]
Remove FileProviderExtTests

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAllow NextcloudFilesDatabaseManager to take a specific realmconfig in constructor
Claudio Cambra [Mon, 15 Apr 2024 07:44:10 +0000 (15:44 +0800)]
Allow NextcloudFilesDatabaseManager to take a specific realmconfig in constructor

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoDatabase manager does not need to be an NSObject
Claudio Cambra [Mon, 15 Apr 2024 07:36:13 +0000 (15:36 +0800)]
Database manager does not need to be an NSObject

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd test target for file provider testing
Claudio Cambra [Mon, 15 Apr 2024 07:28:34 +0000 (15:28 +0800)]
Add test target for file provider testing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6643 from nextcloud/backport/stable-3.13-fp-sharing
Claudio Cambra [Wed, 17 Apr 2024 08:43:39 +0000 (16:43 +0800)]
Merge pull request #6643 from nextcloud/backport/stable-3.13-fp-sharing

Backport/stable 3.13 fp sharing

2 years agoSet file provider extension target as a dependency of file provider ui extension...
Claudio Cambra [Wed, 17 Apr 2024 05:47:17 +0000 (13:47 +0800)]
Set file provider extension target as a dependency of file provider ui extension target in CMake

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAllow SuggestionsTextFieldKit to use up to next major version
Claudio Cambra [Mon, 15 Apr 2024 07:18:07 +0000 (15:18 +0800)]
Allow SuggestionsTextFieldKit to use up to next major version

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUpgrade NextcloudCapabilitiesKit version
Claudio Cambra [Mon, 8 Apr 2024 10:45:18 +0000 (18:45 +0800)]
Upgrade NextcloudCapabilitiesKit version

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd a "no shares" label if there are no shares available in share view
Claudio Cambra [Sat, 6 Apr 2024 17:09:13 +0000 (01:09 +0800)]
Add a "no shares" label if there are no shares available in share view

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUpdate description label in share view
Claudio Cambra [Sat, 6 Apr 2024 16:58:26 +0000 (00:58 +0800)]
Update description label in share view

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoDisplay shareWith in nkshare displaystring extension
Claudio Cambra [Sat, 6 Apr 2024 16:46:38 +0000 (00:46 +0800)]
Display shareWith in nkshare displaystring extension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPin NextcloudCapabilitiesKit version
Claudio Cambra [Sat, 6 Apr 2024 16:42:18 +0000 (00:42 +0800)]
Pin NextcloudCapabilitiesKit version

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPin NextcloudKit version
Claudio Cambra [Sat, 6 Apr 2024 14:30:27 +0000 (22:30 +0800)]
Pin NextcloudKit version

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoSet suggestionstextfieldkit to 1.0.0
Claudio Cambra [Sat, 6 Apr 2024 14:28:22 +0000 (22:28 +0800)]
Set suggestionstextfieldkit to 1.0.0

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoClean up TODO comments in file provider ui ext
Claudio Cambra [Sat, 6 Apr 2024 14:28:10 +0000 (22:28 +0800)]
Clean up TODO comments in file provider ui ext

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix SuggestionsTextFieldKit import
Claudio Cambra [Sat, 6 Apr 2024 14:14:52 +0000 (22:14 +0800)]
Fix SuggestionsTextFieldKit import

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoSimplify configuration of text field delegate
Claudio Cambra [Sat, 6 Apr 2024 14:11:29 +0000 (22:11 +0800)]
Simplify configuration of text field delegate

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix suggestion labels for sharees
Claudio Cambra [Sat, 6 Apr 2024 10:04:34 +0000 (18:04 +0800)]
Fix suggestion labels for sharees

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse suggestions window controller in share options view
Claudio Cambra [Wed, 3 Apr 2024 12:46:01 +0000 (20:46 +0800)]
Use suggestions window controller in share options view

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoImprove logging in ShareeSuggestionsDataSource
Claudio Cambra [Wed, 3 Apr 2024 12:41:08 +0000 (20:41 +0800)]
Improve logging in ShareeSuggestionsDataSource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPost suggestions changed notification in ShareeSuggestionsDataSource
Claudio Cambra [Wed, 3 Apr 2024 12:40:58 +0000 (20:40 +0800)]
Post suggestions changed notification in ShareeSuggestionsDataSource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUpdate suggestions on inputString change in sharee suggestions data source
Claudio Cambra [Tue, 2 Apr 2024 10:19:01 +0000 (18:19 +0800)]
Update suggestions on inputString change in sharee suggestions data source

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd converter method fro nksharee to suggestion
Claudio Cambra [Tue, 2 Apr 2024 10:18:42 +0000 (18:18 +0800)]
Add converter method fro nksharee to suggestion

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd sharee fetcher method to shareesuggestionsdatasource
Claudio Cambra [Tue, 2 Apr 2024 10:17:35 +0000 (18:17 +0800)]
Add sharee fetcher method to shareesuggestionsdatasource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd basic shareesuggestionsdatasource
Claudio Cambra [Tue, 2 Apr 2024 10:17:08 +0000 (18:17 +0800)]
Add basic shareesuggestionsdatasource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd SuggestionsTextFieldKit dependency
Claudio Cambra [Tue, 2 Apr 2024 10:16:31 +0000 (18:16 +0800)]
Add SuggestionsTextFieldKit dependency

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd package dependency NextcloudCapabilitiesKit to NextcloudIntegration
Claudio Cambra [Tue, 19 Mar 2024 18:26:35 +0000 (02:26 +0800)]
Add package dependency NextcloudCapabilitiesKit to NextcloudIntegration

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRetry getting information from FileProviderExt if doing so has failed (usually due...
Claudio Cambra [Tue, 19 Mar 2024 12:54:41 +0000 (20:54 +0800)]
Retry getting information from FileProviderExt if doing so has failed (usually due to opening share view before auth details are present)

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoDeduplicate error presentation in ShareTableViewDataSource
Claudio Cambra [Tue, 19 Mar 2024 12:19:16 +0000 (20:19 +0800)]
Deduplicate error presentation in ShareTableViewDataSource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix options view disappearing when clicking create button in share view controller
Claudio Cambra [Tue, 19 Mar 2024 12:08:14 +0000 (20:08 +0800)]
Fix options view disappearing when clicking create button in share view controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix letter used to identify shareability in sharetableviewdatasource
Claudio Cambra [Tue, 19 Mar 2024 11:38:56 +0000 (19:38 +0800)]
Fix letter used to identify shareability in sharetableviewdatasource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix scan path to retrieve item metadata in share table view data source
Claudio Cambra [Tue, 19 Mar 2024 11:38:41 +0000 (19:38 +0800)]
Fix scan path to retrieve item metadata in share table view data source

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoEnsure interpolated logging string in share table view data source is public
Claudio Cambra [Tue, 19 Mar 2024 11:05:54 +0000 (19:05 +0800)]
Ensure interpolated logging string in share table view data source is public

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoCheck if the given item is shareable before fetching shares
Claudio Cambra [Tue, 19 Mar 2024 10:57:52 +0000 (18:57 +0800)]
Check if the given item is shareable before fetching shares

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd method to ShareTableViewDataSource to fetch the given item's metadata
Claudio Cambra [Tue, 19 Mar 2024 10:57:28 +0000 (18:57 +0800)]
Add method to ShareTableViewDataSource to fetch the given item's metadata

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd more debug logging to sharecapabilities
Claudio Cambra [Mon, 18 Mar 2024 12:14:31 +0000 (20:14 +0800)]
Add more debug logging to sharecapabilities

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix default states around passwords for share options view
Claudio Cambra [Mon, 18 Mar 2024 12:14:22 +0000 (20:14 +0800)]
Fix default states around passwords for share options view

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix ShareCapabilities parsing
Claudio Cambra [Mon, 18 Mar 2024 11:58:30 +0000 (19:58 +0800)]
Fix ShareCapabilities parsing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix password capabilities for public link capabilities
Claudio Cambra [Mon, 18 Mar 2024 11:18:27 +0000 (19:18 +0800)]
Fix password capabilities for public link capabilities

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUpdate form layout according to picked type when picked type changed
Claudio Cambra [Mon, 18 Mar 2024 11:17:13 +0000 (19:17 +0800)]
Update form layout according to picked type when picked type changed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoSetup the fields in share options view when creating a new form according to capabilities
Claudio Cambra [Mon, 18 Mar 2024 11:16:29 +0000 (19:16 +0800)]
Setup the fields in share options view when creating a new form according to capabilities

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUpdate reset to make sure it also resets min and max dates in date picker, don't...
Claudio Cambra [Mon, 18 Mar 2024 11:15:10 +0000 (19:15 +0800)]
Update reset to make sure it also resets min and max dates in date picker, don't affect share type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoExtract conversion of picked menu item in share type picker into NKShare ShareType...
Claudio Cambra [Mon, 18 Mar 2024 10:52:39 +0000 (18:52 +0800)]
Extract conversion of picked menu item in share type picker into NKShare ShareType into new method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoDo not bother fetching shares if sharing is disabled on server
Claudio Cambra [Mon, 18 Mar 2024 10:06:56 +0000 (18:06 +0800)]
Do not bother fetching shares if sharing is disabled on server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFetch sharing capabilities in ShareTableViewDataSource
Claudio Cambra [Mon, 18 Mar 2024 10:06:26 +0000 (18:06 +0800)]
Fetch sharing capabilities in ShareTableViewDataSource

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAdd init for ShareCapabilities
Claudio Cambra [Mon, 18 Mar 2024 09:51:10 +0000 (17:51 +0800)]
Add init for ShareCapabilities

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>