Skip to content

UX: Move Devices import into left palette, Import card into Projects, and dispatch gestures in Preview #8

Open

Description

@wimpie70

Motivation

Following up on the plugin manifest architecture in #7:

  1. Devices belong in the left-side placement palette, not a toolbar modal wizard.
    The left sidebar (EntityBrowser + LayerPanel) is already the editor's "things to place" surface in edit mode. Placing integration devices is part of that daily workflow rather than a one-shot modal wizard.
  2. "Import card" is project lifecycle, not a top-level toolbar tool.
    Scanning Lovelace for an existing ha-floorplan or picture-elements card creates a new project, so it belongs alongside + New project and Import JSON… inside the Projects modal.
  3. Preview mode should execute marker gestures (tap, hold, double).
    Plugins and users configure toggle, more-info, call-service (with YAML serviceData), navigate, and url actions on markers, and hassBridge / HaClient already expose callService, but preview mode previously ignored clicks. Dispatching gestures in preview lets users and plugin authors test marker interactions directly in the editor without an export round-trip.

Proposed changes

  • Left sidebar tabs (Entities | Devices | Layers):
    • New DevicePanel component in the left sidebar with source selector, auto-fetch on open + manual ↻ refresh, inline room-match / staging / on-plan status badges, group selection chips, collapsible options, and single-step undoable placement (Place N markers).
    • Offline paste / file / project-merge import remains available via More… opening DeviceImportModal.
  • Projects modal:
    • Move toolbar Import card into ProjectsModal as New from HA card….
  • Preview gesture dispatcher (src/canvas/actions.ts):
    • Dispatch tap (260 ms delay, cancelled by double-click), hold (500 ms press), and double on markers when mode === 'preview'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions