feat(fuselage): Add `truncate` to `ItemMeta`
Draft
JU
7d ago+188+188+012345678901234567890123456789-8-8-0123456789
Proposed changes (including videos or screenshots)
Adds a truncate prop to ItemMeta. With it, long trailing meta text, such as a slash command's parameters, truncates with an ellipsis instead of pushing the title.
Adds a CommandSuggestions story to Item, with a unit test and visual snapshot.
Issue(s)
Related: RocketChat/Rocket.Chat#42520, which uses it in the composer's slash-command popup.
Further comments
Part of the Item migration, split into three independent PRs off main:
- #2295: Sidebar and Sidepanel
- #2310: Options, Select and Menu (merge first)
- this PR:
ItemMetatruncate
If #2310 merges first, this PR needs a rebase and yarn jest -u. Only generated React ids in the Item snapshots change.
š¤ Generated with Claude Code