frontend: dismissible chat error alert + compact import card

- the inline chat error now has an X to dismiss it, and is the single surface
  for errors (dropped the duplicate toast) so failures show once and clearly
- the import preview card caps the skipped-rows list (scrolls, one line each
  with a "+N more" tail) so a file full of validation errors no longer renders
  a giant card

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-06-14 19:43:55 +03:00
parent db20359b25
commit 9eb6353e00
3 changed files with 41 additions and 24 deletions
@@ -745,6 +745,7 @@
"skipped": "Skipped",
"total": "Parsed",
"row": "Row {{index}}",
"more": "+{{count}} more",
"approve": "Import {{count}} record(s)",
"approve_one": "Import 1 record",
"reject": "Discard",
@@ -758,7 +759,8 @@
},
"error": {
"title": "AI request failed",
"body": "Something went wrong reaching the AI. Check your provider and API key in Settings → AI."
"body": "Something went wrong reaching the AI. Check your provider and API key in Settings → AI.",
"dismiss": "Dismiss"
}
},
"patientCard": {