Skip to content

deeplink handling enhancement#2269

Merged
Tlaster merged 2 commits into
masterfrom
feature/deeplink-enhance
Jul 1, 2026
Merged

deeplink handling enhancement#2269
Tlaster merged 2 commits into
masterfrom
feature/deeplink-enhance

Conversation

@Tlaster

@Tlaster Tlaster commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

fix #2264

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa473472e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

host: String,
method: LinkOpenDefaultMethod,
) {
launch {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Save defaults outside the picker composition

When this helper is called from the deep-link account picker, the click handler calls setAccountDefault/setBrowserDefault and then immediately dismisses the sheet. Because this write is launched in the presenter's rememberCoroutineScope, dismissing the picker removes the presenter from composition and can cancel the scope before updateAppSettings finishes, so the “Always open this way” choice may not persist. Use a longer-lived scope or complete the save before dismissing.

Useful? React with 👍 / 👎.

url: String,
mapping: Map<UiAccount, List<PlatformDeepLink<*>>>,
): ImmutableMap<UiAccount, DeeplinkRoute> {
): ImmutableMap<UiAccount, Match> {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Unwrap matcher results for existing tests

Changing matches to return ImmutableMap<UiAccount, Match> means existing common tests that index matches[account] now compare a Match wrapper to the expected DeeplinkRoute (for example PlatformDeepLinkMatcherTest.matchesReturnsAccountProfileRoute), so CI common tests will fail despite the route still being present inside .route. Update the tests/callers to unwrap .route or keep a route-facing API.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 74ca1ab into master Jul 1, 2026
9 of 10 checks passed
@Tlaster Tlaster deleted the feature/deeplink-enhance branch July 1, 2026 17:31
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.

[Feature Request] Directly use the X account to open links when only one is configured

1 participant