refactor: consolidate shared ui helpers and prune unused code

This commit is contained in:
2026-11-22 18:23:21 +07:00
parent 4a72f2b4a0
commit 9daee9d54d
82 changed files with 3607 additions and 7184 deletions
+2 -2
View File
@@ -15,6 +15,7 @@ use signed_state::{Backend, BackendEvent, Inbox, RefreshGate, RefreshRequest, Re
use ui::alert::{Alert, AlertSeverity, AlertStyle};
use ui::button::Button;
use ui::common::{StyledExt as _, h_flex, v_flex};
use ui::empty_state::EmptyState;
use ui::icons::{Icon, IconRole};
use ui::layout::panel::Panel;
use ui::scroll_area::ScrollArea;
@@ -25,7 +26,6 @@ use helpers::{empty_section_row, repo_header, thread};
use crate::repo::actions::{RepoItem, open_repo_item};
use crate::repo::helpers::announcement_display_name;
use crate::shared::widgets::empty_state;
use crate::workspace::Workspace;
const MAX_SUB_ACTIVITIES: usize = 5;
@@ -470,7 +470,7 @@ impl Render for InboxView {
.min_h_0()
.px_4()
.child(if rows.is_empty() {
empty_state("You're all caught up.")
EmptyState::centered("You're all caught up.")
} else {
ScrollArea::new("inbox-scroll")
.flex_1()