refactor: replace shell with root view wrapping app content
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-22 21:45:09 +07:00
parent 531493008e
commit ccaa48a112
17 changed files with 259 additions and 284 deletions
+6 -5
View File
@@ -174,7 +174,10 @@ pub(super) fn nostr_clone_url(announcement: &Announcement, nip05: Option<&str>)
}
/// The display name of the announcement addressing `addr`, falling back to its identifier.
pub(crate) fn upstream_display_name(addr: &RepoAddr, announcements: &[Announcement]) -> SharedString {
pub(crate) fn upstream_display_name(
addr: &RepoAddr,
announcements: &[Announcement],
) -> SharedString {
announcements
.iter()
.find(|a| a.addr() == *addr)
@@ -195,10 +198,8 @@ pub(super) fn fork_row(
let (label, clickable) = match &upstream.addr {
Some(addr) => {
let name = upstream_display_name(
addr,
&RepoListStore::global(cx).read(cx).announcements,
);
let name =
upstream_display_name(addr, &RepoListStore::global(cx).read(cx).announcements);
(SharedString::from(format!("Forked from {name}")), true)
}
None => (SharedString::from(upstream.display().as_str()), false),