11 Commits
Author SHA1 Message Date
ilyapashayan bb88583f09 fix: match mention badge style exactly to Filament RichEditor spec
Filament uses: bg-primary-50 text-primary-600 rounded px-1 font-medium
dark: bg-primary-400/10 text-primary-400 — no border, 0.25rem radius.
Previous commit added incorrect border/padding/font-weight overrides.
2026-04-01 01:24:25 +04:00
ilyapashayan 4b783e437f improve: polish mention badge styling with dark mode support
Add border, adjust sizing, font-weight and transition for both
light (primary-50 bg / primary-700 text / primary-200 border)
and dark (15% primary bg / primary-300 text / 30% primary border)
themes using Filament CSS variables.
2026-04-01 01:22:37 +04:00
ilyapashayan d189743a9c fix: show user-friendly error on file upload failure (413)
Livewire fires a livewire-upload-error JS event when an upload fails,
including 413 responses from the server. Add x-on: Alpine listeners
on the comment and reply forms to display an error message instead of
silently failing. Use x-on: instead of @ shorthand to avoid Blade
parsing @livewire as a directive.
2026-04-01 01:10:13 +04:00
ilyapashayan 541d11ab90 fix: preserve mention data attributes through HTML sanitization
Filament's sanitizer strips data-id, data-label and data-char from
mention spans, breaking both display (unstyled @mention) and editing
(@-only shown in RichEditor). Register a package-scoped sanitizer that
explicitly allows these attributes on span elements.

Also fix double-replacement bug in renderBodyWithMentions() where both
the rich-editor regex and str_replace fallback could run on the same
mention, producing nested styled spans.
2026-04-01 01:10:05 +04:00
ilyapashayan 48fbd3c9d7 fix: use CSS variables for mention styling so dark mode and custom colors work 2026-03-30 19:20:50 +04:00
ilyapashayan e7daa25fc2 fix: match mention styling exactly to RichEditor for custom primary color support 2026-03-30 19:17:40 +04:00
ilyapashayan bff68f87a3 fix: render mentions by replacing spans directly instead of RichContentRenderer 2026-03-30 19:15:38 +04:00
ilyapashayan 583b49125f fix: add InteractsWithActions so RichEditor link toolbar works 2026-03-30 19:03:43 +04:00
ilyapashayan 5e44a4051a fix: eager load 2nd level replies so all nesting levels render correctly 2026-03-30 19:00:52 +04:00
ilyapashayan 812556cba2 fix: include replies in comment count and cascade delete to replies 2026-03-30 18:59:07 +04:00
ilyapashayan 20dba18e8e fix: show reply instantly after adding without page refresh 2026-03-30 18:48:11 +04:00