Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add a Cards button to the home page text editor (0.261.547) - #2036

Open
Paul Lizer (paullizer) wants to merge 1 commit into
microsoft:Developmentfrom
paullizer:claude/landing-page-card-button-bba1b5
Open

Paul Lizer (paullizer) wants to merge 1 commit into
microsoft:Developmentfrom
paullizer:claude/landing-page-card-button-bba1b5

Conversation

@paullizer

Copy link
Copy Markdown
Collaborator

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.

  • Classic Admin Settings (Branding): a card-icon button between "3 columns" and "Table" (admin_landing_layout.js).
  • V2 Admin Settings (Appearance): a "Cards" action in the same place (fields.tsx); the column tooltips no longer tell administrators to type :::columns cards.
  • Help text under the classic editor, the feature doc and both release-notes files point to the button.
  • Version 0.261.547.

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.
  • Release-notes integrity tests pass.
  • The V2 type-check was not run locally (no node_modules in this checkout); CI covers it.

🤖 Generated with Claude Code

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

No deployments
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