Expression picker: persisted size, grid keyboard navigation, collapsible sections, tab switch while open #414

Open
opened 2026-11-13 04:22:40 +00:00 by charles · 0 comments
Owner

Deferred from Text chat 27 (#277), the expression picker. What the first version leaves out of the original (feat/expressions/components/popouts/ExpressionPickerPopout.tsx, feat/channel/components/EmojiPicker.tsx):

  • Size across restarts. The picker keeps its resized size for the session only (view state in Local::expressions). The original persists it (AppStorageKey.UI_EXPRESSION_PICKER_SIZE). Needs a field in the local settings of fluxer-core and in the platform's settings file, which Text chat 27 (a fluxer-ui task) does not touch.
  • Keyboard navigation of the grids (usePickerGridKeyboard: arrows move a selection, Enter picks) and the selected-cell highlight.
  • Collapsible section headers (EmojiPicker.toggleCategory).
  • Switching tabs from the composer buttons while the picker is open: the click-outside backdrop takes the click and closes the picker; a second click opens it on the new tab. The original keeps it open and switches (onCloseRequest ignores clicks on the tab buttons).
  • Animated previews: animated custom emoji and stickers show their still image; saved videos show an icon instead of a looping preview (in-client playback is Text chat 67).
  • Premium banner dismissal lasts for the session (the original stores it, DismissedUpsell).
Deferred from Text chat 27 (#277), the expression picker. What the first version leaves out of the original (`feat/expressions/components/popouts/ExpressionPickerPopout.tsx`, `feat/channel/components/EmojiPicker.tsx`): - **Size across restarts.** The picker keeps its resized size for the session only (view state in `Local::expressions`). The original persists it (`AppStorageKey.UI_EXPRESSION_PICKER_SIZE`). Needs a field in the local settings of `fluxer-core` and in the platform's settings file, which Text chat 27 (a `fluxer-ui` task) does not touch. - **Keyboard navigation of the grids** (`usePickerGridKeyboard`: arrows move a selection, Enter picks) and the selected-cell highlight. - **Collapsible section headers** (`EmojiPicker.toggleCategory`). - **Switching tabs from the composer buttons while the picker is open**: the click-outside backdrop takes the click and closes the picker; a second click opens it on the new tab. The original keeps it open and switches (`onCloseRequest` ignores clicks on the tab buttons). - **Animated previews**: animated custom emoji and stickers show their still image; saved videos show an icon instead of a looping preview (in-client playback is Text chat 67). - **Premium banner dismissal** lasts for the session (the original stores it, `DismissedUpsell`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#414
No description provided.