Skip to content

Commit 1754480

Browse files
fix(app): remove inactive help button (anomalyco#37217)
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
1 parent 4a760b5 commit 1754480

3 files changed

Lines changed: 3 additions & 45 deletions

File tree

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

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,9 @@ import introducingTabsVideo from "@/assets/help/introducing-tabs.mp4"
88
import homeImage from "@/assets/help/home.png"
99
import tabsImage from "@/assets/help/tabs.png"
1010

11-
const helpIcon = (
12-
<svg
13-
width="16"
14-
height="16"
15-
viewBox="0 0 16 16"
16-
fill="none"
17-
xmlns="http://www.w3.org/2000/svg"
18-
aria-hidden="true"
19-
data-slot="icon-svg"
20-
>
21-
<path
22-
d="M6.94235 10.5714V10.4854C6.94617 9.76302 7.01879 9.18777 7.16022 8.75968C7.30546 8.33158 7.50804 7.98567 7.76796 7.72193C8.02787 7.45819 8.34321 7.21548 8.71397 6.99379C8.93948 6.85619 9.14206 6.69374 9.32171 6.50645C9.50518 6.31916 9.64851 6.10511 9.75171 5.86431C9.85874 5.62351 9.91225 5.35404 9.91225 5.0559C9.91225 4.69661 9.82625 4.38509 9.65424 4.12136C9.48607 3.85762 9.26055 3.65504 8.9777 3.51362C8.69486 3.36837 8.38143 3.29575 8.03743 3.29575C7.73165 3.29575 7.43733 3.35882 7.15448 3.48495C6.87546 3.61108 6.6423 3.80984 6.45501 4.08122C6.26772 4.3526 6.15878 4.70425 6.12821 5.13617H4.56299C4.59357 4.47109 4.76557 3.9054 5.07899 3.43908C5.39242 2.96894 5.80522 2.61156 6.31741 2.36694C6.83341 2.12231 7.40675 2 8.03743 2C8.72161 2 9.31789 2.13378 9.82625 2.40134C10.3384 2.66507 10.734 3.0301 11.0131 3.49642C11.2959 3.96273 11.4373 4.49976 11.4373 5.1075C11.4373 5.53177 11.3724 5.914 11.2424 6.25418C11.1124 6.59436 10.9251 6.89823 10.6805 7.16579C10.4397 7.43335 10.1492 7.67033 9.80905 7.87673C9.48033 8.08313 9.21468 8.301 9.0121 8.53034C8.80952 8.75585 8.66237 9.02341 8.57063 9.33302C8.4789 9.64262 8.42921 10.0268 8.42156 10.4854V10.5714H6.94235ZM7.72782 14C7.43351 14 7.17933 13.8949 6.96528 13.6847C6.75506 13.4744 6.64994 13.2203 6.64994 12.9221C6.64994 12.6278 6.75506 12.3755 6.96528 12.1653C7.17933 11.9551 7.43351 11.85 7.72782 11.85C8.02214 11.85 8.27441 11.9551 8.48463 12.1653C8.69868 12.3755 8.8057 12.6278 8.8057 12.9221C8.8057 13.1209 8.75601 13.3024 8.65663 13.4668C8.55726 13.6273 8.4273 13.7573 8.26676 13.8567C8.10623 13.9522 7.92658 14 7.72782 14Z"
23-
fill="var(--v2-icon-icon-base)"
24-
/>
25-
</svg>
26-
)
27-
28-
const triggerClass =
29-
"size-7 !rounded-full shrink-0 bg-v2-background-bg-base shadow-[var(--v2-elevation-button-neutral)]"
30-
3111
// TODO: wire to changelog / seen-state when available
3212
const showPopover = () => true
3313

34-
export function HelpButton() {
35-
const platform = usePlatform()
36-
37-
return (
38-
<a
39-
href="https://opencode.ai"
40-
aria-label="Open the OpenCode website"
41-
data-component="icon-button-v2"
42-
data-size="large"
43-
class={`${triggerClass} fixed bottom-5 right-5 z-50 flex items-center justify-center`}
44-
onClick={(event) => {
45-
event.preventDefault()
46-
platform.openLink(event.currentTarget.href)
47-
}}
48-
>
49-
{helpIcon}
50-
</a>
51-
)
52-
}
53-
5414
// can remove this after the tabs rollout has been out for a while
5515
export function TabsInfoPopup() {
5616
const settings = useSettings()
@@ -61,7 +21,7 @@ export function TabsInfoPopup() {
6121
<Drawer open={drawerOpen()} onOpenChange={setDrawerOpen} side="right">
6222
<Show when={settings.general.shouldDisplayTabsToast()}>
6323
<div
64-
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)]"
24+
class="fixed bottom-5 right-5 z-50 h-[240px] w-[192px] rounded-[8px] bg-v2-background-bg-base p-1 shadow-[var(--v2-elevation-floating)]"
6525
aria-label="Introducing Tabs. Organize your work and active sessions with tabs"
6626
>
6727
<button

packages/app/src/pages/layout-new.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createEffect, Suspense, type ParentProps } from "solid-js"
22
import { useNavigate } from "@solidjs/router"
33
import { DebugBar } from "@/components/debug-bar"
4-
import { HelpButton, TabsInfoPopup } from "@/components/help-button"
4+
import { TabsInfoPopup } from "@/components/help-button"
55
import { Titlebar, type TitlebarUpdate } from "@/components/titlebar"
66
import { usePlatform } from "@/context/platform"
77
import { setNavigate } from "@/utils/notification-click"
@@ -38,7 +38,6 @@ export default function NewLayout(props: ParentProps) {
3838
</main>
3939
{import.meta.env.DEV && <DebugBar inline />}
4040
<TabsInfoPopup />
41-
<HelpButton />
4241
<ToastRegion v2 />
4342
</div>
4443
)

packages/app/src/pages/layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme/context"
5454
import { useCommand, type CommandOption } from "@/context/command"
5555
import { ConstrainDragXAxis, getDraggableId } from "@/utils/solid-dnd"
5656
import { DebugBar } from "@/components/debug-bar"
57-
import { HelpButton, TabsInfoPopup } from "@/components/help-button"
57+
import { TabsInfoPopup } from "@/components/help-button"
5858
import { Titlebar, type TitlebarUpdate } from "@/components/titlebar"
5959
import { useDirectoryPicker } from "@/components/directory-picker"
6060
import { ServerConnection, useServer } from "@/context/server"
@@ -2396,7 +2396,6 @@ export default function LegacyLayout(props: ParentProps) {
23962396
{import.meta.env.DEV && import.meta.env.VITE_DISABLE_DEBUG_BAR !== "1" && <DebugBar />}
23972397
</div>
23982398
<TabsInfoPopup />
2399-
<HelpButton />
24002399
<ToastRegion v2={false} />
24012400
</div>
24022401
)

0 commit comments

Comments
 (0)