Commit Graph

969 Commits

Author SHA1 Message Date
Jakub Zych
c05ad09dc2 docs(planning): commit accumulated workflow artifacts 2026-10-06 22:31:37 +02:00
Jakub Zych
fdee6b626e docs(quick-261006-tnp): add mltextarea field type v0.1.6 2026-10-06 21:38:08 +02:00
Jakub Zych
aa3a7c2e90 docs(cabana): document mltextarea field type
- forms.md: field-types row, ML section and example, lift paragraph,
  preset refusal
- admin-controllers.md and the cabana README name mltextarea
2026-10-06 21:37:08 +02:00
Jakub Zych
a913eec50f feat(admin): render mltextarea fields per locale
- MLField.vue is the one locale-switching wrapper; MLTextField,
  MLMarkdownField and the new MLTextareaField are shells around it
- isMLFieldType replaces the inline ML type-name checks in formState,
  FormView and RelationChildModal
- register mltextarea as a group-labelled control; rebuild dist
2026-10-06 21:36:04 +02:00
Jakub Zych
3596df4ff5 feat(cabana): add mltextarea field type
- mltextarea compiles (with size), binds as a writable scalar and goes
  through the mltext lift, translation write and hydrate paths
- preset on or from an mltextarea field stays refused
- tests: compile, Postgres round trip over a nullable host column with
  multi-line text, invalid locale maps, preset refusals
2026-10-06 21:30:56 +02:00
Jakub Zych
673c6ca82c docs(quick-261006-t5r): preset on mltext fields 2026-10-06 21:21:15 +02:00
Jakub Zych
5932172148 docs(cabana): document preset on mltext fields
- schema_types.go and the form-schema swag description name text or mltext
- regenerated admin/openapi/admin.json and admin/src/api/schema.d.ts
- README and docs/backend/forms.md describe the per-locale rules
2026-10-06 21:20:25 +02:00
Jakub Zych
b5d850662c feat(admin): follow presets on mltext fields per locale
- formState: changedLocales and presetUpdates hold the preset-follow rules
  for text and mltext pairs
- FormView applies presetUpdates on create, tracks per-locale hand edits of
  ML fields and follows the active ML locale
- rebuilt modules/boardwalk/dist
2026-10-06 21:18:09 +02:00
Jakub Zych
7afad732c7 feat(cabana): accept preset on mltext fields
- compilePresetKey admits a text or mltext target
- checkPresets admits a text or mltext source
- TestPresetML pins every text/mltext pairing and the refusals
2026-10-06 21:09:48 +02:00
Jakub Zych
7e2b1a909b docs(quick-261006-sne): markdown preview via sanitized RenderMarkdown 2026-10-06 20:59:43 +02:00
Jakub Zych
27711b7c21 chore(scripts): allow the sanitized markdown preview binding in raw-HTML gates
- check-phase10, 12.1, 12.2 and 14.2.1 drop only the exact
  MarkdownField.vue line binding sanitizedHtml (server-rendered by
  cabana.RenderMarkdown); every other raw-HTML sink is still refused
2026-10-06 20:58:45 +02:00
Jakub Zych
a0116dfbb9 fix(admin): render markdown preview from server-sanitized HTML
- MarkdownField posts the source to POST /markdown/preview when Preview
  opens and again 300 ms after a change while open; stale answers dropped
- the pane binds only data.html of a 2xx answer; a refusal is a text notice
- mlmarkdown previews the active locale and follows a locale switch
- .summer-markdown style kit restores headings, lists, code and tables
- vitest coverage, forms.md and rebuilt modules/boardwalk/dist
2026-10-06 20:57:51 +02:00
Jakub Zych
b492e79f2b feat(cabana): add markdown preview admin route
- POST {prefix}/api/v1/markdown/preview renders {markdown} through
  cabana.RenderMarkdown in the backend-guarded group behind requireAjax
- refused output is a 422 validation_failed on markdown with a fixed message
- swag annotation, regenerated admin.json and schema.d.ts
- route inventories, CSRF walk (26) and OpenAPI conformance learn the route
- README and docs/backend/forms.md document the route
2026-10-06 20:53:07 +02:00
Jakub Zych
0ff928d6cf docs(quick-261006-seq): fix nullable pointer scalars in cabana ML fields 2026-10-06 20:37:37 +02:00
Jakub Zych
4f7e69fd2b test(cabana): cover pointer scalars in ML host hydration
- table-driven hostScalarString cases for nil and live pointers to string, ints, uint, float, bool, []byte, named string and double pointers
- DB-free hydrateMLRecord cases for nil, empty and filled *string hosts
2026-10-06 20:36:59 +02:00
Jakub Zych
90b87d6363 fix(cabana): dereference nullable pointer scalars in ML host hydration
- hostScalarString walks pointers via reflect; nil at any depth is ""
- string kinds return raw text, byte slices decode, other kinds format the dereferenced value
- Postgres round-trip regression for an mltext field on a *string column
2026-10-06 20:35:10 +02:00
Jakub Zych
8e22e5f25b docs(quick-261006-s0v): remove ML copy-from locale UI 2026-10-06 20:13:20 +02:00
Jakub Zych
2f03128a58 fix(admin): drop ML copy-from locale chrome (quick-261006-s0v)
Copy overwrote the active locale with the other locale's often-empty string, so the editor went blank. Keep a single synchronized locale picker.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 20:12:47 +02:00
Jakub Zych
ba4427360b test(15): persist human verification items as UAT 2026-10-06 19:30:42 +02:00
Jakub Zych
b409f2ceb0 docs(15): add phase verification report 2026-10-06 19:30:41 +02:00
Jakub Zych
570be0a493 docs(15): record code review disposition 2026-10-06 19:29:25 +02:00
Jakub Zych
7c4fca92ec docs(15): add code review report 2026-10-06 19:28:21 +02:00
Jakub Zych
b697a677e6 docs(15-04): complete journal tests, gate, and ASVS review plan
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 19:23:19 +02:00
Jakub Zych
7307b36baa test(15-04): add fail-closed Phase 15 gate and ASVS L1 review
scripts/check-phase15.sh --all refuses skip/no-tests/race/dirty PHP pin; the review closes T-15-01..15 and T-15-SC with executed TestNames.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 19:22:19 +02:00
Jakub Zych
05b77b7818 docs(15-03): summarize journal public API, writes, media, and Typesense gate
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 19:06:12 +02:00
Jakub Zych
db6243c8c2 docs(15-02): record journal admin plan progress in STATE and ROADMAP
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 18:49:33 +02:00
Jakub Zych
685837a3c8 docs(15-02): complete journal admin YAML and import/export plan
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 18:49:08 +02:00
Jakub Zych
8d7979f87e docs(15-01): record journal plan progress in STATE and ROADMAP
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 18:30:56 +02:00
Jakub Zych
90b946db40 docs(15-01): complete journal plugin clone and schema plan
Tasks completed: 3/3
- Clone plugin, translatable Post tracer, three-plugin host boot
- Categories, tags, pivots, settings, author slug
- en/pl phrasebooks, README, host CORS

SUMMARY: .planning/phases/15-journal-plugin/15-01-SUMMARY.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 18:30:20 +02:00
Jakub Zych
a28bb1e4ec docs(15): create phase plan 2026-10-06 18:02:17 +02:00
Jakub Zych
d9f0f47e47 docs(phase-15): add validation strategy 2026-10-06 17:31:45 +02:00
Jakub Zych
2cf28f72bf docs(15): add journal plugin research 2026-10-06 17:31:45 +02:00
Jakub Zych
a46f46b3ac test(14.2.1): persist human verification items as UAT 2026-10-06 16:40:27 +02:00
Jakub Zych
089bf73516 docs(14.2.1): re-verify after CR-01 and WR-02 gap closure
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:40:06 +02:00
Jakub Zych
19f2e27500 docs(14.2.1): record code review disposition after gap closure 2026-10-06 16:36:35 +02:00
Jakub Zych
5b1d8b01fb docs(14.2.1): code review after gap closure
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:36:03 +02:00
Jakub Zych
9a7c15608c docs(14.2.1-06): complete lift ML maps on relation-child saves plan
Record WR-02 close-out, D-06/D-17 coverage, and last-plan gate evidence for phase verification.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:30:03 +02:00
Jakub Zych
ef03016314 test(14.2.1-06): land remaining named tests and phase gate
WR-02 proofs and T-14.2.1-19..23 must fail the phase closed if hydration or child locale validation is removed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:28:29 +02:00
Jakub Zych
4e37d877f1 feat(14.2.1-06): hydrate relation-child update and show ML maps
UpdateChild and ShowChild now lift, apply, and hydrate nested locales the same way as host CRUD, so a child form keeps English on the column and Polish through the writer.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 15:53:24 +02:00
Jakub Zych
88a3a88876 feat(14.2.1-06): persist nested ML maps on relation-child create
RelationService looks up TranslationWriter like CRUDService so CreateChild can lift locale maps before fillChild, write Polish after the child PK, and return a hydrated title map.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 15:51:38 +02:00
Jakub Zych
f4bea33faf docs(14.2.1-05): complete hydrate enabled locales on admin ML forms plan 2026-10-06 15:44:58 +02:00
Jakub Zych
424fe9ccc0 feat(14.2.1-05): cover mlmarkdown, child adopt, and regen admin artifacts
MLMarkdownField and relation-child forms share the enabled-locale
inject and adopt merge; OpenAPI, types, docs, and boardwalk dist match.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 15:41:46 +02:00
Jakub Zych
0f8d13738d feat(14.2.1-05): hydrate ML create/GET/save through TranslatedExact
Form schema meta lists enabled locales, Show/save expand mltext maps
without D-11 fallback, and the SPA seeds and adopt-merges every locale.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 15:37:00 +02:00
Jakub Zych
ed81f2a0c1 docs(14.2.1): create phase plan 2026-10-06 15:19:22 +02:00
Jakub Zych
249b4d10ca docs(14.2.1-04): complete translate tests, gate, and security review
Record the last-plan SUMMARY, closed high-threat review, validation sign-off, and 4/4 roadmap progress.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 14:23:06 +02:00
Jakub Zych
ba6e4369f6 test(14.2.1-04): add fail-closed check-phase14.2.1.sh
Require named PASS lines, real Postgres, sibling go -C, and a closed high-threat review before the phase gate can pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 14:21:56 +02:00
Jakub Zych
1bc6200dbd test(14.2.1-04): add ML, markdown, resolver, and SPA test matrices
Prove nested ML writes, unsafe markdown rejection, request-locale isolation, and generated FormView types.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 14:02:49 +02:00
Jakub Zych
c7e2e4b4ed docs(14.2.1-03): complete cabana ML fields and proof-host boot plan
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 13:30:18 +02:00
Jakub Zych
e3b3475b1c feat(14.2.1-03): document ML fields and regenerate admin artifacts
- Document markdown, mltext, and mlmarkdown plus TranslationWriter save semantics
- Extend the SPA registry tests and rebuild committed boardwalk dist

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 13:29:00 +02:00
Jakub Zych
a04116d41f feat(14.2.1-03): add markdown and multilingual cabana fields
Lift locale maps before ProjectWritableFields so a Journal-shaped save can persist the default host scalar and non-default locales through TranslationWriter without dropping nested JSON.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 12:32:54 +02:00