Skip to content

Conversation

@SaintPatrck
Copy link
Contributor

🎟️ Tracking

PM-26810

📔 Objective

This commit addresses a UI flicker issue where a loading dialog would briefly appear, or remain visible, when the vault data was being updated in the background during the item export flow.

The handleVaultDataPending function in ReviewExportViewModel was unnecessarily triggering a generic loading dialog. This function is called when vault data is updating (e.g., after a sync), which caused the dialog to flash on the screen or remain due to race-conditions.

The fix removes the call to showLoadingDialog from handleVaultDataPending. A more specific loading message, "Loading vault data...", has been added to the handleVaultDataLoading function to provide better user feedback when the initial data is being fetched. Additionally, a test case was updated to reflect that the loading dialog is not cleared during the pending state.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

Logo
Checkmarx One – Scan Summary & Details23e0515d-050e-4ab5-af92-21c4adb9143f

Great job! No new security vulnerabilities introduced in this pull request


private fun handleVaultDataLoading() {
showLoadingDialog()
Timber.d("handleVaultDataLoading called")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we drop the log?

This commit addresses a UI flicker issue where a loading dialog would briefly appear, or remain visible, when the vault data was being updated in the background during the item export flow.

The `handleVaultDataPending` function in `ReviewExportViewModel` was unnecessarily triggering a generic loading dialog. This function is called when vault data is updating (e.g., after a sync), which caused the dialog to flash on the screen or remain due to race-conditions.

The fix removes the call to `showLoadingDialog` from `handleVaultDataPending`. A more specific loading message, "Loading vault data...", has been added to the `handleVaultDataLoading` function to provide better user feedback when the initial data is being fetched. Additionally, a test case was updated to reflect that the loading dialog is no cleared during the pending state.
@SaintPatrck SaintPatrck force-pushed the PM-26810/infinite-loading-after-otp branch from b2e96ca to 0eafefc Compare October 22, 2025 19:58
@SaintPatrck SaintPatrck enabled auto-merge October 22, 2025 20:18
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.78%. Comparing base (92cfce1) to head (0eafefc).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
.../exportitems/reviewexport/ReviewExportViewModel.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6068      +/-   ##
==========================================
+ Coverage   84.23%   84.78%   +0.54%     
==========================================
  Files         829      720     -109     
  Lines       57359    55050    -2309     
  Branches     7699     7654      -45     
==========================================
- Hits        48319    46676    -1643     
+ Misses       6345     5694     -651     
+ Partials     2695     2680      -15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 22, 2025
Merged via the queue into main with commit c3496ca Oct 22, 2025
9 checks passed
@SaintPatrck SaintPatrck deleted the PM-26810/infinite-loading-after-otp branch October 22, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants