Restore base hooks browser guidance

This commit is contained in:
Abhinav Vedmala
2026-04-30 15:35:29 -07:00
parent 20fdb43399
commit c959b049ae
7 changed files with 11 additions and 1 deletions

View File

@@ -247,7 +247,11 @@ impl HooksBrowserView {
) -> Vec<Line<'static>> {
let mut lines = vec![format!("{} hooks", event_label(event_name)).bold().into()];
match review_needed_count {
0 => {}
0 => lines.push(
"Turn hooks on or off. Your changes are saved automatically."
.dim()
.into(),
),
1 => lines.push("1 hook needs review before it can run.".dim().into()),
count => lines.push(
format!("{count} hooks need review before they can run.")

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 44)"
---
PreToolUse hooks
Turn hooks on or off. Your changes are s
[x] Hook 1

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
---
PermissionRequest hooks
Turn hooks on or off. Your changes are saved automatically.
No hooks installed for this event.

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
---
PreToolUse hooks
Turn hooks on or off. Your changes are saved automatically.
[x] Hook 1
[ ] Hook 2

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
---
PermissionRequest hooks
Turn hooks on or off. Your changes are saved automatically.
[x] Hook 1

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
---
PreToolUse hooks
Turn hooks on or off. Your changes are saved automatically.
[x] Hook 2
[x] Hook 3

View File

@@ -4,6 +4,7 @@ expression: "render_lines(&view, 112)"
---
PreToolUse hooks
Turn hooks on or off. Your changes are saved automatically.
[x] Hook 1
[x] Hook 2