mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-16 00:14:37 +00:00
Merge pull request #745 from kaitranntt/kai/feat/744-api-profile-provider-selector-ux
feat(ui): improve API profile provider selector UX
This commit is contained in:
7 files changed
+261
-84
No files matched your search
@@ -61,6 +61,15 @@ describe('provider-presets', () => {
|
||||
expect(preset?.defaultProfileName).toBe('qwen-api');
|
||||
});
|
||||
|
||||
it('keeps Anthropic direct last in the recommended preset order and reuses the Claude logo', () => {
|
||||
const recommendedPresetIds = PROVIDER_PRESETS.filter(
|
||||
(preset) => preset.category === 'recommended'
|
||||
).map((preset) => preset.id);
|
||||
|
||||
expect(recommendedPresetIds.at(-1)).toBe('anthropic');
|
||||
expect(getPresetById('anthropic')?.icon).toBe('/assets/providers/claude.svg');
|
||||
});
|
||||
|
||||
it('only references provider preset icons that exist in ui/public', () => {
|
||||
for (const preset of PROVIDER_PRESETS) {
|
||||
if (!preset.icon) continue;
|
||||
|
||||
Reference in new issue
Block a user