Repository navigation
Add a Cards button to the home page text editor (0.261.547) - #2036
Open
Paul Lizer (paullizer) wants to merge 1 commit into
Open
Paul Lizer (paullizer) wants to merge 1 commit into
Paul Lizer (paullizer) wants to merge 1 commit into
Conversation
The classic and V2 Admin Settings editors insert a ":::columns cards" block with three cards, so administrators no longer change ":::columns" to ":::columns cards" by hand. Tooltips, help text, feature doc and release notes point to the button. Tests run the classic button in Node and check the V2 toolbar offers the same action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cards on the home page are a style of columns (
:::columns cards), but neither editor toolbar offered them: administrators had to insert columns and edit the fence by hand. This adds a Cards button to both editors that inserts three cards ready to edit.admin_landing_layout.js).fields.tsx); the column tooltips no longer tell administrators to type:::columns cards.The grammar and the three renderers are unchanged, so the parser-parity test still holds.
Testing
functional_tests/test_landing_page_layout_blocks.py— 15 passed locally, including two new tests: one runs the classic toolbar's Cards button in Node and checks the inserted text parses and renders as three cards; one checks the V2 toolbar offers the same action.node_modulesin this checkout); CI covers it.🤖 Generated with Claude Code