Skip to content

fix: editor loads the stored product description - #41

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
Collaborator

Follow-up to #40 (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('description'). Pages still only ever see sanitised HTML.

Not touched: a separate PHPStan error, Billable.php:43 (method_exists always true), which predates this PR (sc-1120).

🤖 Generated with Claude Code

…itised read

Also narrows ViewPathsTest's finder for PHPStan.

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: 54bdc8a2-640e-4e7c-b7e7-babb5a144258
Commits

Reviewing files that changed from the base of the PR and between 9482331 and a729d89.

Files selected for processing: 3

  • src/Filament/Resources/Products/Schemas/ProductForm.php
  • tests/Feature/EntitlementCatalogueTest.php
  • tests/Feature/ViewPathsTest.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 8bbc76f 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