Skip to content

Conversation

@david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Oct 8, 2025

🎟️ Tracking

PM-26689

📔 Objective

This PR separates the ShareData logic from the IntentManager. This change allows the IntentManager to be UI only and we can pass a full Activity into it, this will be required for AuthTab functionality.

⏰ 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

val autofillSaveItem = intent.getAutofillSaveItemOrNull()
val autofillSelectionData = intent.getAutofillSelectionDataOrNull()
val shareData = intentManager.getShareDataFromIntent(intent)
val shareData = shareManager.getShareDataOrNull(intent = intent)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the only spot in the app that used the IntentManager that was not a composable.

/**
* Manages the retrieving data shared to this app.
*/
interface ShareManager {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I put this in the ui module but it could have gone directly into the app module. Any preference on where this end up living?

Copy link
Contributor

@SaintPatrck SaintPatrck Oct 8, 2025

Choose a reason for hiding this comment

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

I like it here in ui. Gives us more flexibility.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2025

Logo
Checkmarx One – Scan Summary & Details6ecb98dd-a431-4e87-b3f7-2969eca90f21

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

@david-livefront
Copy link
Collaborator Author

Thanks @SaintPatrck

@david-livefront david-livefront added this pull request to the merge queue Oct 8, 2025
@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 23.33333% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.56%. Comparing base (202dd65) to head (29d2acb).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...rden/ui/platform/manager/share/ShareManagerImpl.kt 0.00% 22 Missing ⚠️
...en/ui/platform/feature/rootnav/RootNavViewModel.kt 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5987      +/-   ##
==========================================
- Coverage   84.57%   84.56%   -0.02%     
==========================================
  Files         717      719       +2     
  Lines       54544    54632      +88     
  Branches     7511     7531      +20     
==========================================
+ Hits        46133    46197      +64     
- Misses       5781     5802      +21     
- Partials     2630     2633       +3     

☔ 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.

Merged via the queue into main with commit 10a92dd Oct 8, 2025
9 checks passed
@david-livefront david-livefront deleted the PM-26689-share-manager branch October 8, 2025 15:48
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