Skip to content

Commit 1504665

Browse files
iamdavidhilljayair
andauthored
feat(app): update tabs intro content (#36701)
Co-authored-by: Jay <air@live.ca>
1 parent 7255ce9 commit 1504665

4 files changed

Lines changed: 27 additions & 10 deletions

File tree

187 KB
Loading
-11.1 MB
Binary file not shown.
163 KB
Loading

packages/app/src/components/help-button.tsx

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { createStore } from "solid-js/store"
55
import { Drawer, DrawerClose, DrawerContent } from "@/components/ui/drawer"
66
import { usePlatform } from "@/context/platform"
77
import introducingTabsVideo from "@/assets/help/introducing-tabs.mp4"
8+
import homeImage from "@/assets/help/home.png"
9+
import tabsImage from "@/assets/help/tabs.png"
810
import { Persist, persisted } from "@/utils/persist"
911

1012
const helpIcon = (
@@ -65,7 +67,7 @@ export function TabsInfoPopup() {
6567
<Show when={!state.dismissed}>
6668
<div
6769
class="fixed bottom-14 right-5 z-50 h-[240px] w-[192px] rounded-[8px] bg-v2-background-bg-base p-1 shadow-[var(--v2-elevation-floating)]"
68-
aria-label="Introducing Tabs. A faster, more intuitive way to work."
70+
aria-label="Introducing Tabs. Organize your work and active sessions with tabs"
6971
>
7072
<button
7173
type="button"
@@ -107,7 +109,7 @@ export function TabsInfoPopup() {
107109
Introducing Tabs
108110
</p>
109111
<p class="w-full select-none text-[13px] font-[440] leading-[140%] tracking-[-0.04px] text-[#808080]">
110-
A faster, more intuitive way to work.
112+
Organize your work and active sessions with tabs
111113
</p>
112114
</div>
113115
</button>
@@ -127,16 +129,31 @@ export function TabsInfoPopup() {
127129
icon={<IconV2 name="xmark-small" />}
128130
/>
129131
</div>
130-
<div class="relative flex w-full flex-col items-start gap-6 p-8">
132+
<div class="relative flex min-h-0 w-full flex-1 flex-col items-start gap-6 overflow-y-auto p-8">
131133
<p class="w-full shrink-0 self-stretch text-[21px] font-[610] leading-6 tracking-[-0.37px] tabular-nums text-v2-text-text-base">
132-
Introducing Tabs Navigation.
133-
</p>
134-
<p class="w-full flex-1 text-[13px] font-[440] leading-5 tracking-[-0.04px] text-v2-text-text-base">
135-
We've introduced tabs as the primary navigation in OpenCode. Your most important session are now pinned at
136-
the top of your screen at all times. No more hunting through menus or losing your place mid-session. Switch
137-
contexts instantly, pick up exactly where you left off, and keep your focus where it belongs: on the
138-
sessions.
134+
Introducing Tabs
139135
</p>
136+
<div class="flex w-full flex-1 flex-col gap-4 text-[13px] font-[440] leading-5 tracking-[-0.04px] text-v2-text-text-base">
137+
<p>OpenCode Desktop is now built around tabs.</p>
138+
<img src={tabsImage} alt="" class="aspect-video w-full rounded-[6px] object-cover" />
139+
<p>
140+
Start a new session in a tab, or open an existing session from any of your projects. Open a new tab when
141+
you're starting something new, and close it when you're done.
142+
</p>
143+
<p>
144+
Keeping a few tabs open makes it easier to organize your active sessions. Rename tabs to something
145+
memorable if you plan to keep them around.
146+
</p>
147+
<p>
148+
You'll find all your sessions and projects on the new Home screen. Selecting a session opens it in a tab.
149+
</p>
150+
<img src={homeImage} alt="" class="aspect-video w-full rounded-[6px] object-cover" />
151+
<p>When you reopen the app, your tabs are still open.</p>
152+
<p>
153+
The new design does not support Git Worktrees yet, it's coming soon. So if you'd prefer to continue using the previous layout
154+
, you can switch between layouts in Settings. Just keep in mind that the new layout will become permanent in a few weeks.
155+
</p>
156+
</div>
140157
</div>
141158
</DrawerContent>
142159
</Drawer>

0 commit comments

Comments
 (0)