Skip to content

Manage Matter Exports: sort already-exported devices to the top of the picker #131

Description

@simons-plugins

What

In Plugins ▸ Matter ▸ Manage Matter Exports…, the device picker lists candidates in Indigo's own device order, with exported devices marked by a leading . On a large database the devices you have already exported are scattered through hundreds of rows.

Sort exported devices to the top of the list, above the rest.

Why

The picker is the only place to remove an export, so the devices a returning user most wants to find are exactly the ones hardest to find. Today you either scroll for them or have to remember the device's name well enough to filter for it — and if you have forgotten which devices you exported, the picker cannot tell you without a scroll.

The dialog's read-only summary line reports a count of exports, not which ones.

Notes for whoever picks this up

  • The rows are built in Plugin.getExportCandidates (Server Plugin/plugin.py); _candidate_row already knows whether a device is exported (it is what applies the marker), so the information needed for the sort is in hand.
  • Keep the (select a device) seed row first — the dialog seeds exportDevice to it and a missing row leaves the menu showing a phantom selection.
  • Mind EXPORT_PICKER_LIMIT (300): the cap is applied while iterating, so exported devices should be hoisted before truncation, or a user with a big database could have an exported device truncated away.
  • Loop-guarded devices (this plugin's own) are absent by design (XAC6) and must stay absent.
  • Excluded-but-exported devices keep their today — worth preserving, since "exported and no longer exportable" is the state a user most needs to act on.

Cosmetic/UX only; no protocol or identity impact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions