Consolidate one-off menu implementations with a reusable component #745

Closed
opened 2026-06-03 17:42:52 +00:00 by pseudoramdom · 2 comments
pseudoramdom commented 2026-06-03 17:42:52 +00:00 (Migrated from github.com)

The codebase has accumulated several one-off context-menu implementations with inconsistent visual and behavioral conventions:

  • SendOptionsPopup, ReceiveOptionsPopup, PaymentDetailOptionsPopup each roll a Popup (or OptionPopup) wrapping EllipsisMenuActionItem / EllipsisMenuToggleItem / EllipsisMenuButtonItem with
    hand-tuned widths, paddings, and Item/Rectangle separators.
  • Activity.qml defines an inline FilterMenuItem: ItemDelegate (radio-style row with checkmark) used nowhere else.
  • FeeSelection.qml builds its own Popup with a custom Repeater of ItemDelegates, a manual divider, and a toggle ItemDelegate.

The row heights vary (33px vs 36px vs 44px), the EllipsisMenu* API leaks layout knobs (leftIconSource, contentTopPadding, bgRadius), and there is no shared abstraction for a "picker section with checkmark" — so each new menu reinvents one

Image Image Image Image Image Image
The codebase has accumulated several one-off context-menu implementations with inconsistent visual and behavioral conventions: - `SendOptionsPopup`, `ReceiveOptionsPopup`, `PaymentDetailOptionsPopup` each roll a `Popup` (or `OptionPopup`) wrapping `EllipsisMenuActionItem` / `EllipsisMenuToggleItem` / `EllipsisMenuButtonItem` with hand-tuned widths, paddings, and `Item`/`Rectangle` separators. - `Activity.qml` defines an inline `FilterMenuItem: ItemDelegate` (radio-style row with checkmark) used nowhere else. - `FeeSelection.qml` builds its own `Popup` with a custom `Repeater` of `ItemDelegate`s, a manual divider, and a toggle `ItemDelegate`. The row heights vary (33px vs 36px vs 44px), the EllipsisMenu* API leaks layout knobs (`leftIconSource`, `contentTopPadding`, `bgRadius`), and there is no shared abstraction for a "picker section with checkmark" — so each new menu reinvents one <img width="260" height="285" alt="Image" src="https://git.fish.foo/attachments/b64a1ded-769f-4d07-8a2c-95a9ff9c714b" /> <img width="328" height="314" alt="Image" src="https://git.fish.foo/attachments/e68721f5-daa2-4d26-a9fe-e88ccd14b9fd" /> <img width="314" height="242" alt="Image" src="https://git.fish.foo/attachments/b7b3c60b-a0fd-4375-8d55-273dc318b71e" /> <img width="326" height="230" alt="Image" src="https://git.fish.foo/attachments/3bb5fdfb-3022-4919-a166-0679d7dfd82a" /> <img width="303" height="296" alt="Image" src="https://git.fish.foo/attachments/96f66d7a-647a-4a48-8bd2-17974b9bc804" /> <img width="331" height="222" alt="Image" src="https://git.fish.foo/attachments/520b3afd-ca03-40cc-93f9-bfe2e81b6ddc" />
pseudoramdom commented 2026-06-03 17:43:01 +00:00 (Migrated from github.com)

I'll take this

I'll take this
pseudoramdom commented 2026-08-06 17:27:32 +00:00 (Migrated from github.com)

This was implemented in #750 . We can close this.

This was implemented in #750 . We can close this.
Sign in to join this conversation.
No description provided.