Skip to content

Expert/mqtt FrontEnd scaffolding#7004

Draft
cstns wants to merge 18 commits intomainfrom
expert/mqtt-fe-scaffolding
Draft

Expert/mqtt FrontEnd scaffolding#7004
cstns wants to merge 18 commits intomainfrom
expert/mqtt-fe-scaffolding

Conversation

@cstns
Copy link
Copy Markdown
Contributor

@cstns cstns commented Mar 31, 2026

Description

This PR scaffolds frontend MQTT support and restructures service startup/cleanup into a centralized orchestrator, while updating dependent code and adding tests.

  • Replaces the old service.factory with a new services.orchestrator that boots and tears down frontend services more cleanly.
  • Adds a new, substantial mqtt.service.js that manages MQTT connections, publishing, subscribing, lifecycle cleanup, payload serialization, and validation.
  • Renames the messaging service class/file to post-message.service.js and updates consumers accordingly.
  • Updates app bootstrap (main.js) to use the new orchestrator and initialize services through it.
  • Adjusts a drawer helper and product assistant store to reference the new service setup.
  • Adds @types/mqtt to dev dependencies.
  • Includes extensive unit tests for the new MQTT service and related service wiring.

Related Issue(s)

closes #6962

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

cstns added 14 commits March 30, 2026 14:00
…rchestrator`, add MQTT service integration, and update dependencies
…arity (`$connections` to `$clients`, `$mqttClient` to `$mqtt`) and update all references accordingly
…tClient`, update method names and references for consistency
…ation queue to ensure serialized client creation and destruction
…dling, error cases, and payload normalization logic
@cstns cstns self-assigned this Mar 31, 2026
@cstns cstns marked this pull request as draft March 31, 2026 13:00
@cstns cstns changed the title Expert/mqtt fe scaffolding Expert/mqtt FrontEnd scaffolding Mar 31, 2026
…eanup, singleton behavior, and service dependency injection
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.29%. Comparing base (07d9e5e) to head (eb660d2).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7004   +/-   ##
=======================================
  Coverage   76.29%   76.29%           
=======================================
  Files         403      403           
  Lines       20296    20296           
  Branches     4881     4881           
=======================================
  Hits        15485    15485           
  Misses       4811     4811           
Flag Coverage Δ
backend 76.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

cstns added 2 commits March 31, 2026 17:30
…ce runtime contract validation, clean up custom disposal logic, and update unit tests
@cstns cstns deployed to staging March 31, 2026 17:28 — with GitHub Actions Active
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.

Scaffolding to support MQTT

1 participant