chore(settings): hide github tile and feature /push in popular commands

This commit is contained in:
James Peter
2025-11-21 11:34:30 +10:00
parent 4ea810fae1
commit 0ff8a3c231
2 changed files with 12 additions and 8 deletions
+2 -8
View File
@@ -20000,6 +20000,7 @@ Have we met every part of this goal and is there no further work to do?"#
SettingsSection::ALL
.iter()
.copied()
.filter(|section| !matches!(section, SettingsSection::Github))
.map(|section| {
let summary = match section {
SettingsSection::Model => self.settings_summary_model(),
@@ -20010,7 +20011,7 @@ Have we met every part of this goal and is there no further work to do?"#
SettingsSection::AutoDrive => self.settings_summary_auto_drive(),
SettingsSection::Review => self.settings_summary_review(),
SettingsSection::Validation => self.settings_summary_validation(),
SettingsSection::Github => self.settings_summary_github(),
SettingsSection::Github => None,
SettingsSection::Limits => self.settings_summary_limits(),
SettingsSection::Chrome => self.settings_summary_chrome(),
SettingsSection::Mcp => self.settings_summary_mcp(),
@@ -20170,13 +20171,6 @@ Have we met every part of this goal and is there no further work to do?"#
Some(format!("{} · {}", model_part, auto_label))
}
fn settings_summary_github(&self) -> Option<String> {
Some(format!(
"Workflows on push: {}",
if self.config.github.check_workflows_on_push { "On" } else { "Off" }
))
}
fn settings_summary_limits(&self) -> Option<String> {
if let Some(snapshot) = &self.rate_limit_snapshot {
let primary = snapshot.primary_used_percent.clamp(0.0, 100.0).round() as i64;
+10
View File
@@ -2120,6 +2120,16 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
Style::default().fg(crate::colors::primary()),
),
]));
lines.push(Line::from(vec![
Span::styled("/push", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Push.description())
.style(Style::default().add_modifier(Modifier::DIM)),
Span::styled(
" NEW",
Style::default().fg(crate::colors::primary()),
),
]));
lines.push(Line::from(vec![
Span::styled("/auto", Style::default().fg(crate::colors::primary())),
Span::from(" - "),