Page MenuHomePhabricator

[native] introduce temp onPressDisconnectKeyserver callback
ClosedPublic

Authored by ginsu on Nov 10 2023, 11:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 12:15 AM
Unknown Object (File)
Mon, Oct 28, 12:15 AM
Unknown Object (File)
Mon, Oct 28, 12:15 AM
Unknown Object (File)
Mon, Oct 28, 12:15 AM
Unknown Object (File)
Mon, Oct 28, 12:13 AM
Unknown Object (File)
Oct 10 2024, 4:27 PM
Unknown Object (File)
Sep 28 2024, 3:19 AM
Unknown Object (File)
Sep 7 2024, 7:03 AM
Subscribers

Details

Summary

As of Nov 2023, disconnecting from a keyserver is outside the scope of the keyserver selection screen. However, we currently have the UI for this already implemented so as a temporary solution this diff has the onPressDisconnectKeyserver callback display an alert to the user, informing them that this feature is not quite ready yet

Depends on D9826

Test Plan

Please see demo video below

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: inka, michal, rohan.
ginsu added inline comments.
native/profile/keyserver-selection-bottom-sheet.react.js
85–86

This comment is intentional to signal to devs that this is just a temporary solution

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 10 2023, 12:29 PM
Harbormaster failed remote builds in B24006: Diff 33080!

Is the plan to make this keyserver selection screen available to everyone before disconnecting from keyservers is possible?

This revision is now accepted and ready to land.Nov 12 2023, 9:07 AM

I'm not a native so I might be wrong, but this copy sounds odd to me. Wouldn't "Disconnecting from a keyserver is not ready yet" be more correct? Or "It is not yet possible to disconnect form a keyserver"?
This has to do with copy, so according to this notion dock @ashoat has to be added to review

This revision now requires review to proceed.Nov 13 2023, 11:53 PM

Thanks @inka! In general I agree, but I think this copy won't be surfaced to users (right @ginsu?) so it's probably not that important. Correct me if I'm wrong though!

This revision is now accepted and ready to land.Nov 14 2023, 6:27 AM

this copy won't be surfaced to users

This entire interface is gated behind the useStaffCanSee so users won't be able to see this, but staff members/devs will

hook https://github.com/CommE2E/comm/blob/master/native/utils/staff-utils.js