From dd3e17cb9765f7643c8a5ccdfa36481618fa897a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 20:14:04 +0100 Subject: feat(deckit): tabs and dashboard parts in separate lists deck-it's [modules] were one list mixing tabs and dashboard parts. The General page now lists the tabs (Windows, OBS, K1C printer, Assistant) and the Dashboard page the parts, each under a readable name; Modules.js holds the split. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/deckit/DeckItDashboardPage.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'desktop/modules/deckit/DeckItDashboardPage.qml') diff --git a/desktop/modules/deckit/DeckItDashboardPage.qml b/desktop/modules/deckit/DeckItDashboardPage.qml index 658f07b..0ab032f 100644 --- a/desktop/modules/deckit/DeckItDashboardPage.qml +++ b/desktop/modules/deckit/DeckItDashboardPage.qml @@ -12,6 +12,7 @@ import QtQuick import "../.." import "../qtmaildir" +import "Modules.js" as Modules // deck-it's Dashboard page: its panels, its action icons, the hardware it reads. Column { @@ -31,13 +32,13 @@ Column { Small { visible: DeckIt.defaultsError !== ""; color: Theme.red; text: DeckIt.defaultsError } - Heading { objectName: "modules/"; text: "Modules" } - Small { text: "The dashboard's panels and tabs." } + Heading { objectName: "modules/"; text: "Dashboard parts" } + Small { text: "What the Dashboard shows. The OBS and K1C tabs, on the General page, also feed its running row." } Repeater { - model: Object.keys(col.def("modules") ?? {}) + model: Modules.parts(Object.keys(col.def("modules") ?? {})) BoolSetting { required property string modelData - store: col.st; section: "modules"; key: modelData; label: modelData + store: col.st; section: "modules"; key: modelData; label: Modules.name(modelData) fallback: col.def("modules", modelData) ?? true } } -- cgit v1.2.3