1
0
Fork 0
polaris-task-force/src/lib/profile/excerpt-limits.ts
Z8MB1E 60da363a93 feat(profile): add rich-text dossier excerpt editors
Convert the dossier personal excerpt from a plain textarea to Lexical
rich text (matching the intel excerpt) with a 1000-character plain-text
limit, and replace the static read-only cards on the profile page with
inline DossierExcerptEditors: owners edit their personal excerpt,
profiles:intel_excerpt:update holders edit the intelligence record.
Changes are validated server-side (lexicalPlaintextLength) and emit
dossier:personal-excerpt-update / dossier:intel-excerpt-update events.
2026-09-06 05:32:23 -04:00

7 lines
287 B
TypeScript

/**
* Shared character limits for dossier excerpts (plaintext content, not raw
* JSON). Imported by the server actions, the collection field validator
* wiring, and the client editors.
*/
export const PERSONAL_EXCERPT_MAX_LENGTH = 1000;
export const INTEL_EXCERPT_MAX_LENGTH = 5000;