Skip to content

Commit 19ce336

Browse files
authored
show individual untracked files in git changes widget (#8574)
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
1 parent d627a65 commit 19ce336

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ui/goose2/src-tauri/src/commands/git_changes.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ pub fn get_changed_files(path: String) -> Result<Vec<ChangedFile>, String> {
2020
return Ok(Vec::new());
2121
}
2222

23-
let status_output = run_git_success(&repo_path, &["status", "--porcelain"])?;
23+
let status_output = run_git_success(
24+
&repo_path,
25+
&["status", "--porcelain", "--untracked-files=all"],
26+
)?;
2427
if status_output.trim().is_empty() {
2528
return Ok(Vec::new());
2629
}

ui/goose2/src/features/chat/ui/widgets/Widget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ interface WidgetProps {
1111
export function Widget({ title, icon, action, flush, children }: WidgetProps) {
1212
return (
1313
<div className="overflow-hidden rounded-md border border-border">
14-
<div className="flex h-8 items-center justify-between bg-background-alt px-3">
14+
<div className="flex h-8 items-center justify-between gap-2 bg-background-alt px-3">
1515
<div className="flex min-w-0 items-center gap-2 text-xs font-medium text-foreground">
1616
{icon}
1717
{title}
1818
</div>
19-
{action}
19+
{action && <div className="shrink-0">{action}</div>}
2020
</div>
2121
{flush ? (
2222
children

0 commit comments

Comments
 (0)