Skip to content

fix(ui): model provider toasts — silent delete success, readable add-models plural - #29

Merged
tylinux merged 1 commit into
mainfrom
fix/model-provider-toasts
Oct 8, 2026
Merged

tylinux merged 1 commit into
mainfrom
fix/model-provider-toasts

Conversation

@tylinux

@tylinux tylinux commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Deleting a model in the model settings page no longer shows "deleting"/"deleted" toasts (the row disappearing is the feedback). Failures still show the error toast with Retry.
  • Adding models showed the raw {count, plural, one {# model} other {# models}} template, because IntlProvider.formatMessage only substitutes {key} placeholders. Replaced the three "add models" messages with .one/.other keys selected by count (en-US and zh-CN).
  • Added localeMessagesFormat.test.ts, which fails if any locale message uses ICU plural/select syntax.

Testing

  • pnpm typecheck: pass
  • pnpm lint: 0 errors (80 existing warnings)
  • pnpm architecture:check --changed: 0 new violations
  • packages/ui tests localeMessagesFormat and providerDetailFeedback: pass; the new test fails on the old locale files
  • Not verified in the running app

…models plural

- Deleting a model no longer shows pending/success toasts; failures still do.
- Replace ICU plural messages (unsupported by formatMessage) with .one/.other keys.
- Add a locale test that rejects ICU plural/select syntax.
@tylinux
tylinux merged commit a587c8c into main Oct 8, 2026
2 checks passed
@tylinux
tylinux deleted the fix/model-provider-toasts branch October 8, 2026 12:43
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