[6.x] Add Info fieldtype - #15368
Conversation
4c3c620 to
022681e
Compare
|
@joshuablum I merged the other PR in this stack. Since this one is still in a draft, I unstacked it, and updated it for 6.x. It's standalone now ready for you to continue when you want. |
|
I wonder if we should call this "Alert" since it's really just a wrapper around the UI component already named Alert. And maybe change the |
|
I think "info" still makes more sense because that's how you'd use it - vs an "alert" which feels like describing a pop-up when in this user context. |
There was a problem hiding this comment.
I see that you named a field alert_icon just because icon was sorta reserved and getting wiped out. Instead of this workaround, I'm gonna resolve it in a separate PR. Then we can go back to using icon in here.
Also the naming I brought up earlier is fine based on what Jack said 👍
The handle was "alert_icon" to work around the blueprint builder clobbering and stripping a config field named "icon". That's fixed in core now, so the field can use the name people will reach for first. Drops the test that guarded the workaround. FieldTransformerTest covers the round trip generically. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
I updated this PR to handle |
Adds a non-data Info fieldtype for displaying visual guidance in Control Panel publish forms. It supports sanitized Markdown, built-in icon selection, and five states:
Closes statamic/ideas#1359.