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

init "Frequently Used" reactions with defaults #2112

Closed
r10s opened this issue Mar 16, 2024 · 1 comment · Fixed by #2241
Closed

init "Frequently Used" reactions with defaults #2112

r10s opened this issue Mar 16, 2024 · 1 comment · Fixed by #2241
Assignees
Labels
enhancement actually in development, user visible enhancement good first issue

Comments

@r10s
Copy link
Member

r10s commented Mar 16, 2024

init MCEmojiPicker's "Frequently Used" reactions with our default reactions 👍 👎 ❤️ 😂 🙁 - that way, we can go for using preferredElementSize with fewer defaults without much drawbacks (for 😂 and 🙁 ppl more often want to chose sth different anyways)

moreover, this allows us an easy fallback for ios14 and below, see #2111

@r10s r10s added the enhancement actually in development, user visible enhancement label Mar 16, 2024
@r10s r10s mentioned this issue Mar 16, 2024
r10s added a commit that referenced this issue Apr 4, 2024
- add functions canReply() and canReplyPrivately()
  for consistency and to cleanup code

- if possible, show the reaction options in the first row;
  as this is limited to 4 options,
  we have now three default reactions plus "..." there.
  more default reactions will go to the reaction picker, see #2112;
  this closes #2113

- "buerocratic, dangerous" options go to "more".
  this makes the menu smaller and avoids scrolling
  as it happens even on larger screens.

- as a side-effect, iOS 12 menu is cleaned up as well
r10s added a commit that referenced this issue Apr 4, 2024
- add functions canReply() and canReplyPrivately()
  for consistency and to cleanup code

- if possible, show the reaction options in the first row;
  as this is limited to 4 options,
  we have now three default reactions plus "..." there.
  more default reactions will go to the reaction picker, see #2112;
  this closes #2113

- "buerocratic, dangerous" options go to "more".
  this makes the menu smaller and avoids scrolling
  as it happens even on larger screens.

- as a side-effect, iOS 12 menu is cleaned up as well
r10s added a commit that referenced this issue Apr 4, 2024
- add functions canReply() and canReplyPrivately()
  for consistency and to cleanup code

- if possible, show the reaction options in the first row;
  as this is limited to 4 options,
  we have now three default reactions plus "..." there.
  more default reactions will go to the reaction picker, see #2112;
  this closes #2113

- "buerocratic, dangerous" options go to "more".
  this makes the menu smaller and avoids scrolling
  as it happens even on larger screens.

- as a side-effect, iOS 12 menu is cleaned up as well
r10s added a commit that referenced this issue Apr 4, 2024
- add functions canReply() and canReplyPrivately()
  for consistency and to cleanup code

- if possible, show the reaction options in the first row;
  as this is limited to 4 options,
  we have now three default reactions plus "..." there.
  more default reactions will go to the reaction picker, see #2112;
  this closes #2113

- "buerocratic, dangerous" options go to "more".
  this makes the menu smaller and avoids scrolling
  as it happens even on larger screens.

- as a side-effect, iOS 12 menu is cleaned up as well
r10s added a commit that referenced this issue Apr 5, 2024
* cleanup and improve chat's context menu

- add functions canReply() and canReplyPrivately()
  for consistency and to cleanup code

- if possible, show the reaction options in the first row;
  as this is limited to 4 options,
  we have now three default reactions plus "..." there.
  more default reactions will go to the reaction picker, see #2112;
  this closes #2113

- "buerocratic, dangerous" options go to "more".
  this makes the menu smaller and avoids scrolling
  as it happens even on larger screens.

- as a side-effect, iOS 12 menu is cleaned up as well

* clearer function names

* use row-of-items only if there actually are reactions
zeitschlag added a commit to deltachat/MCEmojiPicker that referenced this issue Jul 19, 2024
zeitschlag added a commit to deltachat/MCEmojiPicker that referenced this issue Jul 19, 2024
zeitschlag added a commit that referenced this issue Jul 19, 2024
zeitschlag added a commit that referenced this issue Jul 19, 2024
@r10s
Copy link
Member Author

r10s commented Jul 19, 2024

that way, we can go for using preferredElementSize with fewer defaults without much drawbacks (for 😂 and 🙁 ppl more often want to chose sth different anyways)

ftr, this was already done in #2141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement actually in development, user visible enhancement good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants