WIP: form attachments — agent guide, skills, seed template, changelog

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 16:32:45 +01:00
co-authored by Claude Fable 5.2
parent 344574d6bd
commit b7fb1b0e31
8 changed files with 140 additions and 15 deletions
+12 -10
View File
@@ -1,10 +1,12 @@
# Form attachments — design proposal (revision 2: e-mail only)
> **Status:** proposal, nothing built. Branch `claude/form-attachments-9694cb`, cut from `755f510` (v1.15.5).
> **Status: built.** This is the design record (revision 2, e-mail only). The owner's decisions on §10:
> (1) build the Microsoft Graph large-file upload, (2) the visitor sees an error when the e-mail fails, (3) allow
> legacy `.doc` / `.xls` and refuse macros. What shipped and how to use it: [forms.md](../forms.md) "Files" and
> [email.md](../email.md) "Attachments" — where this record and those pages differ, the pages are right.
> **Request:** `vanstevpl-web/docs/plugin-requests/2026-11-13-candidate-form-attachments.md`.
> **Owner's decision (2026-11-13), which replaces the storage part of that request and of revision 1:**
> "files are not stored at all. just send on e-mail. up to 10MB, filetypes, add security wall."
> **Next step:** the owner answers the three decisions in §10; the build follows §11.
> **Owner's decision (2026-11-13):** "files are not stored at all. just send on e-mail. up to 10MB, filetypes,
> add security wall."
## 1. Summary
@@ -220,9 +222,9 @@ notice fails too, and the panel is the record.
| `label` | text, localized | — | Label / Etykieta |
| `help` | text, localized | — | Help text / Tekst pomocy — "Shown under the field, e.g. accepted types and size." |
| `width`, `required` | as other blocks | | |
| `allowedTypes` | select, many | PDF, DOC, DOCX | Allowed file types / Dozwolone typy plików |
| `allowedTypes` | select, many | PDF, DOC, DOCX | Allowed file types / `Dozwolone typy plików` |
| `maxSizeMB` | number, 1…cap | 10 | Maximum size (MB) / Maksymalny rozmiar (MB) |
| `maxFiles` | number, 1…cap | 1 | Maximum files / Maksymalna liczba plików |
| `maxFiles` | number, 1…cap | 1 | Maximum files / `Maksymalna liczba plików` |
| `showWhen` | as other blocks | | |
Block name: **File / Plik**. `forms.fields.file: false` hides it; `forms.fields.file: <Block>` replaces it;
@@ -251,11 +253,11 @@ any field. `RenderForm` needs no new prop; a hand-built form on the hook gets th
| Key | English default | Polish default |
|---|---|---|
| `fileTooLarge` | "{file}" is too large. The limit is {max} MB. | Plik „{file}” jest za duży. Limit to {max} MB. |
| `fileTooLarge` | "{file}" is too large. The limit is {max} MB. | `Plik „{file}” jest za duży. Limit to {max} MB.` |
| `fileType` | "{file}" is not an accepted file type. Accepted: {types}. | Plik „{file}” ma niedozwolony typ. Dozwolone: {types}. |
| `fileCount` | Attach at most {max} files in "{field}". | W polu „{field}” można dodać najwyżej {max} plików. |
| `fileNotSent` | We could not send your file. Try again, or send it by e-mail. | Nie udało się wysłać pliku. Spróbuj ponownie lub wyślij go e-mailem. |
| `fileRemove` | Remove {file} | Usuń {file} |
| `fileCount` | Attach at most {max} files in "{field}". | `W polu „{field}” można dodać najwyżej {max} plików.` |
| `fileNotSent` | We could not send your file. Try again, or send it by e-mail. | `Nie udało się wysłać pliku. Spróbuj ponownie lub wyślij go e-mailem.` |
| `fileRemove` | Remove {file} | `Usuń {file}` |
## 8. What the submission keeps, and GDPR