Skip to content

Commit

Permalink
chore: re-order MoreMenu items (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvinnchau authored Mar 3, 2025
1 parent 27b9cd9 commit cbd1ba6
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions ui/desktop/src/components/MoreMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,49 +227,52 @@ export default function MoreMenu({
</>
)}

{/* View Previous Sessions */}
<button
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors"
onClick={() => setView('sessions')}
<div
onClick={() => setIsGoosehintsModalOpen(true)}
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors cursor-pointer"
>
<span>Previous Sessions</span>
</button>
Configure .goosehints
</div>

{/* Settings Menu */}
<button
onClick={() => {
setOpen(false);
setView('settings');
window.electron.directoryChooser();
}}
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors"
>
Settings (cmd+,)
Open Directory (cmd+O)
</button>

<button
onClick={() => {
setOpen(false);
window.electron.directoryChooser();
window.electron.createChatWindow();
}}
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors"
>
Open Directory (cmd+O)
New Session (cmd+N)
</button>

{/* View Previous Sessions */}
<button
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors"
onClick={() => setView('sessions')}
>
<span>Previous Sessions</span>
</button>

{/* Settings Menu */}
<button
onClick={() => {
setOpen(false);
window.electron.createChatWindow();
setView('settings');
}}
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors"
>
New Session (cmd+N)
Settings (cmd+,)
</button>
<div
onClick={() => setIsGoosehintsModalOpen(true)}
className="w-full text-left p-2 text-sm hover:bg-bgSubtle transition-colors cursor-pointer"
>
Configure .goosehints
</div>

<button
onClick={() => {
localStorage.removeItem('GOOSE_PROVIDER');
Expand Down

0 comments on commit cbd1ba6

Please sign in to comment.