Page MenuHomePhabricator

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

Authored by atul on Jun 21 2023, 2:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 3:09 AM
Unknown Object (File)
Sat, Sep 14, 12:30 PM
Unknown Object (File)
Sat, Sep 14, 12:30 PM
Unknown Object (File)
Sat, Sep 14, 12:30 PM
Unknown Object (File)
Sat, Sep 14, 12:29 PM
Unknown Object (File)
Sat, Sep 14, 12:18 PM
Unknown Object (File)
Wed, Sep 4, 2:25 PM
Unknown Object (File)
Aug 28 2024, 7:00 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
No Lint Coverage
Unit
No Test Coverage

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