RichText authored in the admin panel was rendered as plain text on the public site: headings/lists/quotes were flattened by Tailwind preflight (no @tailwindcss/typography installed), and Payload's default JSX converter ignored text colours. - src/lib/lexical: shared editor factory (ptfLexicalEditor) + shared colour palette (textState) + colour converter (richTextConverters) - RichTextView: canonical .lexical-content renderer (colour-aware), swapped into every frontend render site - All rich-text editors route through the factory, so every field inherits the coloured editor (incl. the previously-unedited ones) - .lexical-content CSS extended with checklist/table/heading rules, wrapped in @layer components so per-page utilities still override; dropped the now-dead per-page prose hacks - Remove the now-dead briefingConverters in favour of the shared converter; add tests/int/rich-text-view.int.spec.ts |
||
|---|---|---|
| .. | ||
| audit | ||
| e2e | ||
| fixtures | ||
| helpers | ||
| int | ||
| push-schema.ts | ||
| seed-baseline.ts | ||
| test-db.ts | ||
| vitest-global.ts | ||
| vitest-marker.ts | ||
| vitest-reporter.ts | ||
| vitest-teardown.ts | ||
| vitest-worker-setup.ts | ||