feat(board): support natural-week SQL templates and harden prompt

This commit is contained in:
JSR
2026-03-24 18:11:41 +08:00
parent 5a350bee47
commit 4aedc89d6e
4 changed files with 109 additions and 2 deletions
+1 -1
View File
@@ -618,7 +618,7 @@
"todayAnswered": "Today"
},
"sqlPlaceholder": "Enter SQL (single SELECT / WITH query only)",
"templateHint": "Template variables: {{today_start}}, {{since_7d}}, {{since_30d}}, {{now}}",
"templateHint": "Template variables: {{today_start}}, {{this_week_start}}, {{last_week_start}}, {{since_7d}}, {{since_30d}}, {{now}}",
"templateDescription": "Use template variables directly in SQL. They will be replaced with ISO timestamps at runtime for both SQLite and PostgreSQL.",
"saving": "Saving...",
"saveFailed": "Failed to save boards",
+1 -1
View File
@@ -618,7 +618,7 @@
"todayAnswered": "今日回答"
},
"sqlPlaceholder": "输入 SQL(仅支持单条 SELECT / WITH 查询)",
"templateHint": "支持时间模板变量:{{today_start}}、{{since_7d}}、{{since_30d}}、{{now}}",
"templateHint": "支持时间模板变量:{{today_start}}、{{this_week_start}}、{{last_week_start}}、{{since_7d}}、{{since_30d}}、{{now}}",
"templateDescription": "可直接在 SQL 中使用模板变量,运行时会自动替换为 ISO 时间,兼容 SQLite 与 PostgreSQL。",
"saving": "保存中...",
"saveFailed": "保存看板失败",