feat: lint, wording, WIP

This commit is contained in:
Aaron Iker 2026-01-13 19:39:35 +01:00
commit 0ed60110bd

View file

@ -72,17 +72,17 @@ export const SessionReview = (props: SessionReviewProps) => {
<div data-slot="session-review-actions"> <div data-slot="session-review-actions">
<Show when={props.onDiffStyleChange}> <Show when={props.onDiffStyleChange}>
<RadioGroup <RadioGroup
options={["unified", "split"] as const} options={["unified", "split"]}
current={diffStyle()} current={diffStyle()}
value={(style) => style} value={(style) => style}
label={(style) => (style === "unified" ? "Unified" : "Split")} label={(style) => (style === "unified" ? "Unified" : "Split")}
onSelect={(style) => style && props.onDiffStyleChange?.(style)} onSelect={(style) => style && props.onDiffStyleChange?.(style as SessionReviewDiffStyle)}
/> />
</Show> </Show>
<Button size="normal" icon="chevron-grabber-vertical" onClick={handleExpandOrCollapseAll}> <Button size="normal" icon="chevron-grabber-vertical" onClick={handleExpandOrCollapseAll}>
<Switch> <Switch>
<Match when={open().length > 0}>Collapse all</Match> <Match when={open().length > 0}>Collapse</Match>
<Match when={true}>Expand all</Match> <Match when={true}>Expand</Match>
</Switch> </Switch>
</Button> </Button>
{props.actions} {props.actions}