Skip to content

Commit 0b938f3

Browse files
Merge pull request anomalyco#454 from different-ai/task/ux-compose-session-icons
Remove inactive compose/session list icons
2 parents a1f90f0 + 4774c2a commit 0b938f3

4 files changed

Lines changed: 7 additions & 83 deletions

File tree

‎packages/app/src/app/components/session/composer.tsx‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { For, Show, createEffect, createMemo, createSignal, onCleanup, onMount } from "solid-js";
22
import type { Agent } from "@opencode-ai/sdk/v2/client";
3-
import { ArrowUp, AtSign, ChevronDown, File, History, Mic, Paperclip, X, Zap } from "lucide-solid";
3+
import { ArrowUp, AtSign, ChevronDown, File, Paperclip, X, Zap } from "lucide-solid";
44

55
import type { ComposerAttachment, ComposerDraft, ComposerPart, PromptMode } from "../../types";
66

@@ -1007,12 +1007,6 @@ export default function Composer(props: ComposerProps) {
10071007
</div>
10081008
</div>
10091009
<div class="flex items-center gap-3 text-dls-secondary">
1010-
<button type="button" class="cursor-pointer hover:text-dls-text">
1011-
<History size={18} />
1012-
</button>
1013-
<button type="button" class="cursor-pointer hover:text-dls-text">
1014-
<Mic size={18} />
1015-
</button>
10161010
<button
10171011
type="button"
10181012
disabled={!props.prompt.trim() && !attachments().length}

‎packages/app/src/app/pages/dashboard.tsx‎

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import StatusBar from "../components/status-bar";
3434
import ProviderAuthModal from "../components/provider-auth-modal";
3535
import {
3636
Box,
37-
Edit2,
3837
History,
3938
Loader2,
4039
MoreHorizontal,
@@ -541,30 +540,12 @@ export default function DashboardView(props: DashboardViewProps) {
541540
openSessionFromList(workspace().id, session.id);
542541
}}
543542
>
544-
<span class="text-sm text-dls-text truncate mr-2 font-medium group-hover:pr-14 transition-all">
543+
<span class="text-sm text-dls-text truncate mr-2 font-medium">
545544
{session.title}
546545
</span>
547-
<span class="text-xs text-dls-secondary whitespace-nowrap group-hover:opacity-0 transition-opacity">
546+
<span class="text-xs text-dls-secondary whitespace-nowrap">
548547
{formatRelativeTime(session.time?.updated ?? Date.now())}
549548
</span>
550-
<div class="absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
551-
<button
552-
type="button"
553-
class="p-1 hover:bg-dls-active rounded-md text-dls-text transition-colors"
554-
onClick={(event) => event.stopPropagation()}
555-
aria-label="Session options"
556-
>
557-
<MoreHorizontal size={14} />
558-
</button>
559-
<button
560-
type="button"
561-
class="p-1 hover:bg-dls-active rounded-md text-dls-text transition-colors"
562-
onClick={(event) => event.stopPropagation()}
563-
aria-label="Rename session"
564-
>
565-
<Edit2 size={14} />
566-
</button>
567-
</div>
568549
</div>
569550
);
570551
}}

‎packages/app/src/app/pages/proto-v1-ux.tsx‎

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ import {
88
ChevronDown,
99
ChevronRight,
1010
Cloud,
11-
Edit2,
1211
ExternalLink,
1312
FileCode,
1413
FileText,
1514
Gamepad2,
1615
History,
1716
Layout,
1817
MessageSquare,
19-
Mic,
2018
MoreHorizontal,
2119
Pencil,
2220
Plus,
@@ -143,28 +141,12 @@ const SidebarItem = (props: {
143141

144142
const ThreadItem = (props: { text: string; time: string }) => (
145143
<div class="group relative flex items-center justify-between rounded-xl px-3 py-2 transition-colors hover:bg-gray-2">
146-
<span class="truncate pr-6 text-sm font-medium text-gray-11 group-hover:text-gray-12">
144+
<span class="truncate text-sm font-medium text-gray-11 group-hover:text-gray-12">
147145
{props.text}
148146
</span>
149-
<span class="text-xs text-gray-8 transition-opacity group-hover:opacity-0">
147+
<span class="text-xs text-gray-8">
150148
{props.time}
151149
</span>
152-
<div class="absolute right-2 top-1/2 flex -translate-y-1/2 items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100">
153-
<button
154-
type="button"
155-
aria-label="Thread options"
156-
class="rounded-md p-1 text-gray-9 transition-colors hover:bg-gray-3 hover:text-gray-12"
157-
>
158-
<MoreHorizontal size={14} />
159-
</button>
160-
<button
161-
type="button"
162-
aria-label="Rename thread"
163-
class="rounded-md p-1 text-gray-9 transition-colors hover:bg-gray-3 hover:text-gray-12"
164-
>
165-
<Edit2 size={14} />
166-
</button>
167-
</div>
168150
</div>
169151
);
170152

@@ -669,20 +651,6 @@ export default function ProtoV1UxView() {
669651
</button>
670652
</div>
671653
<div class="flex items-center gap-3">
672-
<button
673-
type="button"
674-
aria-label="Thread history"
675-
class="rounded-md p-1.5 text-gray-8 transition-colors hover:bg-gray-2 hover:text-gray-12"
676-
>
677-
<History size={18} />
678-
</button>
679-
<button
680-
type="button"
681-
aria-label="Voice input"
682-
class="rounded-md p-1.5 text-gray-8 transition-colors hover:bg-gray-2 hover:text-gray-12"
683-
>
684-
<Mic size={18} />
685-
</button>
686654
<button
687655
type="button"
688656
aria-label="Send"

‎packages/app/src/app/pages/session.tsx‎

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
Box,
2727
Check,
2828
ChevronDown,
29-
Edit2,
3029
HardDrive,
3130
History,
3231
Loader2,
@@ -976,32 +975,14 @@ export default function SessionView(props: SessionViewProps) {
976975
openSessionFromList(workspace().id, session.id);
977976
}}
978977
>
979-
<span class="text-sm text-dls-text truncate mr-2 font-medium group-hover:pr-14 transition-all">
978+
<span class="text-sm text-dls-text truncate mr-2 font-medium">
980979
{session.title}
981980
</span>
982981
<Show when={session.time?.updated}>
983-
<span class="text-xs text-dls-secondary whitespace-nowrap group-hover:opacity-0 transition-opacity">
982+
<span class="text-xs text-dls-secondary whitespace-nowrap">
984983
{formatRelativeTime(session.time?.updated ?? Date.now())}
985984
</span>
986985
</Show>
987-
<div class="absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
988-
<button
989-
type="button"
990-
class="p-1 hover:bg-dls-active rounded-md text-dls-text transition-colors"
991-
onClick={(event) => event.stopPropagation()}
992-
aria-label="Session options"
993-
>
994-
<MoreHorizontal size={14} />
995-
</button>
996-
<button
997-
type="button"
998-
class="p-1 hover:bg-dls-active rounded-md text-dls-text transition-colors"
999-
onClick={(event) => event.stopPropagation()}
1000-
aria-label="Rename session"
1001-
>
1002-
<Edit2 size={14} />
1003-
</button>
1004-
</div>
1005986
</div>
1006987
);
1007988
}}

0 commit comments

Comments
 (0)