Page MenuHomePhabricator

[lib][native] Extract QR code to a spearate component
ClosedPublic

Authored by bartek on Mar 14 2024, 10:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 8:38 AM
Unknown Object (File)
Thu, Apr 25, 8:37 AM
Unknown Object (File)
Thu, Apr 25, 7:23 AM
Unknown Object (File)
Apr 6 2024, 4:25 PM
Unknown Object (File)
Apr 3 2024, 2:28 AM
Unknown Object (File)
Apr 3 2024, 2:28 AM
Unknown Object (File)
Apr 3 2024, 2:28 AM
Unknown Object (File)
Mar 25 2024, 3:25 AM
Subscribers

Details

Summary

To avoid code duplication between web and native, extracted most of the secondary device auth logic into a separate React component.

Depends on D11301

Test Plan

Flow, repeated test plan from parent diffs in this stack (basically repeated the QR auth flow).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Mar 18 2024, 12:33 AM
kamil added inline comments.
lib/components/qr-auth-handler.react.js
22–25 ↗(On Diff #38129)

should be read-only

55–63 ↗(On Diff #38129)

is there a need for it or could you just add void sendMessage(.....

131 ↗(On Diff #38129)

nit

This revision is now accepted and ready to land.Mar 18 2024, 8:11 AM
lib/components/qr-auth-handler.react.js
55–63 ↗(On Diff #38129)

Technically I could, but in the next diff, I'm replacing createQRAuthTunnelbrokerMessage() with an async function which needs to be awaited too