Page MenuHomePhabricator

[native] Display loading indicator while role creation is in progress
ClosedPublic

Authored by rohan on Jul 6 2023, 9:40 AM.
Tags
None
Referenced Files
F2057318: D8431.id.diff
Thu, Jun 20, 3:06 PM
Unknown Object (File)
Thu, Jun 20, 12:49 PM
Unknown Object (File)
Thu, Jun 20, 5:21 AM
Unknown Object (File)
Wed, Jun 19, 9:12 AM
Unknown Object (File)
Fri, Jun 14, 2:35 PM
Unknown Object (File)
Thu, Jun 13, 10:03 PM
Unknown Object (File)
Wed, Jun 12, 3:26 PM
Unknown Object (File)
Fri, Jun 7, 9:59 PM
Subscribers

Details

Summary

As another part to improve the UX when creating a role, it'd be good to display a loading indicator if it's particularly slow on production when the 'Create' button is clicked. Specific error
handling will happen later in the stack.

Part of ENG-4178

Depends on D8430

Test Plan

Add a delay in the role creation after dispatch and verified the loading indicator appears

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan requested review of this revision.Jul 6 2023, 9:57 AM

Could you post a pic/video of the spinner in the test plan so that we can see what it looks like. Thanks

In D8431#250317, @ginsu wrote:

Could you post a pic/video of the spinner in the test plan so that we can see what it looks like. Thanks

Yeah sure

sweet thanks for sharing the video!

native/roles/create-roles-screen.react.js
141–151 ↗(On Diff #28491)

Nit I think using a ternary conditional here would be a bit cleaner but will defer to you

This revision is now accepted and ready to land.Jul 13 2023, 9:38 AM