diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a576d4..affeef2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project are documented here. Versions are git tags; release tags `X.Y.Z` are built and deployed automatically (pre-release tags such as `0.0.0a1` are built and staged only). +## [0.0.4] - 2026-06-20 + +### Changed +- AI tab: correction notes are now full-width, wrapping, auto-growing textareas + (Save/Delete per note) instead of single-line inputs that truncated long notes, + so the whole note is readable and editable. + ## [0.0.3] - 2026-06-20 ### Added diff --git a/internal/web/static/style.css b/internal/web/static/style.css index 503c975..d03b424 100644 --- a/internal/web/static/style.css +++ b/internal/web/static/style.css @@ -202,7 +202,22 @@ form.row { form.row input { flex: 1; padding: .4rem; } form.row button { padding: .4rem .7rem; } .add input { border: 1px solid #137333; } -form.row button.danger { background: #fce8e6; border: 1px solid #d93025; color: #a50e0e; } +button.danger { background: #fce8e6; border: 1px solid #d93025; color: #a50e0e; } + +/* AI correction notes: full-width, wrapping, auto-growing editors. */ +form.note { margin: .75rem 0 1rem; } +form.note textarea { + width: 100%; + box-sizing: border-box; + font: inherit; + padding: .5rem; + resize: vertical; + min-height: 3rem; + overflow: hidden; +} +form.note.add textarea { border: 1px solid #137333; } +form.note .note-actions { display: flex; gap: .4rem; margin-top: .35rem; } +form.note .note-actions button { padding: .4rem .9rem; } /* AI tab: read-only prompt + miss-review table. */ pre.prompt { diff --git a/internal/web/templates/ai.html b/internal/web/templates/ai.html index 1f700e8..cf4ff9e 100644 --- a/internal/web/templates/ai.html +++ b/internal/web/templates/ai.html @@ -10,18 +10,29 @@

Correction notes

Free-text rules appended to the classifier prompt to fix recurring misreads. Editing a note keeps the old version in history.

{{range .Notes}} -
+ - - - + +
+ + +
{{end}} -
- - + + +
+ +

Review misreads {{if .Misses}}({{len .Misses}}){{end}}

{{if not .Misses}}

No misreads to review — the AI matched what you submitted (or nothing has been classified yet).