Skip to content

Studio: Models panel part of its card, even form footer, OpenRouter mark under a new file name - #13974

Merged
shimmyshimmer merged 6 commits into
mainfrom
studio-connections-models-panel
Oct 16, 2026
Merged

shimmyshimmer merged 6 commits into
mainfrom
studio-connections-models-panel

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Studio: a flatter connection Models panel, and the OpenRouter mark under a new file name

Follow-up to #13964.

What changed

Models panel. The model picker in the Connections editor no longer stacks a bordered box inside a bordered box inside the section card. The toolbar (count, search, Select all, Clear) sits directly in the section, and the model rows are part of the Models card itself: they run edge to edge across the card with a thin line between rows, the same way the card separates its header, with no box or fill of their own. The list grows with its rows and only scrolls once there are more than 10 models, showing 10 rows; before, it scrolled at about 6. Curated and fetched model lists get the same treatment.

OpenRouter logo file name. #13964 replaced the artwork in place at public/provider-logos/openrouter.svg. Studio serves that folder without cache headers, so a browser or Desktop webview that already cached the old file can keep showing the old mark after an update. The mark now ships as openrouter-mark.svg, which no cache holds.

Footer spacing. Save connection / Cancel now sit 12 px below the last card and 12 px above the bottom of the settings pane. The form now keeps its content height instead of min-h-0, so the pane's bottom padding always applies, and the buttons trim it to match the gap above.

Verification

  • npm run typecheck, npm test, npm run build in studio/frontend; npm run biome:check shows no new diagnostics in the touched file.
  • Isolated Studio on this branch, driven with Playwright in dark and light themes: no bordered boxes nested inside the Models section; 9 suggestions render without a scrollbar; a saved connection with 37 models scrolls with a 10-row height; the gap below Save connection / Cancel equals the 12 px gap above them at 1024x700, 1280x900, 1440x800 and 1700x1000; the provider menu loads openrouter-mark.svg.

@shimmyshimmer shimmyshimmer changed the title Studio: flatter connection Models panel, OpenRouter mark under a new file name Studio: Models panel part of its card, wifi-high icons, OpenRouter mark under a new file name Oct 16, 2026
@shimmyshimmer shimmyshimmer changed the title Studio: Models panel part of its card, wifi-high icons, OpenRouter mark under a new file name Studio: Models panel part of its card, even form footer, OpenRouter mark under a new file name Oct 16, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T09:03:12.500869Z 44100ca Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shimmyshimmer
shimmyshimmer merged commit 147b694 into main Oct 16, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-connections-models-panel branch October 16, 2026 08:52

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44100ca987

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const modelListClassName = cn(
"-mx-4 divide-y divide-border/60 border-border/60 border-y last:-mb-4 last:border-b-0",
filteredAvailableModels.length > 10 &&
"max-h-[calc(var(--spacing)*90+10px)] overflow-y-auto",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Cap the model list at exactly ten rows

When more than ten short, single-line model IDs are displayed, this maximum height exposes a strip of the eleventh row. Tailwind applies box-sizing: border-box, so the divide-y borders are already included in each min-h-9 row; adding another 10px leaves roughly 8px after ten rows and the list's outer borders. Please size the viewport from the ten row boxes plus only the applicable outer border width.

Useful? React with 👍 / 👎.

danielhanchen added a commit that referenced this pull request Oct 16, 2026
…13991)

## Summary

`Frontend build + bundle sanity` is red on main again. #13969 merged
with it red, and its run reported `over the startup budget: transfer
1995.0 KB > 1994.7 KB, raw 6633.8 KB > 6632.7 KB`. Main at 6106de9
measures 6,796,799 B raw / 2,044,202 B transfer, against limits of
6,792,425 / 2,042,777.

Measured commit by commit (one machine and build, Node 24, 95 chunks
throughout, `rm -rf dist` before each build):

| commit | raw B | transfer B |
|---|---|---|
| 1790106 (#13983, last raise from me) | 6,791,768 | 2,042,404 |
| 7d33eff (#13965) | 6,792,034 | 2,042,515 |
| cc0cb59 (#13966) | 6,792,447 | 2,042,693 |
| 7bee02d (#13969) | 6,793,737 | 2,043,138 |
| ce83dee (#13973) | 6,796,298 | 2,044,201 |
| 6106de9 (main, after #13974, #13972, #13951, #13945) | 6,796,799 |
2,044,202 |

The two largest steps:
- Inline chat markdown tables with hover controls and the expand dialog
(#13973): +2,561 B raw / +1,063 B transfer, in the eager chat chunk.
- Latest Unsloth Models ranking (#13969): +1,290 B raw / +445 B
transfer.

#13945 already raised the budget for its own 497 B.

## Change

The budget is set to the measured build plus the margin main had at
1790106 (160 B raw, 189 B transfer), with the per-commit numbers
recorded beside the limits as in the earlier raises. If #13973's expand
dialog should be lazy-loaded instead, that is a follow-up for its owner.
This only gets main and every open PR off a red that none of them
caused.

## Testing

- `npm run build && npm run bundle:check` on main with this change:
within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over
by 4,374 B raw / 1,425 B transfer.
- `tests/bundle-budget-cli.test.ts` and
`tests/bundle-budget-closure.test.ts`: 43 passed.
- `prettier --check scripts/check-bundle-budget.ts`: clean.
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