chore(app): solidjs refactoring (#13399)

This commit is contained in:
Adam 2026-03-02 10:50:50 -06:00 committed by GitHub
parent 0a3a3216db
commit 8176bafc55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 941 additions and 307 deletions

View file

@ -347,24 +347,6 @@ export default function Page() {
if (path) file.load(path)
})
createEffect(() => {
const current = tabs().all()
if (current.length === 0) return
const next = normalizeTabs(current)
if (same(current, next)) return
tabs().setAll(next)
const active = tabs().active()
if (!active) return
if (!active.startsWith("file://")) return
const normalized = normalizeTab(active)
if (active === normalized) return
tabs().setActive(normalized)
})
const info = createMemo(() => (params.id ? sync.session.get(params.id) : undefined))
const diffs = createMemo(() => (params.id ? (sync.data.session_diff[params.id] ?? []) : []))
const reviewCount = createMemo(() => Math.max(info()?.summary?.files ?? 0, diffs().length))