git-contribution-analyzer 0.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- git_contribution_analyzer/__init__.py +3 -0
- git_contribution_analyzer/adapters/__init__.py +1 -0
- git_contribution_analyzer/adapters/git/__init__.py +1 -0
- git_contribution_analyzer/adapters/git/local_identity.py +51 -0
- git_contribution_analyzer/adapters/git/native_git.py +353 -0
- git_contribution_analyzer/adapters/git/pydriller_history.py +57 -0
- git_contribution_analyzer/adapters/git/repository_discovery.py +75 -0
- git_contribution_analyzer/adapters/gui/__init__.py +1 -0
- git_contribution_analyzer/adapters/gui/app.py +63 -0
- git_contribution_analyzer/adapters/gui/controller.py +1084 -0
- git_contribution_analyzer/adapters/gui/models/__init__.py +3 -0
- git_contribution_analyzer/adapters/gui/models/base_table.py +108 -0
- git_contribution_analyzer/adapters/gui/settings.py +53 -0
- git_contribution_analyzer/adapters/gui/task_runner.py +196 -0
- git_contribution_analyzer/adapters/llm/__init__.py +1 -0
- git_contribution_analyzer/adapters/llm/anthropic.py +52 -0
- git_contribution_analyzer/adapters/llm/base.py +142 -0
- git_contribution_analyzer/adapters/llm/cache.py +148 -0
- git_contribution_analyzer/adapters/llm/claude_cli.py +52 -0
- git_contribution_analyzer/adapters/llm/codex_cli.py +52 -0
- git_contribution_analyzer/adapters/llm/command_base.py +153 -0
- git_contribution_analyzer/adapters/llm/mock.py +82 -0
- git_contribution_analyzer/adapters/llm/ollama.py +53 -0
- git_contribution_analyzer/adapters/llm/openai_compatible.py +61 -0
- git_contribution_analyzer/adapters/llm/registry.py +117 -0
- git_contribution_analyzer/adapters/mcp/__init__.py +13 -0
- git_contribution_analyzer/adapters/mcp/installer.py +175 -0
- git_contribution_analyzer/adapters/mcp/prompts_resources.py +218 -0
- git_contribution_analyzer/adapters/mcp/protocol.py +361 -0
- git_contribution_analyzer/adapters/mcp/server.py +52 -0
- git_contribution_analyzer/adapters/mcp/tools.py +621 -0
- git_contribution_analyzer/adapters/outcomes/__init__.py +1 -0
- git_contribution_analyzer/adapters/outcomes/yaml_loader.py +55 -0
- git_contribution_analyzer/adapters/outcomes/yaml_store.py +104 -0
- git_contribution_analyzer/adapters/reporting/__init__.py +1 -0
- git_contribution_analyzer/adapters/reporting/brag_markdown.py +115 -0
- git_contribution_analyzer/adapters/reporting/html_report.py +1413 -0
- git_contribution_analyzer/adapters/reporting/markdown.py +217 -0
- git_contribution_analyzer/adapters/reporting/portfolio_markdown.py +167 -0
- git_contribution_analyzer/adapters/reporting/recap_markdown.py +212 -0
- git_contribution_analyzer/adapters/reporting/resume_markdown.py +37 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_csv.py +117 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_markdown.py +90 -0
- git_contribution_analyzer/adapters/reporting/work_assessment_series_markdown.py +31 -0
- git_contribution_analyzer/adapters/storage/__init__.py +1 -0
- git_contribution_analyzer/adapters/storage/sqlite/__init__.py +1 -0
- git_contribution_analyzer/adapters/storage/sqlite/analysis.py +708 -0
- git_contribution_analyzer/adapters/storage/sqlite/database.py +98 -0
- git_contribution_analyzer/adapters/storage/sqlite/git_index.py +482 -0
- git_contribution_analyzer/adapters/storage/sqlite/identity_merge.py +373 -0
- git_contribution_analyzer/adapters/storage/sqlite/llm_audit.py +109 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/env.py +34 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/script.py.mako +22 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0001_initial.py +51 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0002_git_index.py +146 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0003_analysis.py +79 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0004_llm_audit.py +69 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0005_run_types.py +42 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0006_identity_merges.py +83 -0
- git_contribution_analyzer/adapters/storage/sqlite/migrations/versions/0007_structural_baselines.py +173 -0
- git_contribution_analyzer/adapters/storage/sqlite/models.py +354 -0
- git_contribution_analyzer/adapters/storage/sqlite/structural_baseline.py +841 -0
- git_contribution_analyzer/adapters/workspace/__init__.py +1 -0
- git_contribution_analyzer/adapters/workspace/config.py +135 -0
- git_contribution_analyzer/adapters/workspace/git_exclude.py +32 -0
- git_contribution_analyzer/adapters/workspace/layout.py +40 -0
- git_contribution_analyzer/adapters/workspace/locks.py +27 -0
- git_contribution_analyzer/adapters/workspace/portfolio_workspace.py +380 -0
- git_contribution_analyzer/adapters/workspace/ranking_config.py +17 -0
- git_contribution_analyzer/application/__init__.py +1 -0
- git_contribution_analyzer/application/dto/__init__.py +19 -0
- git_contribution_analyzer/application/dto/gui.py +86 -0
- git_contribution_analyzer/application/dto/results.py +21 -0
- git_contribution_analyzer/application/facades/__init__.py +3 -0
- git_contribution_analyzer/application/facades/gui.py +568 -0
- git_contribution_analyzer/application/ports/__init__.py +22 -0
- git_contribution_analyzer/application/ports/cancellation.py +50 -0
- git_contribution_analyzer/application/ports/git_history.py +22 -0
- git_contribution_analyzer/application/ports/llm.py +44 -0
- git_contribution_analyzer/application/ports/portfolio_store.py +34 -0
- git_contribution_analyzer/application/ports/progress.py +43 -0
- git_contribution_analyzer/application/ports/structural_baseline.py +93 -0
- git_contribution_analyzer/application/services/__init__.py +1 -0
- git_contribution_analyzer/application/services/assessment_explanation.py +127 -0
- git_contribution_analyzer/application/services/default_person.py +61 -0
- git_contribution_analyzer/application/services/evidence_snapshot.py +64 -0
- git_contribution_analyzer/application/services/person_selection.py +88 -0
- git_contribution_analyzer/application/services/resume_generation.py +318 -0
- git_contribution_analyzer/application/services/semantic_enhancement.py +157 -0
- git_contribution_analyzer/application/services/time_boundaries.py +49 -0
- git_contribution_analyzer/application/use_cases/__init__.py +1 -0
- git_contribution_analyzer/application/use_cases/analyze_contributions.py +276 -0
- git_contribution_analyzer/application/use_cases/analyze_project.py +295 -0
- git_contribution_analyzer/application/use_cases/assess_portfolio.py +327 -0
- git_contribution_analyzer/application/use_cases/assess_work.py +602 -0
- git_contribution_analyzer/application/use_cases/assess_work_series.py +212 -0
- git_contribution_analyzer/application/use_cases/compare_assessment_runs.py +121 -0
- git_contribution_analyzer/application/use_cases/export_report.py +49 -0
- git_contribution_analyzer/application/use_cases/generate_brag.py +308 -0
- git_contribution_analyzer/application/use_cases/generate_portfolio_recap.py +244 -0
- git_contribution_analyzer/application/use_cases/generate_portfolio_resume.py +152 -0
- git_contribution_analyzer/application/use_cases/generate_recap.py +316 -0
- git_contribution_analyzer/application/use_cases/generate_report.py +32 -0
- git_contribution_analyzer/application/use_cases/generate_resume.py +209 -0
- git_contribution_analyzer/application/use_cases/get_portfolio_status.py +83 -0
- git_contribution_analyzer/application/use_cases/get_run.py +16 -0
- git_contribution_analyzer/application/use_cases/get_status.py +69 -0
- git_contribution_analyzer/application/use_cases/index_repository.py +267 -0
- git_contribution_analyzer/application/use_cases/init_portfolio.py +89 -0
- git_contribution_analyzer/application/use_cases/init_project.py +71 -0
- git_contribution_analyzer/application/use_cases/list_identities.py +16 -0
- git_contribution_analyzer/application/use_cases/list_providers.py +29 -0
- git_contribution_analyzer/application/use_cases/list_runs.py +17 -0
- git_contribution_analyzer/application/use_cases/manage_identity_merges.py +48 -0
- git_contribution_analyzer/application/use_cases/manage_outcomes.py +189 -0
- git_contribution_analyzer/application/use_cases/manage_structural_baselines.py +262 -0
- git_contribution_analyzer/application/use_cases/map_identity.py +28 -0
- git_contribution_analyzer/application/use_cases/recover_runs.py +22 -0
- git_contribution_analyzer/application/use_cases/run_doctor.py +81 -0
- git_contribution_analyzer/application/use_cases/sync_portfolio.py +232 -0
- git_contribution_analyzer/application/use_cases/test_provider.py +22 -0
- git_contribution_analyzer/application/use_cases/uninit_project.py +23 -0
- git_contribution_analyzer/application/use_cases/verify_portfolio.py +165 -0
- git_contribution_analyzer/cli/__init__.py +1 -0
- git_contribution_analyzer/cli/app.py +1430 -0
- git_contribution_analyzer/cli/exit_codes.py +13 -0
- git_contribution_analyzer/cli/output.py +26 -0
- git_contribution_analyzer/cli/portfolio_commands.py +629 -0
- git_contribution_analyzer/domain/__init__.py +1 -0
- git_contribution_analyzer/domain/errors.py +55 -0
- git_contribution_analyzer/domain/models/__init__.py +3 -0
- git_contribution_analyzer/domain/models/analysis.py +29 -0
- git_contribution_analyzer/domain/models/assessment.py +12 -0
- git_contribution_analyzer/domain/models/brag.py +148 -0
- git_contribution_analyzer/domain/models/contribution.py +55 -0
- git_contribution_analyzer/domain/models/git_history.py +69 -0
- git_contribution_analyzer/domain/models/person_selection.py +46 -0
- git_contribution_analyzer/domain/models/portfolio.py +498 -0
- git_contribution_analyzer/domain/models/ranking.py +48 -0
- git_contribution_analyzer/domain/models/recap.py +235 -0
- git_contribution_analyzer/domain/models/repository.py +10 -0
- git_contribution_analyzer/domain/models/resume.py +59 -0
- git_contribution_analyzer/domain/models/run.py +10 -0
- git_contribution_analyzer/domain/models/semantic.py +34 -0
- git_contribution_analyzer/domain/models/snapshot.py +208 -0
- git_contribution_analyzer/domain/models/structural_baseline.py +120 -0
- git_contribution_analyzer/domain/models/work_assessment.py +81 -0
- git_contribution_analyzer/domain/services/assessment_periods.py +182 -0
- git_contribution_analyzer/domain/services/brag_rules.py +250 -0
- git_contribution_analyzer/domain/services/capability_rules.py +91 -0
- git_contribution_analyzer/domain/services/contribution_clustering.py +98 -0
- git_contribution_analyzer/domain/services/contribution_rules.py +79 -0
- git_contribution_analyzer/domain/services/difficulty_rules.py +191 -0
- git_contribution_analyzer/domain/services/dimensional_summary.py +117 -0
- git_contribution_analyzer/domain/services/portfolio_aggregation.py +250 -0
- git_contribution_analyzer/domain/services/portfolio_resume_rules.py +265 -0
- git_contribution_analyzer/domain/services/portfolio_verifier.py +238 -0
- git_contribution_analyzer/domain/services/ranking_rules.py +226 -0
- git_contribution_analyzer/domain/services/recap_rules.py +268 -0
- git_contribution_analyzer/domain/services/resume_claim_rules.py +70 -0
- git_contribution_analyzer/domain/services/structural_baseline.py +317 -0
- git_contribution_analyzer/domain/services/structural_signals.py +151 -0
- git_contribution_analyzer/domain/services/workload_rules.py +185 -0
- git_contribution_analyzer/gui/__init__.py +1 -0
- git_contribution_analyzer/gui/qml/Main.qml +1141 -0
- git_contribution_analyzer/gui/qml/__init__.py +1 -0
- git_contribution_analyzer/prompts/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/assessment/v1/explanation.txt +4 -0
- git_contribution_analyzer/prompts/resume/__init__.py +1 -0
- git_contribution_analyzer/prompts/resume/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-concise.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-star.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/style-xyz.txt +1 -0
- git_contribution_analyzer/prompts/resume/v1/system.txt +3 -0
- git_contribution_analyzer/prompts/v1/__init__.py +1 -0
- git_contribution_analyzer/prompts/v1/capability_explanation.txt +2 -0
- git_contribution_analyzer/prompts/v1/contribution_summary.txt +2 -0
- git_contribution_analyzer/prompts/v1/overall_summary.txt +2 -0
- git_contribution_analyzer/prompts/v1/resume_bullet.txt +2 -0
- git_contribution_analyzer-0.8.0.dist-info/METADATA +667 -0
- git_contribution_analyzer-0.8.0.dist-info/RECORD +187 -0
- git_contribution_analyzer-0.8.0.dist-info/WHEEL +4 -0
- git_contribution_analyzer-0.8.0.dist-info/entry_points.txt +3 -0
- git_contribution_analyzer-0.8.0.dist-info/licenses/LICENSE +201 -0
- git_contribution_analyzer-0.8.0.dist-info/licenses/NOTICE +6 -0
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
import QtQuick
|
|
2
|
+
import QtQuick.Controls
|
|
3
|
+
import QtQuick.Dialogs
|
|
4
|
+
import QtQuick.Layouts
|
|
5
|
+
import QtCharts
|
|
6
|
+
|
|
7
|
+
ApplicationWindow {
|
|
8
|
+
id: window
|
|
9
|
+
width: 1280
|
|
10
|
+
height: 820
|
|
11
|
+
minimumWidth: 760
|
|
12
|
+
minimumHeight: 560
|
|
13
|
+
visible: true
|
|
14
|
+
title: qsTr("Git Contribution Analyzer")
|
|
15
|
+
color: palette.window
|
|
16
|
+
|
|
17
|
+
property int pageIndex: 0
|
|
18
|
+
property string exportRunId: gca.currentRunId
|
|
19
|
+
property string exportFormat: "markdown"
|
|
20
|
+
property string transientMessage: ""
|
|
21
|
+
|
|
22
|
+
function splitValues(value) {
|
|
23
|
+
return value.split(",").map(item => item.trim()).filter(item => item.length > 0)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Connections {
|
|
27
|
+
target: gca
|
|
28
|
+
function onNotification(message) {
|
|
29
|
+
transientMessage = message
|
|
30
|
+
notificationTimer.restart()
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Timer {
|
|
35
|
+
id: notificationTimer
|
|
36
|
+
interval: 3500
|
|
37
|
+
onTriggered: transientMessage = ""
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
FolderDialog {
|
|
41
|
+
id: repositoryDialog
|
|
42
|
+
title: qsTr("Open Git repository")
|
|
43
|
+
onAccepted: gca.openRepository(selectedFolder.toString())
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
FileDialog {
|
|
47
|
+
id: exportDialog
|
|
48
|
+
title: qsTr("Export report")
|
|
49
|
+
fileMode: FileDialog.SaveFile
|
|
50
|
+
nameFilters: exportFormat === "html"
|
|
51
|
+
? [qsTr("HTML files (*.html)")]
|
|
52
|
+
: exportFormat === "csv"
|
|
53
|
+
? [qsTr("CSV files (*.csv)")]
|
|
54
|
+
: exportFormat === "json"
|
|
55
|
+
? [qsTr("JSON files (*.json)")]
|
|
56
|
+
: [qsTr("Markdown files (*.md)")]
|
|
57
|
+
onAccepted: gca.exportRun(exportRunId, exportFormat, selectedFile.toString(), false, false)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
header: ToolBar {
|
|
61
|
+
height: 58
|
|
62
|
+
|
|
63
|
+
RowLayout {
|
|
64
|
+
anchors.fill: parent
|
|
65
|
+
anchors.leftMargin: 16
|
|
66
|
+
anchors.rightMargin: 16
|
|
67
|
+
spacing: 12
|
|
68
|
+
|
|
69
|
+
ToolButton {
|
|
70
|
+
text: "GCA"
|
|
71
|
+
font.pixelSize: 18
|
|
72
|
+
font.bold: true
|
|
73
|
+
onClicked: pageIndex = 0
|
|
74
|
+
Accessible.name: qsTr("Open overview")
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
Rectangle {
|
|
78
|
+
width: 1
|
|
79
|
+
height: 26
|
|
80
|
+
color: palette.midlight
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
ColumnLayout {
|
|
84
|
+
spacing: 0
|
|
85
|
+
Layout.fillWidth: true
|
|
86
|
+
|
|
87
|
+
Label {
|
|
88
|
+
text: gca.repositoryName
|
|
89
|
+
font.bold: true
|
|
90
|
+
elide: Text.ElideMiddle
|
|
91
|
+
Layout.fillWidth: true
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Label {
|
|
95
|
+
text: gca.repositoryPath
|
|
96
|
+
visible: gca.repositoryPath.length > 0
|
|
97
|
+
color: palette.mid
|
|
98
|
+
font.pixelSize: 11
|
|
99
|
+
elide: Text.ElideMiddle
|
|
100
|
+
Layout.fillWidth: true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
RowLayout {
|
|
105
|
+
visible: gca.busy
|
|
106
|
+
spacing: 8
|
|
107
|
+
|
|
108
|
+
BusyIndicator {
|
|
109
|
+
running: gca.busy
|
|
110
|
+
implicitWidth: 28
|
|
111
|
+
implicitHeight: 28
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Label {
|
|
115
|
+
text: gca.taskMessage
|
|
116
|
+
elide: Text.ElideRight
|
|
117
|
+
Layout.maximumWidth: 220
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
Button {
|
|
121
|
+
text: qsTr("Cancel")
|
|
122
|
+
onClicked: gca.cancelTask("")
|
|
123
|
+
Accessible.name: text
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
Button {
|
|
128
|
+
text: qsTr("Sync")
|
|
129
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
130
|
+
onClicked: gca.syncRepository()
|
|
131
|
+
Accessible.name: text
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
Button {
|
|
135
|
+
text: qsTr("Open")
|
|
136
|
+
onClicked: repositoryDialog.open()
|
|
137
|
+
Accessible.name: qsTr("Open repository")
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
RowLayout {
|
|
143
|
+
anchors.fill: parent
|
|
144
|
+
spacing: 0
|
|
145
|
+
|
|
146
|
+
Pane {
|
|
147
|
+
id: navigation
|
|
148
|
+
Layout.preferredWidth: window.width < 900 ? 64 : 210
|
|
149
|
+
Layout.fillHeight: true
|
|
150
|
+
padding: 10
|
|
151
|
+
|
|
152
|
+
ColumnLayout {
|
|
153
|
+
anchors.fill: parent
|
|
154
|
+
spacing: 3
|
|
155
|
+
|
|
156
|
+
Repeater {
|
|
157
|
+
model: [
|
|
158
|
+
{label: qsTr("Overview"), shortLabel: "O"},
|
|
159
|
+
{label: qsTr("Structure"), shortLabel: "ST"},
|
|
160
|
+
{label: qsTr("Assessment"), shortLabel: "A"},
|
|
161
|
+
{label: qsTr("Trends"), shortLabel: "T"},
|
|
162
|
+
{label: qsTr("People"), shortLabel: "P"},
|
|
163
|
+
{label: qsTr("Work items"), shortLabel: "W"},
|
|
164
|
+
{label: qsTr("Runs"), shortLabel: "R"},
|
|
165
|
+
{label: qsTr("Resume"), shortLabel: "CV"},
|
|
166
|
+
{label: qsTr("Recap & Brag"), shortLabel: "RB"},
|
|
167
|
+
{label: qsTr("Outcomes"), shortLabel: "OC"},
|
|
168
|
+
{label: qsTr("Settings"), shortLabel: "S"}
|
|
169
|
+
]
|
|
170
|
+
|
|
171
|
+
delegate: Button {
|
|
172
|
+
required property var modelData
|
|
173
|
+
required property int index
|
|
174
|
+
text: navigation.width < 100 ? modelData.shortLabel : modelData.label
|
|
175
|
+
flat: true
|
|
176
|
+
highlighted: pageIndex === index
|
|
177
|
+
Layout.fillWidth: true
|
|
178
|
+
Layout.preferredHeight: 42
|
|
179
|
+
onClicked: pageIndex = index
|
|
180
|
+
ToolTip.visible: hovered && navigation.width < 100
|
|
181
|
+
ToolTip.text: modelData.label
|
|
182
|
+
Accessible.name: modelData.label
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
Item { Layout.fillHeight: true }
|
|
187
|
+
|
|
188
|
+
Label {
|
|
189
|
+
text: "v" + gca.appVersion
|
|
190
|
+
color: palette.mid
|
|
191
|
+
Layout.alignment: Qt.AlignHCenter
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
Rectangle {
|
|
197
|
+
width: 1
|
|
198
|
+
Layout.fillHeight: true
|
|
199
|
+
color: palette.midlight
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
Item {
|
|
203
|
+
Layout.fillWidth: true
|
|
204
|
+
Layout.fillHeight: true
|
|
205
|
+
|
|
206
|
+
ColumnLayout {
|
|
207
|
+
anchors.fill: parent
|
|
208
|
+
spacing: 0
|
|
209
|
+
|
|
210
|
+
Rectangle {
|
|
211
|
+
visible: gca.errorMessage.length > 0
|
|
212
|
+
color: palette.alternateBase
|
|
213
|
+
Layout.fillWidth: true
|
|
214
|
+
implicitHeight: errorRow.implicitHeight + 20
|
|
215
|
+
|
|
216
|
+
RowLayout {
|
|
217
|
+
id: errorRow
|
|
218
|
+
anchors.fill: parent
|
|
219
|
+
anchors.margins: 10
|
|
220
|
+
|
|
221
|
+
Label {
|
|
222
|
+
text: gca.errorMessage
|
|
223
|
+
color: "#b42318"
|
|
224
|
+
wrapMode: Text.WordWrap
|
|
225
|
+
Layout.fillWidth: true
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
ToolButton {
|
|
229
|
+
text: "X"
|
|
230
|
+
onClicked: gca.clearError()
|
|
231
|
+
Accessible.name: qsTr("Dismiss error")
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
StackLayout {
|
|
237
|
+
currentIndex: pageIndex
|
|
238
|
+
Layout.fillWidth: true
|
|
239
|
+
Layout.fillHeight: true
|
|
240
|
+
|
|
241
|
+
// Overview
|
|
242
|
+
ScrollView {
|
|
243
|
+
contentWidth: availableWidth
|
|
244
|
+
|
|
245
|
+
ColumnLayout {
|
|
246
|
+
width: parent.width
|
|
247
|
+
spacing: 22
|
|
248
|
+
anchors.margins: 28
|
|
249
|
+
|
|
250
|
+
Label {
|
|
251
|
+
text: qsTr("Overview")
|
|
252
|
+
font.pixelSize: 24
|
|
253
|
+
font.bold: true
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
ColumnLayout {
|
|
257
|
+
visible: gca.repositoryPath.length === 0
|
|
258
|
+
Layout.fillWidth: true
|
|
259
|
+
Layout.topMargin: 90
|
|
260
|
+
spacing: 16
|
|
261
|
+
|
|
262
|
+
Label {
|
|
263
|
+
text: qsTr("No repository open")
|
|
264
|
+
font.pixelSize: 20
|
|
265
|
+
Layout.alignment: Qt.AlignHCenter
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
Button {
|
|
269
|
+
text: qsTr("Choose repository")
|
|
270
|
+
onClicked: repositoryDialog.open()
|
|
271
|
+
Layout.alignment: Qt.AlignHCenter
|
|
272
|
+
Accessible.name: text
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
Label {
|
|
276
|
+
text: qsTr("Recent repositories")
|
|
277
|
+
visible: gca.recentRepositories.length > 0
|
|
278
|
+
font.bold: true
|
|
279
|
+
Layout.alignment: Qt.AlignHCenter
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
Repeater {
|
|
283
|
+
model: gca.recentRepositories
|
|
284
|
+
delegate: Button {
|
|
285
|
+
required property string modelData
|
|
286
|
+
text: modelData
|
|
287
|
+
flat: true
|
|
288
|
+
Layout.alignment: Qt.AlignHCenter
|
|
289
|
+
onClicked: gca.openRepository(modelData)
|
|
290
|
+
Accessible.name: qsTr("Open %1").arg(modelData)
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
RowLayout {
|
|
296
|
+
visible: gca.repositoryPath.length > 0
|
|
297
|
+
Layout.fillWidth: true
|
|
298
|
+
spacing: 0
|
|
299
|
+
|
|
300
|
+
ColumnLayout {
|
|
301
|
+
Layout.fillWidth: true
|
|
302
|
+
Label { text: qsTr("Commits"); color: palette.mid }
|
|
303
|
+
Label { text: gca.indexedCommits; font.pixelSize: 28; font.bold: true }
|
|
304
|
+
}
|
|
305
|
+
Rectangle { width: 1; height: 52; color: palette.midlight }
|
|
306
|
+
ColumnLayout {
|
|
307
|
+
Layout.fillWidth: true
|
|
308
|
+
Layout.leftMargin: 20
|
|
309
|
+
Label { text: qsTr("People"); color: palette.mid }
|
|
310
|
+
Label { text: gca.identityCount; font.pixelSize: 28; font.bold: true }
|
|
311
|
+
}
|
|
312
|
+
Rectangle { width: 1; height: 52; color: palette.midlight }
|
|
313
|
+
ColumnLayout {
|
|
314
|
+
Layout.fillWidth: true
|
|
315
|
+
Layout.leftMargin: 20
|
|
316
|
+
Label { text: qsTr("Unresolved"); color: palette.mid }
|
|
317
|
+
Label { text: gca.unresolvedIdentityCount; font.pixelSize: 28; font.bold: true }
|
|
318
|
+
}
|
|
319
|
+
Rectangle { width: 1; height: 52; color: palette.midlight }
|
|
320
|
+
ColumnLayout {
|
|
321
|
+
Layout.fillWidth: true
|
|
322
|
+
Layout.leftMargin: 20
|
|
323
|
+
Label { text: qsTr("Index"); color: palette.mid }
|
|
324
|
+
Label { text: gca.indexStatus; font.pixelSize: 18; font.bold: true }
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
Rectangle {
|
|
329
|
+
visible: gca.repositoryPath.length > 0
|
|
330
|
+
height: 1
|
|
331
|
+
color: palette.midlight
|
|
332
|
+
Layout.fillWidth: true
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
RowLayout {
|
|
336
|
+
visible: gca.repositoryPath.length > 0
|
|
337
|
+
spacing: 10
|
|
338
|
+
|
|
339
|
+
Button {
|
|
340
|
+
text: qsTr("Initialize")
|
|
341
|
+
visible: !gca.workspaceInitialized
|
|
342
|
+
enabled: !gca.busy
|
|
343
|
+
onClicked: gca.initializeRepository()
|
|
344
|
+
}
|
|
345
|
+
Button {
|
|
346
|
+
text: qsTr("Sync")
|
|
347
|
+
visible: gca.workspaceInitialized
|
|
348
|
+
enabled: !gca.busy
|
|
349
|
+
onClicked: gca.syncRepository()
|
|
350
|
+
}
|
|
351
|
+
Button {
|
|
352
|
+
text: qsTr("Rebuild index")
|
|
353
|
+
visible: gca.workspaceInitialized
|
|
354
|
+
enabled: !gca.busy
|
|
355
|
+
onClicked: gca.rebuildIndex()
|
|
356
|
+
}
|
|
357
|
+
Button {
|
|
358
|
+
text: qsTr("Doctor")
|
|
359
|
+
enabled: !gca.busy
|
|
360
|
+
onClicked: gca.runDoctor()
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
TextArea {
|
|
365
|
+
visible: gca.currentReportJson.length > 0 && pageIndex === 0
|
|
366
|
+
text: gca.currentReportJson
|
|
367
|
+
readOnly: true
|
|
368
|
+
wrapMode: TextEdit.NoWrap
|
|
369
|
+
font.family: "monospace"
|
|
370
|
+
Layout.fillWidth: true
|
|
371
|
+
Layout.preferredHeight: 300
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Structural observations
|
|
377
|
+
ColumnLayout {
|
|
378
|
+
spacing: 14
|
|
379
|
+
Layout.margins: 28
|
|
380
|
+
|
|
381
|
+
RowLayout {
|
|
382
|
+
Layout.fillWidth: true
|
|
383
|
+
Label {
|
|
384
|
+
text: qsTr("Structural observations")
|
|
385
|
+
font.pixelSize: 24
|
|
386
|
+
font.bold: true
|
|
387
|
+
Layout.fillWidth: true
|
|
388
|
+
}
|
|
389
|
+
Label {
|
|
390
|
+
text: qsTr("OBSERVATION ONLY")
|
|
391
|
+
color: palette.highlight
|
|
392
|
+
font.bold: true
|
|
393
|
+
}
|
|
394
|
+
Button {
|
|
395
|
+
text: qsTr("Refresh")
|
|
396
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
397
|
+
onClicked: gca.refreshStructural()
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
RowLayout {
|
|
402
|
+
Layout.fillWidth: true
|
|
403
|
+
spacing: 0
|
|
404
|
+
ColumnLayout {
|
|
405
|
+
Layout.fillWidth: true
|
|
406
|
+
Label { text: qsTr("Baselines"); color: palette.mid }
|
|
407
|
+
Label { text: gca.structuralBaselineCount; font.pixelSize: 24; font.bold: true }
|
|
408
|
+
}
|
|
409
|
+
Rectangle { width: 1; height: 46; color: palette.midlight }
|
|
410
|
+
ColumnLayout {
|
|
411
|
+
Layout.fillWidth: true
|
|
412
|
+
Layout.leftMargin: 20
|
|
413
|
+
Label { text: qsTr("Processed commits"); color: palette.mid }
|
|
414
|
+
Label { text: gca.structuralProcessedCommits; font.pixelSize: 24; font.bold: true }
|
|
415
|
+
}
|
|
416
|
+
Rectangle { width: 1; height: 46; color: palette.midlight }
|
|
417
|
+
ColumnLayout {
|
|
418
|
+
Layout.fillWidth: true
|
|
419
|
+
Layout.leftMargin: 20
|
|
420
|
+
Label { text: qsTr("Latest baseline"); color: palette.mid }
|
|
421
|
+
Label {
|
|
422
|
+
text: gca.structuralLatestBaselineId || qsTr("None")
|
|
423
|
+
font.family: "monospace"
|
|
424
|
+
elide: Text.ElideMiddle
|
|
425
|
+
Layout.maximumWidth: 360
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
GridLayout {
|
|
431
|
+
columns: width < 900 ? 2 : 4
|
|
432
|
+
columnSpacing: 12
|
|
433
|
+
rowSpacing: 8
|
|
434
|
+
Layout.fillWidth: true
|
|
435
|
+
ColumnLayout {
|
|
436
|
+
Layout.fillWidth: true
|
|
437
|
+
Label { text: qsTr("Exclusive cutoff") }
|
|
438
|
+
TextField { id: structuralCutoff; placeholderText: "2026-07-01T00:00:00Z"; Layout.fillWidth: true }
|
|
439
|
+
}
|
|
440
|
+
ColumnLayout {
|
|
441
|
+
Layout.fillWidth: true
|
|
442
|
+
Label { text: qsTr("Branch") }
|
|
443
|
+
TextField { id: structuralBranch; placeholderText: qsTr("Configured default"); Layout.fillWidth: true }
|
|
444
|
+
}
|
|
445
|
+
ColumnLayout {
|
|
446
|
+
Layout.fillWidth: true
|
|
447
|
+
Label { text: qsTr("Scope") }
|
|
448
|
+
TextField { id: structuralScope; placeholderText: qsTr("Entire repository"); Layout.fillWidth: true }
|
|
449
|
+
}
|
|
450
|
+
ColumnLayout {
|
|
451
|
+
Layout.fillWidth: true
|
|
452
|
+
Label { text: qsTr("Time strategy") }
|
|
453
|
+
ComboBox { id: structuralStrategy; model: ["lifetime", "rolling-window", "dual-window"]; Layout.fillWidth: true }
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
RowLayout {
|
|
458
|
+
Layout.fillWidth: true
|
|
459
|
+
Button {
|
|
460
|
+
text: qsTr("Rebuild")
|
|
461
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
462
|
+
onClicked: gca.rebuildStructural({
|
|
463
|
+
cutoff: structuralCutoff.text,
|
|
464
|
+
branch: structuralBranch.text,
|
|
465
|
+
scope: structuralScope.text,
|
|
466
|
+
timeStrategy: structuralStrategy.currentText
|
|
467
|
+
})
|
|
468
|
+
}
|
|
469
|
+
Button {
|
|
470
|
+
text: qsTr("Show latest")
|
|
471
|
+
enabled: gca.structuralLatestBaselineId.length > 0 && !gca.busy
|
|
472
|
+
onClicked: gca.showStructural("")
|
|
473
|
+
}
|
|
474
|
+
Item { Layout.fillWidth: true }
|
|
475
|
+
Label { text: qsTr("Keep") }
|
|
476
|
+
SpinBox { id: structuralKeep; from: 0; to: 100; value: 8 }
|
|
477
|
+
Button {
|
|
478
|
+
text: qsTr("Prune")
|
|
479
|
+
enabled: gca.structuralBaselineCount > structuralKeep.value && !gca.busy
|
|
480
|
+
onClicked: structuralPruneConfirm.open()
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
SplitView {
|
|
485
|
+
orientation: Qt.Horizontal
|
|
486
|
+
Layout.fillWidth: true
|
|
487
|
+
Layout.fillHeight: true
|
|
488
|
+
|
|
489
|
+
ColumnLayout {
|
|
490
|
+
SplitView.fillWidth: true
|
|
491
|
+
SplitView.minimumWidth: 300
|
|
492
|
+
Label { text: qsTr("Hotspots"); font.pixelSize: 18; font.bold: true }
|
|
493
|
+
TextField { placeholderText: qsTr("Filter hotspots"); onTextChanged: gca.structuralHotspotsModel.set_filter(text); Layout.fillWidth: true }
|
|
494
|
+
ListView {
|
|
495
|
+
model: gca.structuralHotspotsModel
|
|
496
|
+
clip: true
|
|
497
|
+
Layout.fillWidth: true
|
|
498
|
+
Layout.fillHeight: true
|
|
499
|
+
delegate: Rectangle {
|
|
500
|
+
required property var model
|
|
501
|
+
width: ListView.view.width
|
|
502
|
+
height: 48
|
|
503
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
504
|
+
RowLayout {
|
|
505
|
+
anchors.fill: parent
|
|
506
|
+
anchors.margins: 8
|
|
507
|
+
Label { text: model.path || ""; elide: Text.ElideMiddle; Layout.fillWidth: true }
|
|
508
|
+
Label { text: model.changeCount || 0; Layout.preferredWidth: 60; horizontalAlignment: Text.AlignRight }
|
|
509
|
+
Label { text: model.confidence || ""; Layout.preferredWidth: 80 }
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
ColumnLayout {
|
|
516
|
+
SplitView.fillWidth: true
|
|
517
|
+
SplitView.minimumWidth: 360
|
|
518
|
+
Label { text: qsTr("Couplings"); font.pixelSize: 18; font.bold: true }
|
|
519
|
+
TextField { placeholderText: qsTr("Filter couplings"); onTextChanged: gca.structuralCouplingsModel.set_filter(text); Layout.fillWidth: true }
|
|
520
|
+
ListView {
|
|
521
|
+
model: gca.structuralCouplingsModel
|
|
522
|
+
clip: true
|
|
523
|
+
Layout.fillWidth: true
|
|
524
|
+
Layout.fillHeight: true
|
|
525
|
+
delegate: Rectangle {
|
|
526
|
+
required property var model
|
|
527
|
+
width: ListView.view.width
|
|
528
|
+
height: 56
|
|
529
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
530
|
+
ColumnLayout {
|
|
531
|
+
anchors.fill: parent
|
|
532
|
+
anchors.margins: 7
|
|
533
|
+
Label { text: model.leftPath || ""; elide: Text.ElideMiddle; Layout.fillWidth: true }
|
|
534
|
+
RowLayout {
|
|
535
|
+
Layout.fillWidth: true
|
|
536
|
+
Label { text: model.rightPath || ""; elide: Text.ElideMiddle; Layout.fillWidth: true }
|
|
537
|
+
Label { text: qsTr("%1 co-changes").arg(model.coChangeCount || 0); Layout.preferredWidth: 110 }
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
Dialog {
|
|
546
|
+
id: structuralPruneConfirm
|
|
547
|
+
title: qsTr("Prune structural baselines")
|
|
548
|
+
standardButtons: Dialog.Ok | Dialog.Cancel
|
|
549
|
+
onAccepted: gca.pruneStructural(structuralKeep.value)
|
|
550
|
+
Label { text: qsTr("Remove rebuildable baselines beyond the selected retention count?"); wrapMode: Text.WordWrap }
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// Assessment
|
|
555
|
+
ScrollView {
|
|
556
|
+
contentWidth: availableWidth
|
|
557
|
+
|
|
558
|
+
ColumnLayout {
|
|
559
|
+
width: parent.width
|
|
560
|
+
spacing: 16
|
|
561
|
+
anchors.margins: 28
|
|
562
|
+
|
|
563
|
+
Label { text: qsTr("Assessment"); font.pixelSize: 24; font.bold: true }
|
|
564
|
+
|
|
565
|
+
GridLayout {
|
|
566
|
+
columns: width < 820 ? 1 : 2
|
|
567
|
+
columnSpacing: 18
|
|
568
|
+
rowSpacing: 12
|
|
569
|
+
Layout.fillWidth: true
|
|
570
|
+
|
|
571
|
+
ColumnLayout {
|
|
572
|
+
Layout.fillWidth: true
|
|
573
|
+
Label { text: qsTr("People (comma separated)") }
|
|
574
|
+
TextField { id: assessPeople; Layout.fillWidth: true }
|
|
575
|
+
}
|
|
576
|
+
ColumnLayout {
|
|
577
|
+
Layout.fillWidth: true
|
|
578
|
+
Label { text: qsTr("Exclude people") }
|
|
579
|
+
TextField { id: assessExclude; Layout.fillWidth: true }
|
|
580
|
+
}
|
|
581
|
+
ColumnLayout {
|
|
582
|
+
Layout.fillWidth: true
|
|
583
|
+
Label { text: qsTr("Since") }
|
|
584
|
+
TextField { id: assessSince; placeholderText: "2026-01-01"; Layout.fillWidth: true }
|
|
585
|
+
}
|
|
586
|
+
ColumnLayout {
|
|
587
|
+
Layout.fillWidth: true
|
|
588
|
+
Label { text: qsTr("Until") }
|
|
589
|
+
TextField { id: assessUntil; placeholderText: "2026-03-31"; Layout.fillWidth: true }
|
|
590
|
+
}
|
|
591
|
+
ColumnLayout {
|
|
592
|
+
Layout.fillWidth: true
|
|
593
|
+
Label { text: qsTr("Period") }
|
|
594
|
+
ComboBox { id: assessPeriod; model: [qsTr("None"), "week", "month", "quarter"]; Layout.fillWidth: true }
|
|
595
|
+
}
|
|
596
|
+
ColumnLayout {
|
|
597
|
+
Layout.fillWidth: true
|
|
598
|
+
Label { text: qsTr("Time basis") }
|
|
599
|
+
ComboBox { id: assessTimeBasis; model: ["authored", "committed", "merged", "landed", "released"]; Layout.fillWidth: true }
|
|
600
|
+
}
|
|
601
|
+
ColumnLayout {
|
|
602
|
+
Layout.fillWidth: true
|
|
603
|
+
Label { text: qsTr("Branch") }
|
|
604
|
+
TextField { id: assessBranch; Layout.fillWidth: true }
|
|
605
|
+
}
|
|
606
|
+
ColumnLayout {
|
|
607
|
+
Layout.fillWidth: true
|
|
608
|
+
Label { text: qsTr("Path scope") }
|
|
609
|
+
TextField { id: assessScope; Layout.fillWidth: true }
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
RowLayout {
|
|
614
|
+
CheckBox { id: assessAll; text: qsTr("All people") }
|
|
615
|
+
CheckBox { id: assessLlm; text: qsTr("Use configured LLM"); checked: true }
|
|
616
|
+
Item { Layout.fillWidth: true }
|
|
617
|
+
Button {
|
|
618
|
+
text: qsTr("Run assessment")
|
|
619
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
620
|
+
onClicked: gca.runAssessment({
|
|
621
|
+
persons: splitValues(assessPeople.text),
|
|
622
|
+
allPeople: assessAll.checked,
|
|
623
|
+
excludePersons: splitValues(assessExclude.text),
|
|
624
|
+
since: assessSince.text,
|
|
625
|
+
until: assessUntil.text,
|
|
626
|
+
period: assessPeriod.currentIndex === 0 ? "" : assessPeriod.currentText,
|
|
627
|
+
branch: assessBranch.text,
|
|
628
|
+
scope: assessScope.text,
|
|
629
|
+
timeBasis: assessTimeBasis.currentText,
|
|
630
|
+
useLlm: assessLlm.checked
|
|
631
|
+
})
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
Rectangle { height: 1; color: palette.midlight; Layout.fillWidth: true }
|
|
636
|
+
|
|
637
|
+
RowLayout {
|
|
638
|
+
spacing: 28
|
|
639
|
+
Label { text: qsTr("Run: %1").arg(gca.currentRunId || "-"); font.bold: true }
|
|
640
|
+
Label { text: qsTr("Completed: %1").arg(gca.completedItems) }
|
|
641
|
+
Label { text: qsTr("Pending: %1").arg(gca.pendingItems) }
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
// Trends
|
|
647
|
+
ColumnLayout {
|
|
648
|
+
spacing: 14
|
|
649
|
+
Layout.margins: 28
|
|
650
|
+
Label { text: qsTr("Trends"); font.pixelSize: 24; font.bold: true }
|
|
651
|
+
Loader {
|
|
652
|
+
active: gca.chartsEnabled
|
|
653
|
+
visible: active
|
|
654
|
+
Layout.fillWidth: true
|
|
655
|
+
Layout.preferredHeight: active ? 280 : 0
|
|
656
|
+
sourceComponent: Component {
|
|
657
|
+
ChartView {
|
|
658
|
+
antialiasing: true
|
|
659
|
+
legend.alignment: Qt.AlignBottom
|
|
660
|
+
backgroundColor: palette.base
|
|
661
|
+
plotAreaColor: palette.base
|
|
662
|
+
|
|
663
|
+
ValueAxis { id: trendXAxis; min: 1; max: 24; tickCount: 7; labelFormat: "%d" }
|
|
664
|
+
ValueAxis { id: trendYAxis; min: 0; max: Math.max(10, gca.completedItems + gca.pendingItems); tickCount: 6 }
|
|
665
|
+
|
|
666
|
+
LineSeries {
|
|
667
|
+
id: completedSeries
|
|
668
|
+
name: qsTr("Completed")
|
|
669
|
+
axisX: trendXAxis
|
|
670
|
+
axisY: trendYAxis
|
|
671
|
+
}
|
|
672
|
+
LineSeries {
|
|
673
|
+
id: pendingSeries
|
|
674
|
+
name: qsTr("Pending")
|
|
675
|
+
axisX: trendXAxis
|
|
676
|
+
axisY: trendYAxis
|
|
677
|
+
}
|
|
678
|
+
VXYModelMapper {
|
|
679
|
+
model: gca.trendsModel
|
|
680
|
+
series: completedSeries
|
|
681
|
+
xColumn: 0
|
|
682
|
+
yColumn: 2
|
|
683
|
+
}
|
|
684
|
+
VXYModelMapper {
|
|
685
|
+
model: gca.trendsModel
|
|
686
|
+
series: pendingSeries
|
|
687
|
+
xColumn: 0
|
|
688
|
+
yColumn: 3
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
ListView {
|
|
694
|
+
model: gca.trendsModel
|
|
695
|
+
clip: true
|
|
696
|
+
Layout.fillWidth: true
|
|
697
|
+
Layout.fillHeight: true
|
|
698
|
+
spacing: 1
|
|
699
|
+
delegate: Rectangle {
|
|
700
|
+
required property var model
|
|
701
|
+
width: ListView.view.width
|
|
702
|
+
height: 48
|
|
703
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
704
|
+
RowLayout {
|
|
705
|
+
anchors.fill: parent
|
|
706
|
+
anchors.margins: 10
|
|
707
|
+
Label { text: model.label || ""; Layout.preferredWidth: 180; font.bold: true }
|
|
708
|
+
Label { text: qsTr("Completed %1").arg(model.completedItems || 0); Layout.fillWidth: true }
|
|
709
|
+
Label { text: qsTr("Pending %1").arg(model.pendingItems || 0); Layout.fillWidth: true }
|
|
710
|
+
Label { text: qsTr("Commits %1").arg(model.commits || 0); Layout.fillWidth: true }
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// People
|
|
717
|
+
ColumnLayout {
|
|
718
|
+
spacing: 14
|
|
719
|
+
Layout.margins: 28
|
|
720
|
+
RowLayout {
|
|
721
|
+
Layout.fillWidth: true
|
|
722
|
+
Label { text: qsTr("People"); font.pixelSize: 24; font.bold: true; Layout.fillWidth: true }
|
|
723
|
+
Button { text: qsTr("Refresh"); onClicked: gca.refreshIdentities() }
|
|
724
|
+
}
|
|
725
|
+
TextField {
|
|
726
|
+
placeholderText: qsTr("Filter people")
|
|
727
|
+
onTextChanged: gca.peopleModel.set_filter(text)
|
|
728
|
+
Layout.fillWidth: true
|
|
729
|
+
}
|
|
730
|
+
ListView {
|
|
731
|
+
model: gca.peopleModel
|
|
732
|
+
clip: true
|
|
733
|
+
Layout.fillWidth: true
|
|
734
|
+
Layout.fillHeight: true
|
|
735
|
+
delegate: Rectangle {
|
|
736
|
+
required property var model
|
|
737
|
+
width: ListView.view.width
|
|
738
|
+
height: 52
|
|
739
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
740
|
+
RowLayout {
|
|
741
|
+
anchors.fill: parent
|
|
742
|
+
anchors.margins: 10
|
|
743
|
+
Label { text: model.name || ""; font.bold: true; Layout.fillWidth: true }
|
|
744
|
+
Label { text: model.email || ""; Layout.fillWidth: true }
|
|
745
|
+
Label { text: model.kind || ""; Layout.preferredWidth: 90 }
|
|
746
|
+
Label { text: model.confirmed ? qsTr("Confirmed") : qsTr("Unresolved"); Layout.preferredWidth: 100 }
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
RowLayout {
|
|
751
|
+
TextField { id: aliasName; placeholderText: qsTr("Alias name"); Layout.fillWidth: true }
|
|
752
|
+
TextField { id: aliasEmail; placeholderText: qsTr("Alias email"); Layout.fillWidth: true }
|
|
753
|
+
TextField { id: personName; placeholderText: qsTr("Person name"); Layout.fillWidth: true }
|
|
754
|
+
TextField { id: personEmail; placeholderText: qsTr("Person email"); Layout.fillWidth: true }
|
|
755
|
+
Button { text: qsTr("Map"); onClicked: gca.mapIdentity(aliasName.text, aliasEmail.text, personName.text, personEmail.text) }
|
|
756
|
+
}
|
|
757
|
+
RowLayout {
|
|
758
|
+
TextField { id: mergeSources; placeholderText: qsTr("Source selectors"); Layout.fillWidth: true }
|
|
759
|
+
TextField { id: mergeTarget; placeholderText: qsTr("Target selector"); Layout.fillWidth: true }
|
|
760
|
+
Button { text: qsTr("Preview merge"); onClicked: gca.mergeIdentities(mergeSources.text, mergeTarget.text, true) }
|
|
761
|
+
Button { text: qsTr("Merge"); onClicked: mergeConfirm.open() }
|
|
762
|
+
}
|
|
763
|
+
RowLayout {
|
|
764
|
+
TextField { id: unmergeId; placeholderText: qsTr("Merge event ID"); Layout.fillWidth: true }
|
|
765
|
+
Button { text: qsTr("Merge history"); onClicked: gca.listIdentityMerges("ALL") }
|
|
766
|
+
Button { text: qsTr("Undo merge"); onClicked: gca.unmergeIdentity(unmergeId.text) }
|
|
767
|
+
}
|
|
768
|
+
Dialog {
|
|
769
|
+
id: mergeConfirm
|
|
770
|
+
title: qsTr("Confirm identity merge")
|
|
771
|
+
standardButtons: Dialog.Ok | Dialog.Cancel
|
|
772
|
+
onAccepted: gca.mergeIdentities(mergeSources.text, mergeTarget.text, false)
|
|
773
|
+
Label { text: qsTr("Merge selected source identities into the target?"); wrapMode: Text.WordWrap }
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// Work items and Evidence
|
|
778
|
+
SplitView {
|
|
779
|
+
orientation: Qt.Horizontal
|
|
780
|
+
|
|
781
|
+
ColumnLayout {
|
|
782
|
+
SplitView.fillWidth: true
|
|
783
|
+
SplitView.minimumWidth: 280
|
|
784
|
+
spacing: 10
|
|
785
|
+
Layout.margins: 20
|
|
786
|
+
Label { text: qsTr("Work items"); font.pixelSize: 22; font.bold: true }
|
|
787
|
+
TextField { placeholderText: qsTr("Filter work items"); onTextChanged: gca.workItemsModel.set_filter(text); Layout.fillWidth: true }
|
|
788
|
+
ListView {
|
|
789
|
+
model: gca.workItemsModel
|
|
790
|
+
clip: true
|
|
791
|
+
Layout.fillWidth: true
|
|
792
|
+
Layout.fillHeight: true
|
|
793
|
+
delegate: ItemDelegate {
|
|
794
|
+
required property var model
|
|
795
|
+
width: ListView.view.width
|
|
796
|
+
text: (model.title || model.id || "") + " " + (model.difficulty || "")
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
ColumnLayout {
|
|
801
|
+
SplitView.fillWidth: true
|
|
802
|
+
SplitView.minimumWidth: 280
|
|
803
|
+
spacing: 10
|
|
804
|
+
Layout.margins: 20
|
|
805
|
+
Label { text: qsTr("Evidence"); font.pixelSize: 22; font.bold: true }
|
|
806
|
+
TextField { placeholderText: qsTr("Filter evidence"); onTextChanged: gca.evidenceModel.set_filter(text); Layout.fillWidth: true }
|
|
807
|
+
ListView {
|
|
808
|
+
model: gca.evidenceModel
|
|
809
|
+
clip: true
|
|
810
|
+
Layout.fillWidth: true
|
|
811
|
+
Layout.fillHeight: true
|
|
812
|
+
delegate: ItemDelegate {
|
|
813
|
+
required property var model
|
|
814
|
+
width: ListView.view.width
|
|
815
|
+
text: (model.id || "") + " " + (model.summary || "")
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
// Runs
|
|
822
|
+
ColumnLayout {
|
|
823
|
+
spacing: 12
|
|
824
|
+
Layout.margins: 28
|
|
825
|
+
RowLayout {
|
|
826
|
+
Layout.fillWidth: true
|
|
827
|
+
Label { text: qsTr("Runs"); font.pixelSize: 24; font.bold: true; Layout.fillWidth: true }
|
|
828
|
+
Button { text: qsTr("Refresh"); onClicked: gca.refreshRuns() }
|
|
829
|
+
}
|
|
830
|
+
TextField { placeholderText: qsTr("Filter runs"); onTextChanged: gca.runsModel.set_filter(text); Layout.fillWidth: true }
|
|
831
|
+
ListView {
|
|
832
|
+
model: gca.runsModel
|
|
833
|
+
clip: true
|
|
834
|
+
Layout.fillWidth: true
|
|
835
|
+
Layout.fillHeight: true
|
|
836
|
+
delegate: Rectangle {
|
|
837
|
+
required property var model
|
|
838
|
+
width: ListView.view.width
|
|
839
|
+
height: 52
|
|
840
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
841
|
+
RowLayout {
|
|
842
|
+
anchors.fill: parent
|
|
843
|
+
anchors.margins: 8
|
|
844
|
+
Label { text: model.id || ""; font.family: "monospace"; Layout.fillWidth: true; elide: Text.ElideRight }
|
|
845
|
+
Label { text: model.runType || ""; Layout.preferredWidth: 180 }
|
|
846
|
+
Label { text: model.status || ""; Layout.preferredWidth: 100 }
|
|
847
|
+
Button { text: qsTr("Open"); enabled: model.status === "COMPLETED" || model.status === "PARTIAL"; onClicked: gca.loadRun(model.id) }
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
RowLayout {
|
|
852
|
+
TextField { id: baseRun; placeholderText: qsTr("Base run ID"); Layout.fillWidth: true }
|
|
853
|
+
TextField { id: targetRun; placeholderText: qsTr("Target run ID"); Layout.fillWidth: true }
|
|
854
|
+
Button { text: qsTr("Compare"); onClicked: gca.compareRuns(baseRun.text, targetRun.text) }
|
|
855
|
+
}
|
|
856
|
+
RowLayout {
|
|
857
|
+
TextField { id: exportId; placeholderText: qsTr("Run ID"); text: gca.currentRunId; Layout.fillWidth: true }
|
|
858
|
+
ComboBox { id: exportType; model: ["html", "markdown", "json", "csv"] }
|
|
859
|
+
Button {
|
|
860
|
+
text: qsTr("Export")
|
|
861
|
+
onClicked: {
|
|
862
|
+
exportRunId = exportId.text
|
|
863
|
+
exportFormat = exportType.currentText
|
|
864
|
+
exportDialog.open()
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
TextArea {
|
|
869
|
+
text: gca.currentReportJson
|
|
870
|
+
readOnly: true
|
|
871
|
+
visible: text.length > 0
|
|
872
|
+
wrapMode: TextEdit.NoWrap
|
|
873
|
+
font.family: "monospace"
|
|
874
|
+
Layout.fillWidth: true
|
|
875
|
+
Layout.preferredHeight: 180
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
// Resume
|
|
880
|
+
ScrollView {
|
|
881
|
+
contentWidth: availableWidth
|
|
882
|
+
ColumnLayout {
|
|
883
|
+
width: parent.width
|
|
884
|
+
spacing: 14
|
|
885
|
+
anchors.margins: 28
|
|
886
|
+
Label { text: qsTr("Resume"); font.pixelSize: 24; font.bold: true }
|
|
887
|
+
GridLayout {
|
|
888
|
+
columns: width < 780 ? 1 : 2
|
|
889
|
+
Layout.fillWidth: true
|
|
890
|
+
ColumnLayout {
|
|
891
|
+
Layout.fillWidth: true
|
|
892
|
+
Label { text: qsTr("Person") }
|
|
893
|
+
TextField { id: resumePerson; Layout.fillWidth: true }
|
|
894
|
+
}
|
|
895
|
+
ColumnLayout {
|
|
896
|
+
Layout.fillWidth: true
|
|
897
|
+
Label { text: qsTr("Target role") }
|
|
898
|
+
TextField { id: resumeRole; Layout.fillWidth: true }
|
|
899
|
+
}
|
|
900
|
+
ColumnLayout {
|
|
901
|
+
Layout.fillWidth: true
|
|
902
|
+
Label { text: qsTr("Since") }
|
|
903
|
+
TextField { id: resumeSince; Layout.fillWidth: true }
|
|
904
|
+
}
|
|
905
|
+
ColumnLayout {
|
|
906
|
+
Layout.fillWidth: true
|
|
907
|
+
Label { text: qsTr("Until") }
|
|
908
|
+
TextField { id: resumeUntil; Layout.fillWidth: true }
|
|
909
|
+
}
|
|
910
|
+
ColumnLayout {
|
|
911
|
+
Layout.fillWidth: true
|
|
912
|
+
Label { text: qsTr("Language") }
|
|
913
|
+
ComboBox { id: resumeLanguage; model: ["zh-CN", "en"]; Layout.fillWidth: true }
|
|
914
|
+
}
|
|
915
|
+
ColumnLayout {
|
|
916
|
+
Layout.fillWidth: true
|
|
917
|
+
Label { text: qsTr("Style") }
|
|
918
|
+
ComboBox { id: resumeStyle; model: ["concise", "star", "xyz"]; Layout.fillWidth: true }
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
RowLayout {
|
|
922
|
+
CheckBox { id: resumePending; text: qsTr("Include pending") }
|
|
923
|
+
CheckBox { id: resumeLlm; text: qsTr("Use configured LLM"); checked: true }
|
|
924
|
+
Item { Layout.fillWidth: true }
|
|
925
|
+
Button {
|
|
926
|
+
text: qsTr("Generate")
|
|
927
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
928
|
+
onClicked: gca.generateResume({
|
|
929
|
+
person: resumePerson.text,
|
|
930
|
+
targetRole: resumeRole.text,
|
|
931
|
+
since: resumeSince.text,
|
|
932
|
+
until: resumeUntil.text,
|
|
933
|
+
language: resumeLanguage.currentText,
|
|
934
|
+
style: resumeStyle.currentText,
|
|
935
|
+
includePending: resumePending.checked,
|
|
936
|
+
useLlm: resumeLlm.checked
|
|
937
|
+
})
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
TextArea {
|
|
941
|
+
text: gca.currentReportJson
|
|
942
|
+
readOnly: true
|
|
943
|
+
wrapMode: TextEdit.Wrap
|
|
944
|
+
font.family: "monospace"
|
|
945
|
+
Layout.fillWidth: true
|
|
946
|
+
Layout.preferredHeight: 360
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// Recap & Brag Document
|
|
952
|
+
ScrollView {
|
|
953
|
+
contentWidth: availableWidth
|
|
954
|
+
ColumnLayout {
|
|
955
|
+
width: parent.width
|
|
956
|
+
spacing: 14
|
|
957
|
+
anchors.margins: 28
|
|
958
|
+
Label { text: qsTr("Recap & Brag Document"); font.pixelSize: 24; font.bold: true }
|
|
959
|
+
GridLayout {
|
|
960
|
+
columns: width < 780 ? 1 : 2
|
|
961
|
+
Layout.fillWidth: true
|
|
962
|
+
ColumnLayout {
|
|
963
|
+
Layout.fillWidth: true
|
|
964
|
+
Label { text: qsTr("Person (blank = local git user)") }
|
|
965
|
+
TextField { id: recapPerson; Layout.fillWidth: true }
|
|
966
|
+
}
|
|
967
|
+
ColumnLayout {
|
|
968
|
+
Layout.fillWidth: true
|
|
969
|
+
Label { text: qsTr("Recap window") }
|
|
970
|
+
ComboBox {
|
|
971
|
+
id: recapWindow
|
|
972
|
+
model: ["today", "yesterday", "7d", "14d", "30d", "week", "month", "quarter"]
|
|
973
|
+
currentIndex: 2
|
|
974
|
+
Layout.fillWidth: true
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
ColumnLayout {
|
|
978
|
+
Layout.fillWidth: true
|
|
979
|
+
Label { text: qsTr("Brag year / quarter (e.g. 2026 or 2026-Q3)") }
|
|
980
|
+
TextField { id: bragPeriodInput; placeholderText: "2026"; Layout.fillWidth: true }
|
|
981
|
+
}
|
|
982
|
+
ColumnLayout {
|
|
983
|
+
Layout.fillWidth: true
|
|
984
|
+
Label { text: qsTr("Language") }
|
|
985
|
+
ComboBox { id: recapLanguage; model: ["zh-CN", "en-US"]; Layout.fillWidth: true }
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
RowLayout {
|
|
989
|
+
CheckBox { id: recapOpenHtml; text: qsTr("Export & open interactive HTML"); checked: true }
|
|
990
|
+
Item { Layout.fillWidth: true }
|
|
991
|
+
Button {
|
|
992
|
+
text: qsTr("Generate Recap")
|
|
993
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
994
|
+
onClicked: gca.generateRecap({
|
|
995
|
+
person: recapPerson.text,
|
|
996
|
+
window: recapWindow.currentText,
|
|
997
|
+
language: recapLanguage.currentText,
|
|
998
|
+
exportHtml: recapOpenHtml.checked,
|
|
999
|
+
openHtml: recapOpenHtml.checked
|
|
1000
|
+
})
|
|
1001
|
+
}
|
|
1002
|
+
Button {
|
|
1003
|
+
text: qsTr("Generate Brag Doc")
|
|
1004
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
1005
|
+
onClicked: {
|
|
1006
|
+
var pText = bragPeriodInput.text.trim()
|
|
1007
|
+
var isQuarter = pText.indexOf("-Q") !== -1 || pText.indexOf("-q") !== -1
|
|
1008
|
+
gca.generateBrag({
|
|
1009
|
+
person: recapPerson.text,
|
|
1010
|
+
year: isQuarter ? "" : pText,
|
|
1011
|
+
quarter: isQuarter ? pText : "",
|
|
1012
|
+
language: recapLanguage.currentText,
|
|
1013
|
+
exportHtml: recapOpenHtml.checked,
|
|
1014
|
+
openHtml: recapOpenHtml.checked
|
|
1015
|
+
})
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
Button {
|
|
1019
|
+
text: qsTr("Open Last HTML")
|
|
1020
|
+
enabled: gca.lastHtmlReportPath.length > 0
|
|
1021
|
+
onClicked: gca.openLocalReport(gca.lastHtmlReportPath)
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
TextArea {
|
|
1025
|
+
text: gca.recapMarkdown
|
|
1026
|
+
readOnly: true
|
|
1027
|
+
wrapMode: TextEdit.Wrap
|
|
1028
|
+
font.family: "monospace"
|
|
1029
|
+
Layout.fillWidth: true
|
|
1030
|
+
Layout.preferredHeight: 380
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// Outcomes Ledger
|
|
1036
|
+
ColumnLayout {
|
|
1037
|
+
spacing: 14
|
|
1038
|
+
Layout.margins: 28
|
|
1039
|
+
RowLayout {
|
|
1040
|
+
Layout.fillWidth: true
|
|
1041
|
+
Label { text: qsTr("Verified Outcomes Ledger"); font.pixelSize: 24; font.bold: true; Layout.fillWidth: true }
|
|
1042
|
+
Button { text: qsTr("Refresh"); enabled: gca.workspaceInitialized; onClicked: gca.refreshOutcomes() }
|
|
1043
|
+
}
|
|
1044
|
+
GridLayout {
|
|
1045
|
+
columns: width < 780 ? 1 : 2
|
|
1046
|
+
Layout.fillWidth: true
|
|
1047
|
+
TextField { id: outcomeText; placeholderText: qsTr("Verified metric / outcome text"); Layout.fillWidth: true }
|
|
1048
|
+
TextField { id: outcomeSource; placeholderText: qsTr("Source document (e.g. benchmark-2026.md)"); Layout.fillWidth: true }
|
|
1049
|
+
TextField { id: outcomeVerifier; placeholderText: qsTr("Verified by (e.g. tech-lead)"); Layout.fillWidth: true }
|
|
1050
|
+
TextField { id: outcomeEvidence; placeholderText: qsTr("Evidence IDs (comma-separated EV-xxx)"); Layout.fillWidth: true }
|
|
1051
|
+
}
|
|
1052
|
+
RowLayout {
|
|
1053
|
+
CheckBox { id: outcomeVerifyEv; text: qsTr("Verify evidence IDs exist"); checked: true }
|
|
1054
|
+
Item { Layout.fillWidth: true }
|
|
1055
|
+
Button {
|
|
1056
|
+
text: qsTr("Add Outcome")
|
|
1057
|
+
enabled: gca.workspaceInitialized && !gca.busy
|
|
1058
|
+
onClicked: gca.addOutcome({
|
|
1059
|
+
text: outcomeText.text,
|
|
1060
|
+
source: outcomeSource.text,
|
|
1061
|
+
verifiedBy: outcomeVerifier.text,
|
|
1062
|
+
evidenceIds: outcomeEvidence.text,
|
|
1063
|
+
verifyEvidence: outcomeVerifyEv.checked
|
|
1064
|
+
})
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
ListView {
|
|
1068
|
+
model: gca.outcomesModel
|
|
1069
|
+
clip: true
|
|
1070
|
+
Layout.fillWidth: true
|
|
1071
|
+
Layout.fillHeight: true
|
|
1072
|
+
delegate: Rectangle {
|
|
1073
|
+
required property var model
|
|
1074
|
+
width: ListView.view.width
|
|
1075
|
+
height: 54
|
|
1076
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
1077
|
+
RowLayout {
|
|
1078
|
+
anchors.fill: parent
|
|
1079
|
+
anchors.margins: 8
|
|
1080
|
+
Label { text: model.id || ""; font.bold: true; Layout.preferredWidth: 80 }
|
|
1081
|
+
Label { text: model.text || ""; elide: Text.ElideRight; Layout.fillWidth: true }
|
|
1082
|
+
Label { text: model.evidenceSummary || ""; color: palette.mid; Layout.preferredWidth: 150; elide: Text.ElideRight }
|
|
1083
|
+
Button { text: qsTr("Remove"); onClicked: gca.removeOutcome(model.id || "") }
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
// Settings / Providers
|
|
1090
|
+
ColumnLayout {
|
|
1091
|
+
spacing: 14
|
|
1092
|
+
Layout.margins: 28
|
|
1093
|
+
RowLayout {
|
|
1094
|
+
Layout.fillWidth: true
|
|
1095
|
+
Label { text: qsTr("Providers"); font.pixelSize: 24; font.bold: true; Layout.fillWidth: true }
|
|
1096
|
+
Button { text: qsTr("Refresh"); onClicked: gca.refreshProviders() }
|
|
1097
|
+
Button { text: qsTr("Test selected"); onClicked: gca.testProvider() }
|
|
1098
|
+
}
|
|
1099
|
+
ListView {
|
|
1100
|
+
model: gca.providersModel
|
|
1101
|
+
clip: true
|
|
1102
|
+
Layout.fillWidth: true
|
|
1103
|
+
Layout.preferredHeight: 280
|
|
1104
|
+
delegate: Rectangle {
|
|
1105
|
+
required property var model
|
|
1106
|
+
width: ListView.view.width
|
|
1107
|
+
height: 48
|
|
1108
|
+
color: index % 2 ? palette.alternateBase : palette.base
|
|
1109
|
+
RowLayout {
|
|
1110
|
+
anchors.fill: parent
|
|
1111
|
+
anchors.margins: 10
|
|
1112
|
+
Label { text: model.id || ""; font.bold: true; Layout.fillWidth: true }
|
|
1113
|
+
Label { text: model.selected ? qsTr("Selected") : qsTr("Available"); Layout.preferredWidth: 100 }
|
|
1114
|
+
Label { text: model.localExecution ? qsTr("Local") : qsTr("Remote"); Layout.preferredWidth: 90 }
|
|
1115
|
+
Label { text: model.requiresApiKey ? qsTr("API key required") : qsTr("No API key"); Layout.preferredWidth: 130 }
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
Rectangle { height: 1; color: palette.midlight; Layout.fillWidth: true }
|
|
1120
|
+
Label { text: qsTr("Recent repositories"); font.pixelSize: 18; font.bold: true }
|
|
1121
|
+
Repeater {
|
|
1122
|
+
model: gca.recentRepositories
|
|
1123
|
+
delegate: Label { required property string modelData; text: modelData; elide: Text.ElideMiddle; Layout.fillWidth: true }
|
|
1124
|
+
}
|
|
1125
|
+
Button { text: qsTr("Clear recent repositories"); onClicked: gca.clearRecentRepositories(); Layout.alignment: Qt.AlignLeft }
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
Label {
|
|
1130
|
+
visible: transientMessage.length > 0
|
|
1131
|
+
text: transientMessage
|
|
1132
|
+
color: palette.highlightedText
|
|
1133
|
+
background: Rectangle { color: palette.highlight; radius: 4 }
|
|
1134
|
+
padding: 10
|
|
1135
|
+
Layout.alignment: Qt.AlignHCenter
|
|
1136
|
+
Layout.bottomMargin: 10
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|