Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,14 @@ fn header_hints(app: &App) -> Vec<Line<'static>> {
(Action::Describe, "describe"),
],
),
hint_line(app, &[(Action::Edit, "edit"), (Action::Delete, "delete")]),
hint_line(
app,
&[
(Action::Edit, "edit"),
(Action::Delete, "delete"),
(Action::NsResources, "resources"),
],
),
],
"helm" => vec![
hint_line(app, &[(Action::Open, "history")]),
Expand Down Expand Up @@ -7234,6 +7241,16 @@ mod tests {
assert!(text.contains("i version"), "{text}");
}

#[tokio::test]
async fn namespace_rows_hint_the_ns_resources_key() {
let (tx, _rx) = tokio::sync::mpsc::channel(16);
let mut app = App::new(crate::k8s::Cluster::fake(), tx);
app.switch_kind("namespaces");
let text: Vec<String> = header_hints(&app).iter().map(line_text).collect();
let text = text.join("\n");
assert!(text.contains("R resources"), "{text}");
}

#[tokio::test]
async fn csr_rows_hint_both_approve_and_deny() {
let (tx, _rx) = tokio::sync::mpsc::channel(16);
Expand Down
Loading