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

add usability improvements to sticker selector UI #3293

Merged
merged 11 commits into from
Sep 1, 2023

Conversation

achou11
Copy link
Collaborator

@achou11 achou11 commented Jun 30, 2023

Closes #3258

Notes:

  • non-ideal state for when no sticker packs exist
  • makes each sticker pack title sticky when scrolling until the next pack is reached.
  • ability to tab through the stickers and select using Enter or Space
  • wasn't entirely sure about how to go about translations so did the best I could given the instructions in the development docs.
  • not entirely sure about styling for the button that opens the sticker folder. just used an existing button styling that I figured is used elsewhere

Preview:

  • Non-ideal state

    image
  • Populated state

    image
  • Interaction with populated state (first mouse, then keyboard):

    • Mouse:

      3258-sticker-selector-interaction-mouse

    • Keyboard (not sure why the GIF tool I used decided to make this grainy 😅 ):

      3258-sticker-selector-interaction-keyboard

src/renderer/components/composer/Composer.tsx Outdated Show resolved Hide resolved
)
})}
{stickerPackImages.map((filePath, index) => (
<button
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I add an aria-label for this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the filename? or what did you have in mind here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't have anything specific in mind, but yeah maybe something like "Send FILENAME" would work?

Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changelog still needs an entry about this, otherwise code looks good.

Works fine.

"Add some stickers bellow" does not tell how to do it, maybe we need a more detailed explanation (about add a folder, name is name of pack and content is image files)? @r10s what do you think translation wise?

Also stickers don't refresh when I change something with the folder until I close and reopen the whole emoji&sticker popup, but that minor issue is out of scope here.

)
})}
{stickerPackImages.map((filePath, index) => (
<button
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the filename? or what did you have in mind here?

@achou11
Copy link
Collaborator Author

achou11 commented Jul 1, 2023

"Add some stickers bellow" does not tell how to do it, maybe we need a more detailed explanation (about add a folder, name is name of pack and content is image files)?

yeah agreed. definitely one of the things I intended to update based on review :)

Also stickers don't refresh when I change something with the folder until I close and reopen the whole emoji&sticker popup, but that minor issue is out of scope here.

yeah i noticed that too and was tempted to figure out how that could work, but agree that it's out of scope for this (simplest thing would be to start polling when that panel is open I guess)

changelog still needs an entry about this

will update this after I address last remaining feedback 👍

"message": "No stickers yet"
},
"add_stickers_instructions": {
"message": "Add some using the button below."
Copy link
Member

@r10s r10s Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, how the button works, but i assume it just opens the folder?

i would then go for sth. like the following following message:

To add stickers, 
tap "Open Sticker Folder"
and drag image and sticker files to that folder.

to have less text, the error "No stickers yet" can also be removed, that seems obvious.

instead, the instructions can have a little larger font size

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed via 3ac757a

className='delta-button-round'
onClick={onOpenStickerFolder}
>
{tx('open_sticker_folder')}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this button is too bold if there is already content.

the look of a secondary button is totally sufficient here (otherwise it looks as if it needs to be clicked to proceed)

(secondary button = transparent background, border in button color, if at all)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed via 11443b4

lmk if you think the border should also be removed? currently just uses the existing style definition for the secondary button

@achou11
Copy link
Collaborator Author

achou11 commented Sep 1, 2023

After the some recent commits to address feedback:

  • Empty:
image
  • Non-empty:
image

@Simon-Laux
Copy link
Member

Simon-Laux commented Sep 1, 2023

To add stickers, 
tap "Open Sticker Folder"
and drag image and sticker files to that folder.

Are stickers that are just in the sticker folder recognised or do they need to be into a "sticker pack" folder?
Edit: just tested it, stickers outside of "packs" are not recognised yet.

If not we can either change that in core, adjust the text to say that, or create and open a default "sticker pack" folder.

@Simon-Laux Simon-Laux merged commit fd2944f into deltachat:master Sep 1, 2023
4 of 6 checks passed
@achou11 achou11 deleted the 3258/sticker-picker branch September 1, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve sticker selector UI
3 participants