-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Studio: UI polish for sidebar, menus, hub and toasts #6288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8799e04
Studio: UI polish for sidebar, menus, hub and toasts
shimmyshimmer c41ba23
Studio: shrink pinned unpin icon, match projects menu to composer menu
shimmyshimmer 1918bc0
Studio: inset dropdown separators slightly from item width
shimmyshimmer 09a2f2d
Studio: move archived chats from the sidebar into chat settings
shimmyshimmer ffcbfc0
Studio: make the archive toast open the archived chats list
shimmyshimmer 70bd32b
Studio: keep chats archived when opened from the archived list
shimmyshimmer 6e223ec
Chat settings: optional delete confirmation and menu cleanup
shimmyshimmer 6cb93dc
Hub, dialog and page polish
shimmyshimmer a5b2b4b
Soften popup overlays and refine hub filters
shimmyshimmer 4e42d71
Inline chat rename and review-feedback fixes
shimmyshimmer 482a845
Merge branch 'main' into studio-ui-polish
shimmyshimmer b296bd0
Sidebar: borderless inline rename, no name flash, align titles
shimmyshimmer 0c56d71
Profile: preferred name and avatar shape options
shimmyshimmer 9b38cf2
Settings: show version block at the top of General
shimmyshimmer faa1640
Profile: pick a sloth sticker as your avatar
shimmyshimmer 0057823
Profile: keep transparent avatars transparent
shimmyshimmer 6e376e1
Profile: fall back to PNG for transparent avatars on Safari
shimmyshimmer 104bbab
Archived chats: reset nav when deleting the open compare too
shimmyshimmer 60b094c
Merge branch 'main' into studio-ui-polish
shimmyshimmer ef5a547
Profile: trim three sloth stickers from the picker
shimmyshimmer ab3a5b9
Chat: tighten model selector right padding
shimmyshimmer 8ad34c4
Address review feedback on profile, reset and rename
shimmyshimmer 6963385
Chat: rebalance model selector padding and chevron
shimmyshimmer 1ff6d84
Hub: shrink the external link dialog icon
shimmyshimmer f81a8cb
Hub: shrink the external link dialog media circle
shimmyshimmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
32 changes: 32 additions & 0 deletions
32
studio/frontend/src/features/chat/stores/chat-preferences-store.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| // SPDX-License-Identifier: AGPL-3.0-only | ||
| // Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0 | ||
|
|
||
| import { create } from "zustand"; | ||
| import { persist } from "zustand/middleware"; | ||
|
|
||
| // Client-side chat UI prefs kept in localStorage, not the chat DB. | ||
| // confirmDeleteChats: when off, deleting a chat skips the confirm dialog. | ||
| export interface ChatPreferencesState { | ||
| confirmDeleteChats: boolean; | ||
| setConfirmDeleteChats: (value: boolean) => void; | ||
| } | ||
|
|
||
| export const useChatPreferencesStore = create<ChatPreferencesState>()( | ||
| persist( | ||
| (set) => ({ | ||
| confirmDeleteChats: true, | ||
| setConfirmDeleteChats: (confirmDeleteChats) => | ||
| set({ confirmDeleteChats }), | ||
| }), | ||
| { | ||
| name: "unsloth_chat_preferences", | ||
| merge: (persisted, current) => { | ||
| const saved = persisted as Partial<ChatPreferencesState> | undefined; | ||
| return { | ||
| ...current, | ||
| confirmDeleteChats: saved?.confirmDeleteChats ?? true, | ||
| }; | ||
| }, | ||
| }, | ||
| ), | ||
| ); | ||
42 changes: 42 additions & 0 deletions
42
studio/frontend/src/features/chat/stores/pinned-chats-store.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // SPDX-License-Identifier: AGPL-3.0-only | ||
| // Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0 | ||
|
|
||
| import { create } from "zustand"; | ||
| import { persist } from "zustand/middleware"; | ||
|
|
||
| // Client-side pin state for chats, keyed by stable chat id. Kept in | ||
| // localStorage, not the chat DB. New pins are prepended so the most | ||
| // recently pinned chat sorts first in the Pinned section. | ||
| export interface PinnedChatsState { | ||
| pinnedIds: string[]; | ||
| togglePin: (id: string) => void; | ||
| unpin: (id: string) => void; | ||
| } | ||
|
|
||
| export const usePinnedChatsStore = create<PinnedChatsState>()( | ||
| persist( | ||
| (set) => ({ | ||
| pinnedIds: [], | ||
| togglePin: (id) => | ||
| set((state) => ({ | ||
| pinnedIds: state.pinnedIds.includes(id) | ||
| ? state.pinnedIds.filter((x) => x !== id) | ||
| : [id, ...state.pinnedIds], | ||
| })), | ||
| unpin: (id) => | ||
| set((state) => ({ | ||
| pinnedIds: state.pinnedIds.filter((x) => x !== id), | ||
| })), | ||
| }), | ||
| { | ||
| name: "unsloth_pinned_chats", | ||
| merge: (persisted, current) => { | ||
| const saved = persisted as Partial<PinnedChatsState> | undefined; | ||
| return { | ||
| ...current, | ||
| pinnedIds: Array.isArray(saved?.pinnedIds) ? saved.pinnedIds : [], | ||
| }; | ||
| }, | ||
| }, | ||
| ), | ||
| ); |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new delete-confirmation preference persists under
unsloth_chat_preferences, but General > Reset all local preferences only removes the hard-codedPREFS_KEYSlist ingeneral-tab.tsx, and this key is absent there. If a user turns confirmations off and then uses reset to restore local UI defaults, the reload keeps instant chat deletion enabled instead of returning to the safer default; add this storage key to the reset list.Useful? React with 👍 / 👎.