Private
Public Access
1
0

Auto-reload transactions after AI makes changes

When the AI updates a category (or any tool result), the transactions
page now automatically reloads. ChatPanel triggers a refresh counter
in the usePageContext composable when the response includes a tool
result, and TransactionsView watches that counter to reload data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-13 14:07:09 -05:00
parent 401147009a
commit 0ad8e472f7
3 changed files with 17 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import { ref } from 'vue'
const pageContext = ref('')
const refreshTrigger = ref(0)
export function usePageContext() {
function setPageContext(context: string) {
@@ -11,5 +12,9 @@ export function usePageContext() {
pageContext.value = ''
}
return { pageContext, setPageContext, clearPageContext }
function triggerRefresh() {
refreshTrigger.value++
}
return { pageContext, setPageContext, clearPageContext, refreshTrigger, triggerRefresh }
}