chore: refactor packages/app files (#13236)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Frank <frank@anoma.ly>
This commit is contained in:
Adam
2026-02-12 09:49:14 -06:00
committed by GitHub
parent 56ad2db020
commit ff4414bb15
93 changed files with 5391 additions and 4451 deletions

View File

@@ -1,8 +1,9 @@
import { Match, Show, Switch } from "solid-js"
import { Show } from "solid-js"
import { Tabs } from "@opencode-ai/ui/tabs"
export function SessionMobileTabs(props: {
open: boolean
mobileTab: "session" | "changes"
hasReview: boolean
reviewCount: number
onSession: () => void
@@ -11,7 +12,7 @@ export function SessionMobileTabs(props: {
}) {
return (
<Show when={props.open}>
<Tabs class="h-auto">
<Tabs value={props.mobileTab} class="h-auto">
<Tabs.List>
<Tabs.Trigger value="session" class="w-1/2" classes={{ button: "w-full" }} onClick={props.onSession}>
{props.t("session.tab.session")}
@@ -22,12 +23,9 @@ export function SessionMobileTabs(props: {
classes={{ button: "w-full" }}
onClick={props.onChanges}
>
<Switch>
<Match when={props.hasReview}>
{props.t("session.review.filesChanged", { count: props.reviewCount })}
</Match>
<Match when={true}>{props.t("session.review.change.other")}</Match>
</Switch>
{props.hasReview
? props.t("session.review.filesChanged", { count: props.reviewCount })
: props.t("session.review.change.other")}
</Tabs.Trigger>
</Tabs.List>
</Tabs>