Claudio Cambra
|
8039fcd951
|
Add init for ShareCapabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
3ffcd6de42
|
Add init for public link capabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
1e811fead5
|
Add initialiser from dictionary for EmailCapabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
15651f6a0c
|
Restructure ShareCapabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
2d0cdb3716
|
Add ShareCapabilities struct
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
b23706633e
|
Adapt visibility of note recipient text field upon toggling checkbox
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
f1adfcf8b7
|
Adapt visibility of expiration date field upon toggling checkbox
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
4be8bace48
|
Adapt visibility of password field upon toggling password checkbox
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
d12cdebf48
|
Reset newly added fields in ShareOptionsView correctly
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
d0195e67c3
|
Properly handle failure state when creating new share in share options view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
31a9db9e25
|
Correctly treat share recipient text field in the share options view flow
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
c5d57cde1f
|
Add a text field for relevant shareWith in ShareOptionsView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
54f3822b3c
|
Have specific cancel behaviour in shareoptionsview on delete if in create mode
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
83ed6ea35f
|
Change deleteButton to a cancel button when in creation mode
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
a7637257d5
|
Adjust share options view title depending on create mode
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
70cb2bd4c1
|
Make share options view capable of creating or updating view upon clicking "save" depending on create status
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
4029458eff
|
Connect different share type popup button menu items to outlets in share options view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
131973b935
|
Make create button in share view controller show options view and toggle create mode
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e1997bd1fd
|
Add "createMode" toggle to share options view, start building for use to create new shares
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
0ceb6a9481
|
Add additional options to share controller creation method
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
000fe02bb0
|
Nilify itemServerRelativePath upon loading item in table view data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
8d3b101569
|
Make item's server relative path public in sharetableviewdatasource
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e25bebcd69
|
Add static method to create shares in ShareController
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
3a58fbeef6
|
Add a popupbutton to share options vie to select type of share
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
15f03d6417
|
Add button to create new share in share view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
2085a1214e
|
Remove unused outlets in tableitemview
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
ff305ec9fc
|
Implement deletion functionality for share options view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
a4551b25c6
|
Improve design of save and delete buttons in share view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
8b285a7ea9
|
Add deletion capability to sharecontroller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e52d6dfb23
|
Properly handle permissions in shareoptionsview
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
49450d52f6
|
Add convenience property to nkshare extension to see if sharees can edit share file/folder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
41f229c7c3
|
Add PermissionValues to NKShare extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
7e3769cc45
|
Blend in-window contents in share view loading overlay
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
4aaaf5b15b
|
Show error in share table view data source if received one in fetch
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
69dfe596e2
|
Present error for updating share in file provider UI
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
f1d3798396
|
Add method to dismiss error in share view controller via dismiss button
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
24ce9a1e1e
|
Add method to show error in data source ui delegate
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
9d6db4fa45
|
Add views to present an error in the share view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
30b4509457
|
Deselect table view or shares after reload to reset UI
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
a7de8edd16
|
Fix crash on reloading share table view data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
5702b163c8
|
Implement more logging in sharecontroller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
249dd02e75
|
Reload data source on share saving
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
f1363040fa
|
Use a sharecontroller in shareviewcontroller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
08917a9559
|
Make save button functional in share view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e2b62e492f
|
Add fields as parameters to save in sharecontroller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
3ef88137ad
|
Correctly handle NKShare's "canEdit" in share options view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
19316f4d3a
|
Add convenience function to enable or disable all share option fields
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
422a6c7962
|
Respond to changes in share of sharecontroller in shareoptionsview
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
755897be55
|
Add convenience function to format date to valid server string in nkshare
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
f654a8ca83
|
Use ShareController in ShareOptionsView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
29262345cd
|
Add functionality to share controller to save changes
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
318661748d
|
Add convenience property to nkshare extension to get valid expiration date string
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
aa57ba10f3
|
Add starter sharecontroller for fileprovider
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
5e0d990308
|
Handle optionsview as ShareOptionsView in share view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
ec145d8ca2
|
Handle state of share options view via setting of NKShare
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
52dbfc3109
|
Improve placeholder text for share view password field
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
322ae529b7
|
Add a ShareOptionsView class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
7a40f6f728
|
Ensure calls are made via main actor to delegate in share table view data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
26d635b6fa
|
Tell delegate when fetch ongoing in share table view data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e113a09ecf
|
Add fetch related handling functions to ui delegate
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
55cdbe860b
|
Add a loading overlay to table view to indicate fetch in progress
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
13fa2bca1d
|
Implement hide and show of share options in share view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
c74575cd32
|
Re-integrate share options view into main share view controller XIB
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
8956fcebe9
|
Implement ui delegate in ShareTableViewDataSource
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
9b1ad4d6d5
|
Treat bottom view in share view as a target view to inject other views
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
d23f30ae4e
|
Add a shareview ui delegate protocol for datasources
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
1b64e29050
|
Extract options view to different XIB
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
70a565d60d
|
Redesign shares to incorporate share options into main share view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
d3d75e85f6
|
Add starter ShareOptionsWindow class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
ecf4efd481
|
Replace ShareOptionsView with a ShareOptionsWindow
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
cad56f1e2a
|
Implement ShareOptionsView design
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
da8ae80544
|
Add starter ShareOptionsView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
18862bed35
|
Add popover and corresponding view controller to sharetableitemview
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
30673976be
|
Temporarily change copy share link button image after clicking
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
540eb11bf2
|
Implement share link copying in share table item view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
4f0e25a4e6
|
Improve share table style
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
18de0d0b3f
|
Make share property central to display update of share table item view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
46e2ca5887
|
Add displayString property to NKShare extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
41f93371a2
|
Add typeImage property to NKShare extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
930106e7ac
|
Add ShareType enum to NKShare extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
4ba2bc8a3b
|
Add starter NKShare extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
dda5ec295e
|
Customise prepareForReuse in ShareTableItemView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
b6c247ba8d
|
Ensure usable rowHeight for shares table view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
ee21715860
|
Set basic property of sharetableitemview in delegate method of data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
c2ec72c132
|
Add corresponding class for ShareTableItemView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
731a5e1f8f
|
Set delegate for shares table view
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
f11807815a
|
Remove default item view in ShareViewController table XIB
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
ff9e344810
|
Move all share fetching logic to FileProviderUIExt
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
331a76195b
|
Register shareItemView nib in shareTableView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
8add57a048
|
Implement NSTableViewDelegate viewFor method in sharetableviewdatasource
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
765f33b45c
|
Add essential table view data source method to ShareTableViewDataSource
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
d53680e583
|
Add release entitlements fro FileProviderUIExt
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
145d92e5cb
|
Add method to get an item's server path through FPUIExtensionService
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
e6f20e9498
|
Remove logging from NextcloudAccount
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
81dc8ce708
|
Add method to FPUIExtensionServiceSource to get extension account details
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
a6992cf38b
|
Add NextcloudAccount to FileProviderUIExt
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
259a28e33e
|
Add method to convert dictionary to NextcloudAccount
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
02b5a31eae
|
Add method to export NextcloudAccount details to dictionary
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
adb4028a6b
|
Fix linking of FileProviderUIExt which was missing NextcloudKit symbols
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|
Claudio Cambra
|
5b1b87b788
|
Add FPUIExtensionServiceSource to services published by FileProviderExt
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
|
2024-04-17 16:11:50 +08:00 |
|