Commit graph

178 commits

Author SHA1 Message Date
Classic298
08f1c823ad
fix(a11y): improve model selector accessibility with proper listbox/option pattern (#21706)
- Replace incorrect aria-roledescription='model-item' with role='option' and aria-selected on ModelItem.svelte. The previous attribute was not a valid ARIA role description and provided no useful information to screen readers.

- Add contextual aria-label to each model item button (e.g. 'Select GPT-4 model') instead of just the raw model name, making the action clear to screen reader users.

- Add role='listbox' and aria-label='Available models' to the scrollable model list container in Selector.svelte so screen readers announce the container's purpose and navigate items correctly.

- Make the model selector trigger button's aria-label dynamic: it now announces 'Selected model: GPT-4' when a model is selected, falling back to 'Select a model' when nothing is selected.

- Add aria-label to the eject (unload) button in ModelItem.svelte so screen readers announce its purpose.

- Add aria-label to the cancel download button in Selector.svelte with the specific model name being canceled.

- Improve model profile image alt text from generic 'Model' to contextual '{{modelName}} profile image'.
2026-02-21 16:14:09 -06:00
Timothy Jaeryang Baek
631e30e22d refac 2026-02-21 15:35:34 -06:00
G30
6d8a6e6d8b
fix(model-selector): resolve virtual scroll bug when typing quickly (#21659) 2026-02-21 14:22:50 -06:00
Timothy Jaeryang Baek
a0195cd5ae refac 2026-02-18 14:33:18 -06:00
Timothy Jaeryang Baek
e0bdef85ab chore: format 2026-02-17 01:11:48 -06:00
Timothy Jaeryang Baek
519ff40cb6 refac 2026-02-16 01:56:43 -06:00
Timothy Jaeryang Baek
0b05b2fc7e refac 2026-02-13 00:44:01 -06:00
Timothy Jaeryang Baek
f376d4f378 chore: format 2026-02-11 16:24:11 -06:00
Timothy Jaeryang Baek
4331029926 refac 2026-02-11 02:20:07 -06:00
Timothy Jaeryang Baek
6cd35b185d refac 2026-02-04 00:13:05 -06:00
Timothy Jaeryang Baek
bc90463ea6 refac 2026-01-29 20:15:23 +04:00
Timothy Jaeryang Baek
c2c389f722 refac 2025-12-30 20:07:15 +04:00
G30
9a9b5ef699
feat: add sidebar toggle to workspace and admin models pages (#20176) 2025-12-29 00:45:45 +04:00
Timothy Jaeryang Baek
6442871947 refac: profile_image_url optimization 2025-11-20 20:43:59 -05:00
Timothy Jaeryang Baek
314cac0113 refac: dedup tags 2025-11-04 23:44:33 -05:00
Timothy Jaeryang Baek
89e59d0103 revert 2025-11-04 18:14:09 -05:00
Timothy Jaeryang Baek
2a98ba0ff8 refac/fix 2025-11-04 18:12:00 -05:00
G30
8feed02d40
fix: de-duplicate model tags case-insensitively (#18716)
* fix: de-duplicate model tags case-insensitively

This change updates the `setTags` function in the `Models.svelte` component and the `onMount` function in the `Selector.svelte` component to convert all model tags to lowercase before removing duplicates. This ensures that tags with different capitalization (e.g., "Best" and "best") are treated as a single tag, preventing duplicate entries in the tag filter dropdown on both the workspace models page and the new chat page.

* Update Selector.svelte

* refac
2025-10-30 10:44:05 -07:00
Timothy Jaeryang Baek
79afb7afdb refac: model selector 2025-10-02 13:03:33 -05:00
silentoplayz
b516431569 fix: truncate long filter tags in model selector and prevent wrapping
This commit addresses an issue where long filter tags at the top of the model selector dropdown were not truncated correctly and would wrap to a new line, causing layout issues.

- A hard character limit of 16 characters is applied to the filter tags within the `Selector.svelte` component. Tags longer than 16 characters are truncated with an ellipsis (...) directly in the code. The full tag name remains available in the tooltip.
- The `whitespace-nowrap` class has been added to the tag container to ensure that the tags remain on a single, horizontally scrollable line.
2025-09-26 15:03:44 -04:00
Timothy Jaeryang Baek
1c78594379 refac 2025-09-18 17:53:11 -05:00
Timothy Jaeryang Baek
767acd1789 refac 2025-09-16 15:09:57 -05:00
Timothy Jaeryang Baek
a3dd678bbd refac: styling 2025-09-16 15:03:26 -05:00
Timothy Jaeryang Baek
8bf0b40fdd refac: styling 2025-09-16 14:57:56 -05:00
Timothy Jaeryang Baek
ac375fe3d2 refac: styling 2025-09-15 15:54:35 -05:00
Timothy Jaeryang Baek
218920f0c3 refac: styling 2025-09-15 15:53:11 -05:00
Timothy Jaeryang Baek
3d5699ef22 refac: styling 2025-09-15 15:50:28 -05:00
Timothy Jaeryang Baek
ef56b14636 refac: styling 2025-09-13 02:58:10 +04:00
Timothy Jaeryang Baek
680adea4e7 refac: styling 2025-09-13 00:27:04 +04:00
Timothy Jaeryang Baek
1477f14827 refac: styling 2025-08-21 03:41:01 +04:00
Timothy Jaeryang Baek
19e82ace23 feat: temp chat as default 2025-08-20 22:49:05 +04:00
silentoplayz
709258bbb5 fix: Add missing '$' 2025-08-13 20:24:05 -04:00
silentoplayz
82ed9b0a97 i18n.t: updates 2025-08-13 20:15:16 -04:00
Timothy Jaeryang Baek
34689e37f8 refac 2025-08-08 20:58:52 +04:00
Sine Jespersen
52ef3e74e6 add aria-labels and aria-pressed to enhance accessibility 2025-08-06 12:29:50 +02:00
Sine Jespersen
9df790a9f9 make buttons DropdownMenuItems to make them accessible by keyboard, add handling of highContrastMode 2025-08-06 12:29:28 +02:00
Sine Jespersen
ba1e32f60d add aria-label to labelless button to enhance accessibility 2025-08-06 12:28:42 +02:00
Timothy Jaeryang Baek
496ea40d1d refac: model item tag styling 2025-07-22 11:19:40 +04:00
Timothy Jaeryang Baek
9c49d9e641 refac: aria label model item 2025-07-14 12:09:08 +04:00
guenhter
196af9eaf7 chore: streamline the URL used for resources like favicon.png 2025-07-09 09:14:51 +02:00
Timothy Jaeryang Baek
ff3dec9ef2 refac: styling 2025-07-02 15:14:48 +04:00
Sine Jespersen
bed2c7e34f remove nested buttons, as this is not valid html 2025-07-02 08:56:17 +02:00
Sine Jespersen
e5435c6480 high contrast mode on model selector to enhance accessibility 2025-07-02 08:46:32 +02:00
Silentoplayz
d1e3940abd refac: Spinner and XMark components 2025-06-25 18:44:45 -04:00
Timothy Jaeryang Baek
4db0da2b75 refac 2025-06-16 12:02:34 +04:00
Timothy Jaeryang Baek
f5d250820b refac 2025-06-16 11:46:02 +04:00
Timothy Jaeryang Baek
c4cd2b55f0 refac: styling 2025-06-10 14:13:52 +04:00
Timothy Jaeryang Baek
bacf39902b refac: styling 2025-06-10 14:02:43 +04:00
Timothy Jaeryang Baek
8da1ce358f refac: model selector styling 2025-06-09 11:22:31 +04:00
Timothy Jaeryang Baek
9409083d0b refac 2025-06-09 02:16:23 +04:00