Page MenuHomePhabricator

[web] Add SIWE copy to `siweLoginForm`
ClosedPublic

Authored by atul on Jan 18 2023, 6:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 10:09 PM
Unknown Object (File)
Fri, Nov 1, 5:02 PM
Unknown Object (File)
Fri, Nov 1, 5:02 PM
Unknown Object (File)
Fri, Nov 1, 5:01 PM
Unknown Object (File)
Fri, Nov 1, 4:59 PM
Unknown Object (File)
Fri, Nov 1, 4:40 PM
Unknown Object (File)
Sun, Oct 27, 9:20 AM
Unknown Object (File)
Oct 13 2024, 8:21 PM
Subscribers
None

Details

Summary

Same copy we use on landing. Includes some styling tweaks to ensure that things look reasonable.

Test Plan

Here's what it looks like:

c4ddc0-1.png (1×1 px, 195 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jan 18 2023, 6:26 PM
atul edited the test plan for this revision. (Show Details)
ashoat added inline comments.
web/account/siwe.react.js
110–111 ↗(On Diff #21057)

Can we avoid copy-paste? Maybe this could be in lib as an array with two strings. React should automatically convert the apostrophe character to ' I think

This revision is now accepted and ready to land.Jan 18 2023, 6:36 PM
web/account/siwe.react.js
110–111 ↗(On Diff #21057)

Sure, can move to lib... wanted to avoid indirection but isn't great that we're copy/pasting either

pull out siweMessageSigningExplanationStatements

lib/utils/siwe-utils.js
76 ↗(On Diff #21067)

Can you use an apostrophe instead of a single quote?

This revision was automatically updated to reflect the committed changes.
lib/utils/siwe-utils.js
76 ↗(On Diff #21067)

Ah I think you missed this comment

lib/utils/siwe-utils.js
76 ↗(On Diff #21067)

Ah crap, I'll update in a followup diff.