From 8c00d477e1a8c336f340444e48db08840b4cc532 Mon Sep 17 00:00:00 2001 From: Kevin Gibbs Date: Sat, 29 Aug 2026 08:56:36 +0100 Subject: [PATCH 1/4] Fix file case problems This allows it to build on non-Windows platforms --- src/components/dialogs/AdvancedNodeDialog.vue | 4 ++-- src/components/dialogs/NodesViewAdvancedDialog.vue | 2 +- .../dialogs/{sendEventDialog.vue => SendEventDialog.vue} | 0 .../modules/common/{Eventvariables.vue => EventVariables.vue} | 0 src/components/views/NodesView.vue | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/components/dialogs/{sendEventDialog.vue => SendEventDialog.vue} (100%) rename src/components/modules/common/{Eventvariables.vue => EventVariables.vue} (100%) diff --git a/src/components/dialogs/AdvancedNodeDialog.vue b/src/components/dialogs/AdvancedNodeDialog.vue index 9af5298..9ca1002 100644 --- a/src/components/dialogs/AdvancedNodeDialog.vue +++ b/src/components/dialogs/AdvancedNodeDialog.vue @@ -151,9 +151,9 @@ import {inject, onBeforeMount, onMounted, computed, watch, ref} from "vue"; import { date, useQuasar, scroll } from 'quasar' import * as utils from "components/functions/utils.js" import MDFDialog from "components/dialogs/MDFDialog" -import programNodeDialog from "components/dialogs/programNodeDialog" +import programNodeDialog from "components/dialogs/ProgramNodeDialog" import NodeBackupAndRestoreDialog from "components/dialogs/NodeBackupAndRestoreDialog" -import setCanIdDialog from "components/dialogs/setCanIdDialog" +import setCanIdDialog from "components/dialogs/SetCanIdDialog" import cbusLib from "cbuslibrary" const $q = useQuasar() diff --git a/src/components/dialogs/NodesViewAdvancedDialog.vue b/src/components/dialogs/NodesViewAdvancedDialog.vue index 668b514..8f71a0b 100644 --- a/src/components/dialogs/NodesViewAdvancedDialog.vue +++ b/src/components/dialogs/NodesViewAdvancedDialog.vue @@ -88,7 +88,7 @@ import * as utils from "components/functions/utils.js" import nodeParametersDialog from "components/dialogs/NodeParametersDialog" import { date, useQuasar, scroll } from 'quasar' import {NodeParametersLoaded} from "components/functions/NodeFunctions.js" -import programNodeDialog from "components/dialogs/programNodeDialog" +import programNodeDialog from "components/dialogs/ProgramNodeDialog" import WaitingOnBusTrafficDialog from "components/dialogs/WaitingOnBusTrafficDialog"; diff --git a/src/components/dialogs/sendEventDialog.vue b/src/components/dialogs/SendEventDialog.vue similarity index 100% rename from src/components/dialogs/sendEventDialog.vue rename to src/components/dialogs/SendEventDialog.vue diff --git a/src/components/modules/common/Eventvariables.vue b/src/components/modules/common/EventVariables.vue similarity index 100% rename from src/components/modules/common/Eventvariables.vue rename to src/components/modules/common/EventVariables.vue diff --git a/src/components/views/NodesView.vue b/src/components/views/NodesView.vue index 22fc36a..72faf3a 100644 --- a/src/components/views/NodesView.vue +++ b/src/components/views/NodesView.vue @@ -163,9 +163,9 @@ import * as eventFunctions from "components/functions/EventFunctions.js" import cbusLib from "cbuslibrary" import {NodeParametersLoaded} from "components/functions/NodeFunctions.js" import EventsListByNode from "components/views/EventsListByNode" -import advancedNodeDialog from "components/dialogs/advancedNodeDialog" +import advancedNodeDialog from "components/dialogs/AdvancedNodeDialog" import nameNodeDialog from "components/dialogs/NameNodeDialog" -import nodeEventsDialog from "components/dialogs/nodeEventsDialog" +import nodeEventsDialog from "components/dialogs/NodeEventsDialog" import nodeParametersDialog from "components/dialogs/NodeParametersDialog" import nodeVariablesDialog from "components/dialogs/NodeVariablesDialog" import NodesViewAdvancedDialog from "components/dialogs/NodesViewAdvancedDialog" From d2c8f2efc0a826ca039350218242eb4ff178f7f4 Mon Sep 17 00:00:00 2001 From: Kevin Gibbs Date: Sat, 29 Aug 2026 09:20:49 +0100 Subject: [PATCH 2/4] Force Quasar to use the sass npm package Currently chooses sass-embedded, and this can cause issues on some platforms e.g. NixOS sass is cross-platform JavaScript/Dart Sass, so it works on Windows, Linux, and macOS. The only trade-off is potentially slightly slower Sass compilation than sass-embedded however, this is typically insignificant for this project, and the benefits are worth it (I really don't think Windows users would notice any difference whatsoever) --- quasar.conf.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/quasar.conf.js b/quasar.conf.js index ae63a4c..248dadb 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -9,6 +9,7 @@ /* eslint-env node */ const ESLintPlugin = require("eslint-webpack-plugin"); const { configure } = require("quasar/wrappers"); +const Sass = require("sass"); module.exports = configure(function (ctx) { return { @@ -68,6 +69,16 @@ module.exports = configure(function (ctx) { .plugin("eslint-webpack-plugin") .use(ESLintPlugin, [{ extensions: ["js", "vue"] }]); }, + + scssLoaderOptions: { + implementation: Sass, + api: "modern", + }, + + sassLoaderOptions: { + implementation: Sass, + api: "modern", + }, }, // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer From 523d2459f046c83415d0ef2844e8a7ae89d1ea0b Mon Sep 17 00:00:00 2001 From: Kevin Gibbs Date: Sat, 29 Aug 2026 09:22:11 +0100 Subject: [PATCH 3/4] Add package-lock.json file to git This is as per recommended practice Only use `npm install` when adding new, or updating existing packages Otherwise use `npm ci` to install packages (this will not update package.json nor package-lock.json) --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e966b7..528a09f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "MMC-CLIENT", - "version": "0.22.0", + "version": "0.23.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "MMC-CLIENT", - "version": "0.22.0", + "version": "0.23.2", "dependencies": { "@quasar/extras": "^1.0.0", "cbuslibrary": "^2.12.0", From 4680c6a9c24eeb925ac2a4494b300838883e265d Mon Sep 17 00:00:00 2001 From: Kevin Gibbs Date: Sat, 29 Aug 2026 12:11:15 +0100 Subject: [PATCH 4/4] Replace CI test step with test coverage --- .github/workflows/ci-common.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-common.yml b/.github/workflows/ci-common.yml index 8d1de64..bb15066 100644 --- a/.github/workflows/ci-common.yml +++ b/.github/workflows/ci-common.yml @@ -44,5 +44,13 @@ jobs: - name: Install dependencies run: npm ci - - name: Run unit tests - run: npm test + - name: Run unit tests with coverage + run: npm run test:unit:coverage + + - name: Upload coverage report + if: always() + uses: actions/upload-artifact@v7 + with: + name: coverage-report + path: test/jest/coverage/lcov.info + if-no-files-found: warn