Skip to content

Added Add, Rename, and Sort buttons to Model Aliases dialog - #133

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/model-aliases-add-rename
May 21, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/model-aliases-add-rename

Conversation

@oleg68

@oleg68 oleg68 commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added Add button — opens an input dialog to append a new model row (validates non-empty and uniqueness)
  • Added Rename button — opens an input dialog pre-filled with the selected model ID; resets availability on rename (validates non-empty and uniqueness, ignores self)
  • Added Sort button — sorts all rows alphabetically by model ID (case-insensitive)
  • Extracted shared validateModelId(String, List, int) static helper for both Add and Rename
  • Updated docs/user-manual.md with new button descriptions and dialog screenshot
  • Added unit tests for validateModelId and parseModelIds in ModelAliasesDialogTest

Test plan

  • Open Tools → Options → Claude Code → Profiles → Other API profile → Model Aliases…
  • Verify button order: Fetch → Add → Rename → ↑ → ↓ → Sort → Delete → Prune
  • Add: enter new ID → row appears at bottom, selected; blank/duplicate → error in status bar
  • Rename: select row, click Rename → dialog pre-filled; change to new unique name → ID updated, availability cleared; same name → no change; duplicate → error
  • Sort: click Sort with multiple rows → rows sorted alphabetically

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 11a5525 into nbplugins:main May 21, 2026
3 checks passed
@oleg68
oleg68 deleted the feature/model-aliases-add-rename branch May 21, 2026 16:04
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