Page MenuHomePhabricator

[web] Display `errorMessage` in `saveAvatarButton` on failure
ClosedPublic

Authored by atul on Jun 21 2023, 2:09 PM.
Tags
None
Referenced Files
F3409088: D8280.id28091.diff
Wed, Dec 4, 2:55 PM
F3409079: D8280.id27978.diff
Wed, Dec 4, 2:53 PM
F3409034: D8280.id28078.diff
Wed, Dec 4, 2:47 PM
F3407527: D8280.diff
Wed, Dec 4, 6:31 AM
Unknown Object (File)
Thu, Nov 21, 4:10 PM
Unknown Object (File)
Sat, Nov 9, 11:23 PM
Unknown Object (File)
Sat, Nov 9, 6:18 PM
Unknown Object (File)
Sat, Nov 9, 4:42 PM
Subscribers

Details

Summary

Style button and show error message if save emoji avatar request fails.


Depends on D8279

Test Plan

Looks as expected:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/avatars/web-edit-user-avatar-provider.react.js
7 ↗(On Diff #27978)

Going to leave this unimplemented. In future diff I'll make displayAvatarUpdateFailureAlert prop optional. It makes sense to show an Alert on native where that's the pattern, but doesn't make sense on web.

atul requested review of this revision.Jun 21 2023, 2:29 PM

I don't think your screenshot attached in the test plan but the code seems good

This revision is now accepted and ready to land.Jun 22 2023, 6:20 AM