1
0
Fork 0
polaris-task-force/src/collections/story
Z8MB1E 34c0d5681f fix(rich-text): render full lexical formatting incl. colours across all fields
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
2026-11-18 13:10:26 -05:00
..
Journals.ts fix(rich-text): render full lexical formatting incl. colours across all fields 2026-11-18 13:10:26 -05:00
StoryBeats.ts fix(rich-text): render full lexical formatting incl. colours across all fields 2026-11-18 13:10:26 -05:00
StoryBeatStates.ts chore(chronicle): rename Story Beats to Chronicle Entries 2026-10-09 13:48:14 -04:00
Voiceovers.ts chore(chronicle): rename Story Beats to Chronicle Entries 2026-10-09 13:48:14 -04:00