Skip to content

Make the API landing page cards the same size and reflow in step - #5014

Merged
reakaleek merged 14 commits into
mainfrom
match-orchestration-card-06ec2f5a
Nov 23, 2026
Merged

reakaleek merged 14 commits into
mainfrom
match-orchestration-card-06ec2f5a

Conversation

@reakaleek

@reakaleek reakaleek commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The API landing page now shows the Orchestration cards (Elastic Cloud, Cloud Billing, ECE and others) at the same size as the Elasticsearch, Kibana and Logstash cards. Both rows step from one to two to three columns at the same widths.

Affects: API reference

Prompt summary: On the API landing page, the Orchestration cards (Elastic Cloud) should be the same size as the Elasticsearch, Kibana and Logstash cards. Both rows should also be responsive, with one, two and three columns at certain widths. The cards should be smaller, so that almost all of them fit above the fold on the most common screen sizes (StatCounter desktop resolutions).

Why

The catalog renders every card of a group without featured cards as the compact card. Orchestration has no featured cards, so its cards come out smaller than the stack cards above them. The stack row also stays at one column until 1024px, then jumps to three, because each Serverless tag-on is placed by a fixed grid column and row.

What

Card size

Cards that are not attached under a parent use the full-size card. Only the Serverless tag-on is small.

Column steps

Every card grid uses one column, two columns from 640px and three columns from 1024px. A group with only two featured cards stays at two.

Tag-on placement

A featured card and its Serverless tag-on now share one list item. A list item with a tag-on spans two rows through a subgrid, so the primary cards of a row share one height and the tag-ons sit in the row below them. The tag-on stays attached under its parent at any column count. The fixed column and row placement, and the code behind it, are removed. The same rules are updated in both catalog stylesheets, and the design-system utilities gain the two-column step.

Fit above the fold

The full-size card is smaller: 16px and 20px padding, a 24px icon, a 17px title and a description of two lines. The grid gap is 16px. The classic hero is shorter. On the assembler build at 1440x900 all 11 cards end above the fold, where 8 did. Weighted by StatCounter's share of the eight most common desktop screen sizes, the cards above the fold go from 54% to 80%. The browser viewport is estimated as the screen height minus 130px.

Verify

mise run test
mise run serve

Open /api/ and resize the window across 640px and 1024px.

Check on the preview

  • API landing page — the Orchestration cards match the stack cards in size. Both rows have the same column count at every width, Elasticsearch, Kibana and Logstash share one height, and the Serverless tag-ons stay attached under Elasticsearch and Kibana.

The catalog rendered every card of a group without featured cards as compact. The Orchestration cards now use the full-size card. Only a tag-on attached under its parent stays compact.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@reakaleek
reakaleek requested a review from a team as a code owner November 23, 2026 18:19
@reakaleek
reakaleek requested a review from technige November 23, 2026 18:19
@github-actions

Copy link
Copy Markdown
Contributor

…nt (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each featured card and its Serverless tag-on now share one grid cell. The tag-on stays attached at any column count, so the stack row steps like the Orchestration row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@reakaleek reakaleek changed the title Show Orchestration cards at the same size as the stack cards Make the API landing page cards the same size and reflow in step Nov 23, 2026
reakaleek and others added 3 commits November 23, 2026 20:39
…ew by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w below (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Entry("elasticsearch-serverless", "Elasticsearch Serverless API")
);

Count(html, "api-catalog-cell-tagged").Should().Be(1, "only the cell with a tag-on spans two rows");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

Add a browser-level check for the preview catalog's responsive layout. Counting api-catalog-cell-tagged still passes if the preview stylesheet loses its column or subgrid rules entirely, and the existing visual suite only covers the flag-off bundle. Check computed columns and card alignment with navigation preview enabled.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this PR. A check with the flag on needs a way to start the local test host with a feature flag, because it removes every FEATURE_* variable, or a journey against the demo site. I filed #5022 with the properties to check. I verified them by hand in both layouts for this change.

reakaleek and others added 2 commits November 23, 2026 21:01
The cards, the grid gaps and the classic hero are smaller, and descriptions clamp to two lines. On a 1440x900 screen all 11 cards on the assembler build now end above the fold, where 8 did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
reakaleek and others added 2 commits November 23, 2026 21:06
…eview by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
reakaleek and others added 2 commits November 23, 2026 21:17
…eview by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…og styles

The two-column step moves from 640px to 761px, since the design system allows only the 760, 860 and 1100 breakpoints. The card sizes in the preview bundle are in rem.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@reakaleek
reakaleek merged commit 5ae5e34 into main Nov 23, 2026
44 checks passed
@reakaleek
reakaleek deleted the match-orchestration-card-06ec2f5a branch November 23, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant