Conversation
17a34e0 to
4124ac9
Compare
Codecov Report
@@ Coverage Diff @@
## master #4771 +/- ##
==========================================
- Coverage 56.80% 56.79% -0.01%
==========================================
Files 138 138
Lines 17142 17143 +1
==========================================
- Hits 9737 9736 -1
- Misses 7405 7407 +2
|
3082b1b to
f82487e
Compare
|
I have added 3 videos (2 for cases of error handling and one for successful opening of a local file). Could you provide your feedback from the design perspective? Note: Errors are displayed in both popup and a tray window, however, the tray window can only display an error if there is an account and a folder present, as the error gets bound to a specific local sync folder and it can't be displayed otherwise. |
|
Super nice work! :)
This looks good! Would it be possible to have 2 buttons: "Connect account" and "Cancel" instead of an "OK" button? Clicking "Connect account" can open the setup window and close the error dialogue. This would eliminate the step of navigating to the tray menu to set up your account.
Is it possible to force sync the file automatically like it is mentioned in the linked issue? Otherwise we could also have a "Sync now" button instead of "OK" which force syncs.
This is also super cool! One question: Can the file be opened in the foreground instead of the background? |
We've been discussing this part with @tobiasKaminsky. The issue also mentions that we can not sync something that's excluded via selective sync settings. The problem here is, that we don't have the functionality to sync just one file in the desktop client. So, let's say we want to sync a file
I also have noticed that we almost always open a popup that is not topmost and is blinking in the taskbar. I don't see any way to make it happen differently, as it is up to the OS to decide how it gets opened. |
This is okay for now.
MS Teams and other solutions show then a new page which explains that file/call/meeting is handled via Desktop app. |
Ah okay, understood. There would be an issue if the "Make sure it is synced" message keeps showing up even after the user has tried to force sync multiple times. In this case of excluded folder would it be possible to warn in the dialogue that the file they are trying to edit is not available locally? "Cannot open file locally as it is excluded from sync" or something like that (definitely need the help of @jancborchardt for the wording 🤔)
Great idea! |
We can surely refine the message in the popup and right now, the dialog is indeed shown when the file is not present locally because it is not synced yet or it is excluded. I am just unsure if we can detect that the file is just excluded or if it is going to be synced soon. When the syncing happens, we visit subfolders recursively. For example, if the file is in the nested subfolder Nevertheless, I'll see if I can match the file's path in a URL with the list of excluded folders, and try to display an exact message if the file's folder is present in the list of excluded folders.
This functionality is not supported by server-side AFAIK. We don't really exchange messages with the server. We either authenticate, sync files, fetch capabilities, receive notifications, and reply to chat mentions. But, we don't have full bi-directional communication such that the desktop client would let the server know which files are synced. |
Yep, this sounds perfect! The message can say something like "Cannot open file locally. Try syncing again and make sure the file is not in an excluded folder. [path to file] [Sync now button] [Show excluded folders button] [Cancel button]" @jancborchardt |
So, I was able to find a way to distinguish between non-existing file and the file that might have been excluded via selective sync. I have replaced the wrong file error handling video with 2 videos for these separate use cases. |
claucambra
left a comment
There was a problem hiding this comment.
Looks good, I will add the macOS integration
65c8243 to
60d2058
Compare
Works with latest commit :) |
bebc425 to
8556732
Compare
|
@alex please clean history before any merge |
Signed-off-by: alex-z <[email protected]>
6f504bd to
d42d3c0
Compare
|
AppImage file: Nextcloud-PR-4771-d42d3c057f0daacea92aed9fa97263bdc8b38841-x86_64.AppImage |
|
SonarCloud Quality Gate failed. |








This will fix #4297
This video demonstrates the error handling for the scenario of an incorrect account in a URL or no account added to the Nextcloud desktop app
local_editing_no_account_error.mp4
This video demonstrates the error handling for the scenario of a wrong file path (non-existing) file is attempted to get opened
local_file_editing_error_file_not_found.mp4
This video demonstrates the error handling for the scenario of a potentially existing, but excluded via selective sync file is attempted to get opened
local_file_editing_error_excluded_via_selective_sync.mp4
This video demonstrates a successful handling of a file that is present and is synced locally for the account in the URL and the file gets opened
local_editing_success.mp4