Skip to repository content28 lines · 829 B · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T05:55:55.438Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
parts.rs
1//! Components used in multiple pickers
2
3use gpui::Entity;
4use project::Project;
5use ui::{CommonAnimationExt, Tooltip, prelude::*};
6
7pub fn project_scan_indicator(
8 has_query: bool,
9 project: &Entity<Project>,
10 cx: &App,
11) -> Option<impl IntoElement> {
12 let is_project_scan_running = {
13 let worktree_store = project.read(cx).worktree_store();
14 !worktree_store.read(cx).initial_scan_completed()
15 };
16 (has_query && is_project_scan_running).then(|| {
17 h_flex()
18 .id("project-scan-indicator")
19 .tooltip(Tooltip::text("Project Scan in Progress…"))
20 .child(
21 Icon::new(IconName::LoadCircle)
22 .color(Color::Accent)
23 .size(IconSize::Small)
24 .with_rotate_animation(2),
25 )
26 })
27}
28