Add Matter status to config dashboard #28825
Open
+252
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
This PR aligns the Matter config dashboard with the ZHA and Z-Wave one:
dev.otbrintegration was present, even though it's the config panel for the normalthreadintegration.Do keep in mind that I'm not a frontend dev and this was mostly done by Claude, so bear with me on this PR. It might need a ton of feedback. 😄
There are some questions on potential changes below the screenshots as well.
Screenshots
Matter integration page with Matter integration being loaded successfully and opened developer tools section:

and with the Matter integration not loaded successfully or disabled and developer tools being collapsed (default):

Questions
The PR is already good in the current state IMO, but for follow-up tweaks to this dashboard, I have a couple of potential questions or changes that could be made:
Bluetooth, ZHA, and Matter page use a right-aligned button layout inside the cards. Z-Wave mostly uses left-aligned buttons. So, I'd align the Z-Wave one to be right-aligned too for the buttons inside the card. Or should we go with left-aligned for all?
The other pages have a tab layout at the top. I don't think there is anything we can put for Matter here, for now. We may be able to add "Groups" in the future. But would it make sense to have Matter and Thread as tabs, as they're closely related? Probably not, right?
I'm not 100% sure about this, but I at least see the option to "Add hub" on the Matter integration page and it gives me the dialog on whether I want to use the "Use the official Matter Server Supervisor add-on" (which I am already, so not sure how this would work, I can try on another instances later).
IMO, it's fine to only use the first config entry for Matter now, as I don't see any real use-case for having multiple Matter integrations (assuming it's even possible and the flow doesn't just break/cancel later). It's not like you can install the Matter addon multiple times, sooo...
So, fine to keep it like this or should we add the config entry picker used for Z-Wave to Matter as well?
Different button layout screenshots
Different button layouts (CLICK TO EXPAND)
Grid (current state of PR):

All in one row with button text wrapped:

Button text in full length, wrapped to next page:

List:

... and I've just realized we'll show the "Commission device with mobile app" when accessing this page from Android/iOS apps. We can likely just remove that button entirely though, since you can also get to that via the normal "Add device" button. It looks like this with the grid layout (probably not great):

So, what's the best way we can layout these buttons? (Or is that grid fine, since it's "good enough" for a dev section?)
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: