Page MenuHomePhabricator

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

Authored by atul on Jun 21 2023, 2:09 PM.
Tags
None
Referenced Files
F2109111: D8280.id.diff
Tue, Jun 25, 3:18 PM
Unknown Object (File)
Mon, Jun 24, 7:58 AM
Unknown Object (File)
Sun, Jun 23, 4:22 AM
Unknown Object (File)
Fri, Jun 21, 11:39 PM
Unknown Object (File)
May 26 2024, 12:43 PM
Unknown Object (File)
May 19 2024, 12:10 AM
Unknown Object (File)
May 19 2024, 12:10 AM
Unknown Object (File)
May 19 2024, 12:10 AM
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