Skip to content

Conversation

@SaintPatrck
Copy link
Contributor

🎟️ Tracking

PM-26112

📔 Objective

This commit introduces the ability to handle Credential Exchange export requests.

When a ProviderImportCredentialsRequest is received they will be navigated to the Export Items graph.

It includes the following changes:

  • Added SpecialCircumstance.CredentialExchangeExport to represent the app being launched for
    credential export.
  • Updated RootNavViewModel to navigate to a new RootNavState.CredentialExchangeExport when this
    special circumstance is detected.
  • Created a new exportItemsGraph for managing navigation related to exporting items, starting with
    a SelectAccountScreen (placeholder).
  • Modified MainViewModel to parse ProviderImportCredentialsRequest from the intent and set the
    appropriate special circumstance.
  • Added an intent filter in the debug AndroidManifest.xml to handle
    androidx.identitycredentials.action.IMPORT_CREDENTIALS.

📸 Screenshots

Coming soon!

⏰ 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 Sep 23, 2025

Logo
Checkmarx One – Scan Summary & Detailsa4ce1610-9cc0-4b6a-b320-4aa800724cd3

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

Base automatically changed from cxf/androidx/update-apis to main September 23, 2025 19:28
@SaintPatrck SaintPatrck force-pushed the cxf/app/export-special-circumstance branch from 9e7e191 to 96ea7b1 Compare September 23, 2025 19:47
@SaintPatrck SaintPatrck marked this pull request as ready for review September 23, 2025 20:09
<!-- Handle Credential Exchange transfer requests -->
<intent-filter
android:autoVerify="true"
tools:ignore="AppLinkUrlError">
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's up with this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not really sure. This is the first time I've seen both of these. I have an pending request for more details about them. According to the integration guide this is how the intent-filter must be declared. It's possible this will change when the API is stable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, that is pretty odd

<data
android:mimeType="application/octet-stream"
android:scheme="content"
tools:ignore="AppLinkUriRelativeFilterGroupError" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one too?

@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

❌ Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.25%. Comparing base (e965134) to head (11cacf9).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...en/ui/platform/feature/rootnav/RootNavViewModel.kt 50.00% 2 Missing and 1 partial ⚠️
...e/exportitems/selectaccount/SelectAccountScreen.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5928   +/-   ##
=======================================
  Coverage   84.25%   84.25%           
=======================================
  Files         712      713    +1     
  Lines       53669    53690   +21     
  Branches     7395     7401    +6     
=======================================
+ Hits        45217    45239   +22     
+ Misses       5857     5856    -1     
  Partials     2595     2595           

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

fun NavGraphBuilder.selectAccountDestination(
onAccountSelected: (id: String) -> Unit,
) {
composableWithPushTransitions<SelectAccountRoute> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This believe this should use composableWithRootPushTransitions since it is the root of the graph.

This commit introduces the ability to handle Credential Exchange export requests.

It includes the following changes:
- Added `SpecialCircumstance.CredentialExchangeExport` to represent the app being launched for credential export.
- Updated `RootNavViewModel` to navigate to a new `RootNavState.CredentialExchangeExport` when this special circumstance is detected.
- Created a new `exportItemsGraph` for managing navigation related to exporting items, starting with a `SelectAccountScreen` (placeholder).
- Modified `MainViewModel` to parse `ProviderImportCredentialsRequest` from the intent and set the appropriate special circumstance.
- Added an intent filter in the debug `AndroidManifest.xml` to handle `androidx.identitycredentials.action.IMPORT_CREDENTIALS`.
@SaintPatrck SaintPatrck force-pushed the cxf/app/export-special-circumstance branch from 96ea7b1 to 11cacf9 Compare September 23, 2025 20:51
fun SelectAccountScreen(
onAccountSelected: (id: String) -> Unit,
) {
// TODO: [PM-26095] Implement select account screen.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since there is no screen yet, should we block support for these deeplinks?

@SaintPatrck SaintPatrck added this pull request to the merge queue Sep 23, 2025
Merged via the queue into main with commit cc685b2 Sep 23, 2025
9 checks passed
@SaintPatrck SaintPatrck deleted the cxf/app/export-special-circumstance branch September 23, 2025 22:13
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