Skip to content

fix: editor loads the stored announcement text - #23

Merged
roble merged 1 commit into
mainfrom
fix/editor-loads-stored-html
Nov 7, 2026
Merged

roble merged 1 commit into
mainfrom
fix/editor-loads-stored-html

Conversation

@roble

@roble roble commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #22 (sc-1131). The SanitizedHtml cast cleans every read, including the one that fills the admin editor. Filament's sanitizer cuts input at 500,000 bytes, so saving any other field wrote the cut copy back. The editor now loads getRawOriginal('text'). Pages still only ever see sanitised HTML.

Test: test_saving_another_field_keeps_long_text_whole. It failed before (625,000 bytes stored as 500,000) and passes now.

🤖 Generated with Claude Code

…ised read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa0a5f0c-4449-4039-81c2-522e8c55001e
Commits

Reviewing files that changed from the base of the PR and between 8033711 and c17c8fe.

Files selected for processing: 2

  • src/Filament/Resources/Announcements/Schemas/AnnouncementForm.php
  • tests/Feature/AnnouncementResourceTest.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2026

Copy link
Copy Markdown

@roble
roble merged commit 312415e into main Nov 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant