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
Unknown Object (File)
Sat, Nov 23, 12:48 PM
Unknown Object (File)
Sat, Nov 23, 8:50 AM
Unknown Object (File)
Sat, Nov 23, 7:15 AM
Unknown Object (File)
Thu, Nov 7, 9:56 PM
Unknown Object (File)
Thu, Nov 7, 9:56 PM
Unknown Object (File)
Thu, Nov 7, 9:56 PM
Unknown Object (File)
Thu, Nov 7, 9:56 PM
Unknown Object (File)
Thu, Nov 7, 9:56 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
No Lint Coverage
Unit
No Test Coverage

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

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