Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui) Assistant Avatar #488

Closed
gregclark-defenseunicorns opened this issue May 8, 2024 · 0 comments · Fixed by #494
Closed

feat(ui) Assistant Avatar #488

gregclark-defenseunicorns opened this issue May 8, 2024 · 0 comments · Fixed by #494
Assignees
Labels
enhancement New feature or request

Comments

@gregclark-defenseunicorns
Copy link
Contributor

User Story

As a LFAI user
I want manage my assistant's avatar
So that I can have control over the assistants I use

Acceptance Criteria

Given the assistant has a file uploaded for the avatar image
When the "Avatar Image" Modal opens
Then the "Upload" radio button is selected
And I see the profile circle displaying the uploaded file
And I see 2 tertiary Buttons reading "Change" with an edit icon and "Remove" with a trash icon
And 2 Buttons reading "Cancel" and "Save"

When I click on the "Change" Button
Then the file explorer window is opened
And only .jpg and .png files are selectable
And When I select and upload an image (.jpg or .png)
Then the file explorer window closes
And the profile circle is updated
And displays the new image

When I click the remove Button
Then the image is deleted
And the File Uploader displays the empty state
And I see the label text "Upload image"
And I see the description "Supported file types are .jpg and .png."
And I see a tertiary Button reading "Upload from computer" with the Upload icon

When I click the "Upload from computer" Button
Then the file explorer window is opened
And only .jpg and .png files are selectable
And When I select and upload an image (.jpg or .png)
Then the file explorer window closes
And the profile circle is updated
And displays the new image

When I click the "Cancel" Button
Then all changes are deleted
And the Modal closes

When I click the "Save" Button and NO image is uploaded
Then the Modal closes
And the avatar reverts back to the default pictogram of "User"

When I click the "Save" Button and an image is uploaded
Then the Modal closes
And the avatar image is updated


Given the assistant has a Pictogram as its avatar
When the "Avatar Image" Modal opens
Then the "Pictogram" radio button is selected
And I see a Search input
And I see a grid of all the Carbon Pictograms (see library below)
And I see the respective Pictogram selected for my assistant (auto scroll to selected pictogram)
And 2 Button reading "Cancel" and "Save"

When I type into the Search input
Then the Pictograms that have the inputted text in their name display
And all other Pictograms disappear

When I click the "Cancel" Button
Then all changes are deleted
And the Modal closes

When I click the "Save" Button
Then the Modal closes
And the avatar image is updated

Additional context

Pictograms Library

Design Links

@gregclark-defenseunicorns gregclark-defenseunicorns added the enhancement New feature or request label May 8, 2024
@gregclark-defenseunicorns gregclark-defenseunicorns added this to the v0.7.0 milestone May 8, 2024
@gregclark-defenseunicorns gregclark-defenseunicorns changed the title feat(ui) Assistants Avatar feat(ui) Assistant Avatar May 8, 2024
@YrrepNoj YrrepNoj modified the milestones: v0.7.0, v0.8.0 May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants