One autocomplete style, member avatars, and :shortcode emoji #309

Closed
opened 2026-10-07 20:43:17 -04:00 by Salastil · 1 comment
Owner

The command list and mention list are meant to look the same but differ in margin (8 vs 12px), surface, shadow direction, selected fill and header (app.css:811-846 vs 6745-6772). Member suggestions call <Avatar name> without a picture (Composer.tsx:706). There is no :shortcode emoji autocomplete while typing.

Fix: one shared style; member pictures; :shortcode autocomplete reusing the emoji picker's index.

Part of the v1.0 UI pass.

The command list and mention list are meant to look the same but differ in margin (8 vs 12px), surface, shadow direction, selected fill and header (app.css:811-846 vs 6745-6772). Member suggestions call `<Avatar name>` without a picture (Composer.tsx:706). There is no `:shortcode` emoji autocomplete while typing. **Fix:** one shared style; member pictures; `:shortcode` autocomplete reusing the emoji picker's index. _Part of the v1.0 UI pass._
Salastil added this to the v1.0 milestone 2026-10-07 20:43:17 -04:00
Salastil added the feature label 2026-10-07 20:43:17 -04:00
Author
Owner

Finished: 28d8b3c.

The three lists that open over the box now share one style: the same margin, surface, upward shadow and selected fill, each with a header that says what was searched for.

  • Member pictures: names in the @ list carry the person's avatar where the service has one (initial otherwise).
  • :shortcode emoji: typing :fi offers 🔥 :fire: and friends - the common set, the channel's own custom emoji, and Sneedchat's smilies. Up/Down, Tab/Enter to take it, Esc to close; chosen, it goes in as its picture exactly as the picker would put it. Needs two letters, so :), 10:30 and links never open it.
  • Tests for the matcher (shortcodes.test.ts).

Names - before (top), after (bottom):

mention list

Emoji - before (top, nothing happens), after (bottom):

emoji list

Finished: [28d8b3c](https://git.salastil.com/Salastil/moho/commit/28d8b3c54edf4d5ba5cf9277ab3dc743e78d78d7). The three lists that open over the box now share one style: the same margin, surface, upward shadow and selected fill, each with a header that says what was searched for. - **Member pictures:** names in the `@` list carry the person's avatar where the service has one (initial otherwise). - **`:shortcode` emoji:** typing `:fi` offers 🔥 `:fire:` and friends - the common set, the channel's own custom emoji, and Sneedchat's smilies. Up/Down, Tab/Enter to take it, Esc to close; chosen, it goes in as its picture exactly as the picker would put it. Needs two letters, so `:)`, `10:30` and links never open it. - Tests for the matcher (`shortcodes.test.ts`). Names - before (top), after (bottom): ![mention list](https://git.salastil.com/attachments/5c70cef3-8e6a-4be7-a139-7801531ca566) Emoji - before (top, nothing happens), after (bottom): ![emoji list](https://git.salastil.com/attachments/73f1342e-d7e1-4912-a66c-df04e1963209)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#309