Refactor task audits, integrate OpenClaw, and fix timezone handling

This commit is contained in:
NPS Agent
2026-05-21 11:33:32 +09:30
parent a9494742bd
commit 98cf813f00
5 changed files with 60 additions and 13 deletions
+3 -7
View File
@@ -103,7 +103,8 @@ function App() {
React.useEffect(() => {
window.dbUsers = dbUsers;
}, [dbUsers]);
window.workspace = workspace;
}, [dbUsers, workspace]);
React.useEffect(() => {
const handleKeyDown = (e) => {
@@ -172,15 +173,10 @@ function App() {
const addTask = async ({ title, description, assignee, priority }) => {
try {
const t = await api.createTask({
await api.createTask({
title, description, assignee_id: assignee, priority,
added_by: meId, source: 'manual', status: 'open', tags: []
});
await api.addAudit({
actor: meId, action: 'task_created',
summary: 'Created task "' + title + '" for ' + (merge(assignee)||{}).name,
target: t.id
});
setAdding(null);
} catch(e) {
console.error(e);