HomePhabricator
Diffusion Comm dbfb73e88803

[web] Add "file" `input` to `imageMenuItem` in `EditUserAvatarMenu`

Description

[web] Add "file" input to imageMenuItem in EditUserAvatarMenu

Summary:
We add hidden input to EditUserAvatarMenu, and have browser file selection dialog appear when imageMenuItem is clicked.

For now we just log the selected file.

Initially we'll kick off image upload/avatar update as soon as an image is selected, but it will probably make sense to introduce some sort of ImageSelectionModal once the most basic flow is complete.


Depends on D8313

Test Plan: Logs selected file info as expected:

Reviewers: ashoat, ginsu, rohan

Reviewed By: ginsu

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D8315

Details

Provenance
atulAuthored on Jun 27 2023, 7:37 AM
Reviewer
ginsu
Differential Revision
D8315: [web] Add "file" `input` to `imageMenuItem` in `EditUserAvatarMenu`
Parents
rCOMM30f18a849fb5: [web] Introduce `large` variant of `ColorSelector`
Branches
Unknown
Tags
Unknown