Skip to content

4.x: apply formatState() in text-column view; allow illuminate ^13 - #64

Open
byjujohn wants to merge 3 commits into
eighty9nine:4.xfrom
byjujohn:filament-5
Open

4.x: apply formatState() in text-column view; allow illuminate ^13#64
byjujohn wants to merge 3 commits into
eighty9nine:4.xfrom
byjujohn:filament-5

Conversation

@byjujohn

Copy link
Copy Markdown

Two fixes from running 4.x-dev in a production-shaped app (29 report classes, 1,800+ tests) on Filament 4/5 and Laravel 12/13:

  1. Column formatting is silently ignored. components/body/text-column.blade.php renders $getState() raw, so formatStateUsing(), money(), date() and numeric() never run — amounts render as bare floats. CanFormatState::formatState() already implements the whole pipeline (incl. HTML sanitisation and HtmlString passthrough); the view just never called it. One-line fix: $state = $formatState($getState());

  2. Laravel 13: illuminate/contracts widened to include ^13.0 — no code changes were needed under Laravel 13 in our testing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ

byjujohn and others added 3 commits July 10, 2026 01:23
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ
…/date were ignored

The v4 rewrite renders $getState() raw, so every column formatter
(formatStateUsing, money(), date(), numeric()) is silently skipped.
CanFormatState::formatState() already implements the full pipeline;
the view just never called it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ
…nCenter() only affected headers

The body table blade computes alignment classes for head and summary cells
but never for data cells, so alignRight() etc. render left-aligned data.
Reuses the identical class mapping on the grouped and normal cell variants.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYdjTQC47Yzs6R1a5iCVaJ
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