feat(desktop): review flow

This commit is contained in:
Adam 2025-11-06 15:13:02 -06:00
commit 96c57418f3
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
11 changed files with 340 additions and 76 deletions

View file

@ -1,6 +1,7 @@
import { createMemo, For, Match, Show, Switch } from "solid-js"
export function DiffChanges(props: {
class?: string
changes: { additions: number; deletions: number } | { additions: number; deletions: number }[]
variant?: "default" | "bars"
}) {
@ -92,7 +93,11 @@ export function DiffChanges(props: {
return (
<Show when={variant() === "default" ? total() > 0 : true}>
<div data-component="diff-changes" data-variant={variant()}>
<div
data-component="diff-changes"
data-variant={variant()}
classList={{ [props.class ?? ""]: true }}
>
<Switch>
<Match when={variant() === "bars"}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 12" fill="none">