Skip to content

Standardize dashboard client access pattern #421

@markvp

Description

@markvp

Problem

Dashboard components use three different patterns to access MatterClient:

  1. Required property: @property() public client!: MatterClient (most dialogs)
  2. Optional property: public client?: MatterClient (server-details, header)
  3. Lit context: @consume({ context: clientContext }) (commission-node children)

This inconsistency makes refactoring risky and creates nullable confusion.

Proposal

Standardize on Lit context (@consume) for all components that need the client. This is the most Lit-idiomatic approach and eliminates manual property passing through show functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions