mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
WorkflowEditor (325→80): CWorkflowState.qml + WorkflowConnectionState.js DashboardView (121→95): DashboardDBAL.js + config/dashboard-config.json Storybook (114→78): StorybookSidebar + config/storybook-components.json + 7 components compacted to under 100 via formatting (no logic changes) + Multiple view/component splits across all remaining 100+ LOC files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
75 lines
1.5 KiB
QML
75 lines
1.5 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QmlComponents 1.0
|
|
|
|
CCard {
|
|
id: root
|
|
|
|
property string name: ""
|
|
property string version: ""
|
|
property string status: ""
|
|
property var capabilities: []
|
|
|
|
signal reloadRequested()
|
|
|
|
Layout.fillWidth: true
|
|
variant: "outlined"
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
spacing: 10
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 8
|
|
|
|
CText { variant: "subtitle1"; text: root.name }
|
|
|
|
Item { Layout.fillWidth: true }
|
|
|
|
CStatusBadge {
|
|
status: root.status === "active" ? "success" : "warning"
|
|
text: root.status
|
|
}
|
|
}
|
|
|
|
CText {
|
|
variant: "caption"
|
|
text: "v" + root.version
|
|
color: Theme.textSecondary
|
|
}
|
|
|
|
CDivider { Layout.fillWidth: true }
|
|
|
|
CText { variant: "caption"; text: "Capabilities" }
|
|
|
|
Flow {
|
|
Layout.fillWidth: true
|
|
spacing: 6
|
|
|
|
Repeater {
|
|
model: root.capabilities
|
|
|
|
delegate: CChip {
|
|
text: modelData
|
|
}
|
|
}
|
|
}
|
|
|
|
FlexRow {
|
|
Layout.fillWidth: true
|
|
spacing: 8
|
|
|
|
Item { Layout.fillWidth: true }
|
|
|
|
CButton {
|
|
text: "Reload"
|
|
variant: "ghost"
|
|
size: "sm"
|
|
onClicked: root.reloadRequested()
|
|
}
|
|
}
|
|
}
|
|
}
|