aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mod.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-19 23:58:17 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-20 00:00:16 +0300
commitfb93e3747544afc3288d7b5e831d5ca3dd5c3768 (patch)
tree95ed3208395ebe68dc49fbd7d8edb7e16597ba49 /src/app/input/mod.rs
parent2bebac461b1d5d6a1ec42d70c2338cf27eee8c56 (diff)
feat: surface agent integrations in onboarding
Diffstat (limited to 'src/app/input/mod.rs')
-rw-r--r--src/app/input/mod.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs
index 18dd8856..ae8fb12b 100644
--- a/src/app/input/mod.rs
+++ b/src/app/input/mod.rs
@@ -37,7 +37,7 @@ pub(crate) use self::{
handle_keybind_help_key, handle_rename_key, handle_resize_key,
},
navigate::terminal_direct_navigation_action,
- settings::open_settings,
+ settings::open_settings_at,
};
use self::{
modal::{
@@ -181,6 +181,7 @@ impl App {
}
let previous_agent_panel_scope = self.state.agent_panel_scope;
+ let previous_settings_section = self.state.settings.section;
if let Some(action) = self.state.handle_mouse(mouse) {
match action {
SettingsAction::SaveTheme(name) => self.save_theme(&name),
@@ -189,8 +190,16 @@ impl App {
SettingsAction::SaveAgentBorderLabels(enabled) => {
self.save_agent_border_labels(enabled)
}
+ SettingsAction::InstallRecommendedIntegrations => {
+ self.install_recommended_integrations()
+ }
}
}
+ if previous_settings_section != crate::app::state::SettingsSection::Integrations
+ && self.state.settings.section == crate::app::state::SettingsSection::Integrations
+ {
+ self.refresh_integration_recommendations();
+ }
if self.state.agent_panel_scope != previous_agent_panel_scope {
self.save_agent_panel_scope(self.state.agent_panel_scope);
}