Skip to content

feat(dashboard): Thread version, always-on nav tabs, pairing autofocus#675

Merged
Apollon77 merged 1 commit into
mainfrom
dashboard-thread-version-nav-autofocus
May 21, 2026
Merged

feat(dashboard): Thread version, always-on nav tabs, pairing autofocus#675
Apollon77 merged 1 commit into
mainfrom
dashboard-thread-version-nav-autofocus

Conversation

@Apollon77
Copy link
Copy Markdown
Collaborator

@Apollon77 Apollon77 commented May 21, 2026

Summary

  • Show Thread protocol version on Thread node details, read from NetworkCommissioning cluster ThreadVersion attribute (0x31 / 0x0A). Maps Thread Version TLV 1..5 to 1.0..1.4; unmapped values render as Thread unknown (N).
  • Always show the Thread/WiFi navigation tabs — removed the @media (max-width: 768px) { .nav-tabs { display: none } } gate so tabs remain visible on small viewports.
  • Auto-focus the pairing-code field when the commission-node dialog opens. For WiFi/Thread, the credentials-step field is focused first when credentials are not yet set, then the pairing-code field once it appears.

🤖 Generated with Claude Code

- Show Thread protocol version in node Thread Network panel, sourced
  from NetworkCommissioning ThreadVersion attribute (cluster 0x31,
  attr 0x0A). Maps Thread Version TLV 1..5 to 1.0..1.4; unmapped
  values render as "Thread unknown (N)" so raw value stays visible.
- Remove the @media (max-width: 768px) gate that hid Thread/WiFi
  navigation tabs on small viewports; tabs are now always visible.
- Auto-focus the pairing-code field when the commission-node dialog
  opens. For WiFi/Thread, the credentials-step field is focused first
  when credentials are not yet set, then the pairing-code field once
  it appears.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 21, 2026 12:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the dashboard network UX by surfacing the Thread protocol version (from Matter’s NetworkCommissioning cluster), keeping network navigation tabs visible on small viewports, and auto-focusing the appropriate commissioning input fields when the commission dialog opens.

Changes:

  • Add ThreadVersion (0/49/10) parsing + formatting and display it in Thread node details.
  • Remove the small-screen CSS rule that hid the network navigation tabs.
  • Add autofocus behavior to commissioning dialog flows (existing, WiFi, Thread) to focus credentials first (when unset) and pairing/share code when available.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/dashboard/src/pages/network/network-utils.ts Adds ThreadVersion attribute accessor and formatter with forward-compatible “unknown (N)” fallback.
packages/dashboard/src/pages/network/network-details.ts Renders “Thread version” row in the Thread Network panel when available.
packages/dashboard/src/pages/components/header.ts Removes the 768px media rule that hid nav tabs to keep them visible on small screens.
packages/dashboard/src/components/dialogs/commission-node-dialog/commission-node-wifi.ts Adds updated()-driven autofocus logic for SSID vs pairing code depending on credential state.
packages/dashboard/src/components/dialogs/commission-node-dialog/commission-node-thread.ts Adds updated()-driven autofocus logic for dataset vs pairing code depending on credential state.
packages/dashboard/src/components/dialogs/commission-node-dialog/commission-node-existing.ts Auto-focuses the Share code field on first render.
CHANGELOG.md Documents the dashboard enhancements and autofocus fix under “WORK IN PROGRESS”.

@Apollon77 Apollon77 merged commit 11d9ab8 into main May 21, 2026
23 checks passed
@Apollon77 Apollon77 deleted the dashboard-thread-version-nav-autofocus branch May 21, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants