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)
Tue, May 7, 8:29 AM
Unknown Object (File)
Mon, Apr 29, 9:31 AM
Unknown Object (File)
Apr 15 2024, 12:09 AM
Unknown Object (File)
Apr 12 2024, 6:01 PM
Unknown Object (File)
Apr 10 2024, 12:24 PM
Unknown Object (File)
Apr 6 2024, 10:01 AM
Unknown Object (File)
Apr 5 2024, 10:46 AM
Unknown Object (File)
Apr 5 2024, 3:41 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #33080)

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