Page MenuHomePhabricator

[web] add keyserver url validation logic and error handling to the add keyserver modal
ClosedPublic

Authored by ginsu on Dec 4 2023, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 10:01 AM
Unknown Object (File)
Wed, Oct 30, 11:24 PM
Unknown Object (File)
Oct 2 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 1:08 AM
Unknown Object (File)
Sep 26 2024, 6:33 PM
Subscribers

Details

Summary

This diff adds keyserver url validation logic to the onClickAddKeyserver callback in the add keyserver modal. We also now display an error message if for any reason the keyserver url inputed by the user is not valid

Linear task: https://linear.app/comm/issue/ENG-4726/dispatch-add-keyserver-redux-action-when-onpress-save-button-is

Depends on D10094

Test Plan

Please see the 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.
web/redux/action-types.js
53–55 ↗(On Diff #34184)

As per @inka's message to the Comm Dev team a few days ago about using ashoatKeyserverID, here is a linear task to eventually revert this check when we have more extensive checks to add a keyserver to the keyserver store

https://linear.app/comm/issue/ENG-6008/revert-ashoatkeyserverid-check-in-getinitialreduxstate

ginsu requested review of this revision.Dec 4 2023, 7:26 AM
inka added inline comments.
web/redux/action-types.js
53–55 ↗(On Diff #34184)

Thank you!!!

This revision is now accepted and ready to land.Dec 4 2023, 7:32 AM
This revision was landed with ongoing or failed builds.Dec 4 2023, 11:02 PM
This revision was automatically updated to reflect the committed changes.