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, Dec 16, 8:52 AM
Unknown Object (File)
Sat, Dec 14, 5:41 AM
Unknown Object (File)
Mon, Dec 9, 10:34 PM
Unknown Object (File)
Sat, Nov 30, 1:52 AM
Unknown Object (File)
Mon, Nov 25, 9:16 PM
Unknown Object (File)
Nov 15 2024, 1:31 AM
Unknown Object (File)
Nov 15 2024, 1:16 AM
Unknown Object (File)
Oct 28 2024, 12:15 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 ↗(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