aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/assistant/AssistantPage.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-12-04 12:59:53 +0100
committerDanilo M. <danix@danix.xyz>2026-12-04 12:59:53 +0100
commita9a5ebd78ef4d975fe4cce817ea7c6948588b732 (patch)
treebdbfd6d36d6535d4d328977b89edc21c9d70cc6d /desktop/modules/assistant/AssistantPage.qml
parentfeda206462824b52adad1fff83b04599c3076509 (diff)
downloadquickshell-a9a5ebd78ef4d975fe4cce817ea7c6948588b732.tar.gz
quickshell-a9a5ebd78ef4d975fe4cce817ea7c6948588b732.zip
feat(assistant): Memory section, git status and commit-and-pushHEADmaster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/assistant/AssistantPage.qml')
-rw-r--r--desktop/modules/assistant/AssistantPage.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/desktop/modules/assistant/AssistantPage.qml b/desktop/modules/assistant/AssistantPage.qml
index 7691cb5..ab913ba 100644
--- a/desktop/modules/assistant/AssistantPage.qml
+++ b/desktop/modules/assistant/AssistantPage.qml
@@ -674,6 +674,31 @@ Column {
}
}
+ // --- memory ---
+
+ Heading { text: "Memory" }
+ Small {
+ readonly property var m: page.asst.memory
+ width: page.width
+ wrapMode: Text.Wrap
+ text: !m.repo ? "The memory folder is not a git repo yet (memory spec, setup)."
+ : (m.last_commit ? "Last commit " + new Date(m.last_commit * 1000).toLocaleString(Qt.locale(), Locale.ShortFormat)
+ : "No commits yet")
+ + (m.dirty ? ", uncommitted changes" : "")
+ }
+ Small {
+ width: page.width
+ visible: !!page.asst.memory.push_error
+ wrapMode: Text.Wrap
+ text: "Push failed: " + (page.asst.memory.push_error ?? "")
+ color: Theme.red
+ }
+ Row {
+ spacing: 6
+ Button { text: "Commit and push now"; enabled: !!page.asst.memory.repo; onClicked: page.asst.memorySync() }
+ Button { text: "Open in Typora"; enabled: !!page.asst.memory.dir; onClicked: page.asst.openMemory() }
+ }
+
// --- tools ---
Heading { text: "Tools" }