Skip to content

ControllerBindings update when Profiles change#2743

Merged
DocMoebiuz merged 5 commits intomainfrom
2715/controller-binding-update
Feb 23, 2026
Merged

ControllerBindings update when Profiles change#2743
DocMoebiuz merged 5 commits intomainfrom
2715/controller-binding-update

Conversation

@DocMoebiuz
Copy link
Copy Markdown
Collaborator

fixes #2715

Copilot AI review requested due to automatic review settings February 22, 2026 23:54
@github-actions
Copy link
Copy Markdown

Build for this pull request:
MobiFlightConnector.zip

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

Updates controller binding metadata when project configs change, addressing stale controller lists on the frontend (Issue #2715) by emitting a dedicated backend-to-frontend update message and wiring it into the frontend store.

Changes:

  • Backend: analyze controller bindings on config changes and publish an outgoing bindings-update message.
  • Frontend: add a new app-message type/key and update the project store when bindings-update messages arrive.
  • Tests/build: add a unit test and include the new outgoing message DTO in the csproj.

Reviewed changes

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

Show a summary per file
File Description
frontend/src/types/messages.d.ts Adds a new app message key/payload type for controller bindings updates.
frontend/src/stores/projectStore.ts Adds a store action to update project.ControllerBindings in Zustand state.
frontend/src/lib/hooks/useBackendStateAppMessages.ts Subscribes to the new controller bindings update message and applies it to the project store.
UI/MainForm.cs Triggers controller bindings re-analysis on config changes and publishes an update message when changed.
MobiFlightUnitTests/UI/MainFormTests.cs Adds a unit test intended to verify bindings update behavior on config changes.
MobiFlightConnector.csproj Includes the new outgoing message DTO in compilation.
MobiFlight/BrowserMessages/Outgoing/ControllerBindingUpdate.cs Adds the outgoing message DTO carrying updated bindings.

@github-actions
Copy link
Copy Markdown

Build for this pull request:
MobiFlightConnector.zip

@github-actions
Copy link
Copy Markdown

Build for this pull request:
MobiFlightConnector.zip

@github-actions
Copy link
Copy Markdown

Build for this pull request:
MobiFlightConnector.zip

@DocMoebiuz DocMoebiuz merged commit c6a1a63 into main Feb 23, 2026
2 checks passed
@DocMoebiuz DocMoebiuz added bug_beta Something isn't working in a beta version, not in a stable released version enhancement Improvement of an existing feature and removed bug_beta Something isn't working in a beta version, not in a stable released version labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Controller Bindings information doesn't update

2 participants