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
F3386938: D11330.id38081.diff
Fri, Nov 29, 6:53 AM
F3386437: D11330.diff
Fri, Nov 29, 4:44 AM
Unknown Object (File)
Sun, Nov 10, 2:03 PM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 22 2024, 3:04 PM
Unknown Object (File)
Oct 22 2024, 3:04 PM
Unknown Object (File)
Oct 22 2024, 3:04 PM
Unknown Object (File)
Oct 22 2024, 3:04 PM
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
No Lint Coverage
Unit
No Test Coverage

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