Skip to content

Button to save device to user settings #696

@TwitchBronBron

Description

@TwitchBronBron

Add UI and functionality to the Devices panel to support adding a new device to the list. Users should be able to click an "Add" button in the Devices panel, which will:

  1. Prompt where to save the device config

    • Options: user, folder, or workspace scope. something like this:
    Image
  2. Collect device information

    • Fields: ip address (host), password (optional), nickname (optional), and any other relevant device fields.
  3. Write device structure

    • Compose device config and save it under the selected config scope (brightscript.devices setting).

Example configuration:

{
  "host": "192.168.1.100",
  "name": "Bedroom Roku",
  "password": "myroku123"
}

Structure and Requirements

  • Follow the merging and hierarchy logic described in Issue #690:
    • Support all VSCode configuration scopes (user, workspace, folder, etc), using "last one in wins" priority.
    • If duplicate device IDs exist, properties should be merged, following the config priority order.
    • Configuration UI should clarify where the device is being saved and potential overrides.
  • The "Add Device" UI/flow must:

Acceptance Criteria:


See reference: #690 for merging rules and structure.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions