fix(site/src/pages/AISettingsPage/ModelsPage): duplicate Add model dropdown in empty state#26685
Merged
Merged
Conversation
…opdown in empty state Mirror the providers page: when the models table is empty, render an Add model dropdown inside the empty state alongside the description so users have a clear path to add their first model.
DanielleMaywood
approved these changes
Jun 24, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Mirrors the providers page on
/ai/settings/providers: when the models table is empty on/ai/settings/models, the empty state now renders an Add model dropdown alongside the description so users have an obvious next step.Changes
AddModelDropdownaccepts an optionalalignprop (defaults to"end"), so the existing header instance is unchanged.TableEmpty'sctaprop withalign="start", matching howProvidersPageViewduplicatesAddProviderDropdown.EmptyStorybook story to assert two Add model buttons render (header + empty state).Verification
pnpm --dir site exec biome check src/pages/AISettingsPage/ModelsPage/pnpm --dir site exec tsc -p . --noEmitpnpm --dir site exec vitest run --project=storybook src/pages/AISettingsPage/ModelsPage/(20/20 stories pass, including the updatedEmptyplay)Reference: providers page pattern
ProvidersPageView.tsxalready does this withAddProviderDropdown:This PR brings the models page in line with that pattern.
Note
Opened by Coder Agents on behalf of @tracyjohnsonux.