Skip to content

feat(WPB-23950): handle account deep links in-app#20842

Open
JacquelineLehner wants to merge 5 commits intodevfrom
WPB-23950-deep-link-handling
Open

feat(WPB-23950): handle account deep links in-app#20842
JacquelineLehner wants to merge 5 commits intodevfrom
WPB-23950-deep-link-handling

Conversation

@JacquelineLehner
Copy link
Copy Markdown
Collaborator

@JacquelineLehner JacquelineLehner commented Mar 24, 2026

TaskWPB-23950 [Web] Improve Deep Link Handling to Avoid Forced Logout

Summary

  • add in-app handling for supported Wire account deep links clicked in conversation messages
  • makes profile and conversation-join links reuse the current authenticated session instead of opening in a new browser tab

Security Checklist (required)

  • External inputs are validated & sanitized on client and/or server where applicable.
  • API responses are validated; unexpected shapes are handled safely (fallbacks or errors).
  • No unsafe HTML is rendered; if unavoidable, sanitization is applied and documented where it happens.
  • Injection risks (XSS/SQL/command) are prevented via safe APIs and/or escaping.

Accessibility (required)

Standards Acknowledgement (required)


@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 24, 2026

🔗 Download Full Report Artifact

🧪 Playwright Test Summary

  • Passed: 14
  • Failed: 0
  • Skipped: 0
  • 🔁 Flaky: 0
  • 📊 Total: 14
  • Total Runtime: 989.9s (~ 16 min 30 sec)

@JacquelineLehner JacquelineLehner force-pushed the WPB-23950-deep-link-handling branch 2 times, most recently from 8de0f83 to 3277e44 Compare March 27, 2026 10:16
@JacquelineLehner JacquelineLehner marked this pull request as ready for review March 27, 2026 10:27
zhannach
zhannach previously approved these changes Mar 27, 2026
Intercept Wire account deep links from chat messages and resolve them in-app instead of opening them as external links in a new tab.

- add parseAccountDeepLink.ts helper for deep link detection
- support user-profile and conversation-join deep links
- parse qualified user ids from profile links
- reuse current session by opening supported links in-app
- keep external link modal flow for unsupported links
Add tests for parseAccountDeepLink covering user-profile and conversation-join links, explicit domain handling, unsupported origins, and missing parameters.
…licitly

Move async profile deep link handling into a dedicated helper to remove the inline IIFE in Conversation.tsx. Also handle UserError.TYPE.USER_NOT_FOUND explicitly by logging it instead of swallowing the error.
@sonarqubecloud
Copy link
Copy Markdown

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.

4 participants