Skip to content

feat: show loading spinner during oCIS share create/edit/remove operations - #5050

Merged
joragua merged 3 commits into
masterfrom
feature/spinner_sharing_operations
Nov 17, 2026
Merged

joragua merged 3 commits into
masterfrom
feature/spinner_sharing_operations

Conversation

@joragua

@joragua joragua commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Related Issues

App: #5028

Shows a loading spinner while creating, editing or removing shares, public links and space members on oCIS.

Edit link is different: it chains two requests and pops the form in between, so the spinner opens on the button click and is dismissed by whichever screen is alive at the end.

🤖 Generated with Claude Code

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

#5050 (comment)

Reports:

@joragua joragua self-assigned this Nov 12, 2026
@joragua joragua linked an issue Nov 12, 2026 that may be closed by this pull request
9 tasks done
@joragua
joragua force-pushed the feature/spinner_sharing_operations branch 3 times, most recently from 709954b to 9014544 Compare November 16, 2026 08:48
@joragua
joragua marked this pull request as ready for review November 16, 2026 08:55
@joragua
joragua requested a review from a team as a code owner November 16, 2026 08:55
jesmrec
jesmrec previously approved these changes Nov 16, 2026

@jesmrec jesmrec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, moving to QA 🚀

@jesmrec

jesmrec commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

QA checks:

Checking the Loading dialog after submitting the following operations in an oCIS server.

  • Sharing with people

    • Add share
    • Edit share
    • Remove share
  • Public links

    • Add link
    • Edit link
    • Remove link
  • Invite member to space

    • Add member
    • Edit member
    • Remove member
  • Public links over spaces

    • Add link
    • Edit link
    • Remove link
# File Line Description Loading state Priority Outcome
1 MainFileListFragment 919 Open a local file not available offline common_loading High ✅
2 ManageAccountsDialogFragment 214 Remove an account (local storage cleanup) common_loading High ✅
3 ManageAccountsDialogFragment 186 Tap another account in the account manager common_loading Medium ✅
4 ManageAccountsDialogFragment 234 Switch account when quotas are refreshed common_loading Medium ✅
5 FileDisplayActivity 1019 Delete a file or folder wait_a_moment Low ✅
6 FileDisplayActivity 1070 Move a file or folder wait_a_moment Low ✅
7 FileDisplayActivity 1121 Copy a file or folder wait_a_moment Low ✅
8 FileDisplayActivity 1360 Rename a file or folder wait_a_moment Low ✅
9 FileDisplayActivity 2008 Open a deep link deep_link_loading Low ✅
10 PreviewImageActivity 160 Delete a file from the image preview wait_a_moment Low ✅
11 PreviewVideoActivity 199 Delete a file from the video preview wait_a_moment Low ✅
12 ShareActivity 271 Legacy (account without spaces): create share with user/group common_loading Low ✅
13 ShareActivity 315 Legacy: edit share with user/group common_loading Low ✅
15 FileOperationsHelper 226 Revalidate expired credentials for an account wait_checking_credentials Low ✅
16 UriUploader 136 Share external files (temporary copy) wait_for_tmp_copy_from_private_storage Low ✅

Tested with:

  • Xiaomi Redmi 13, Android 15
  • Samsung Galaxy A8, Android 14

@jesmrec

jesmrec commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

(1) [FIXED]

The remove operation does not load the Loading dialog whereas the create and edit does. In the following video, a create and then, a remove:

Screen_recording_20261116_125552.mp4

Xiaomi Redmi 13, Android 15
90145443af

@joragua

joragua commented Nov 16, 2026 •

Copy link
Copy Markdown
Member Author

(1) should be fixed in the commit 0883124

Note on the line removed from BaseActivity.showLoadingDialog: it must not dismiss the current dialog before the tag lookup. dismiss() is async, so the lookup still resolved, the guard skipped creating a new dialog, and the pending dismiss removed the one already on screen — no spinner at all. The tag check alone already grants a single dialog.

@joragua
joragua requested a review from jesmrec November 16, 2026 13:36
@jesmrec

jesmrec commented Nov 17, 2026

Copy link
Copy Markdown
Member

(1) fixed

@jesmrec

jesmrec commented Nov 17, 2026

Copy link
Copy Markdown
Member

Approved

@joragua
joragua force-pushed the feature/spinner_sharing_operations branch from 0883124 to b3cca34 Compare November 17, 2026 12:24
@joragua
joragua merged commit 4bc2299 into master Nov 17, 2026
@joragua
joragua deleted the feature/spinner_sharing_operations branch November 17, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Spinner in create/edit/delete operations

2 participants