feat: add basic profile panel
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-29 15:24:16 +07:00
parent cf81443411
commit 6dfa3a2335
13 changed files with 906 additions and 296 deletions
+12 -1
View File
@@ -5,7 +5,7 @@ use gpui::{
AnyView, App, AppContext as _, Context, Entity, InteractiveElement as _, IntoElement,
ParentElement as _, Render, SharedString, Styled as _, Subscription, WeakEntity, Window, div,
};
use nostr::prelude::EventId;
use nostr::prelude::{EventId, PublicKey};
use settings::{AppearanceMode, SettingsStore};
use signed_core::{Announcement, RepoAddr};
use signed_state::{Backend, BackendEvent, RepoStore};
@@ -27,6 +27,7 @@ use crate::identity::passphrase::PassphraseDialog;
use crate::inbox::InboxView;
use crate::issues::IssuesView;
use crate::issues::detail::IssueDetailView;
use crate::profile::ProfileView;
use crate::pull_requests::{PullRequestDetailView, PullRequestsView};
use crate::repo::RepoDetailView;
use crate::shared::log_dropped;
@@ -245,6 +246,16 @@ impl AppRoot {
InboxView::open_panel(&self.panels, cx.weak_entity(), window, cx);
}
/// Opens a user's profile in the main stack, keyed by their public key.
pub(crate) fn open_profile(
&mut self,
public_key: PublicKey,
window: &mut Window,
cx: &mut Context<Self>,
) {
ProfileView::open(&self.panels, cx.weak_entity(), public_key, window, cx);
}
/// Opens the dialog that creates a repository.
fn open_create_repository(&mut self, window: &mut Window, cx: &mut Context<Self>) {
self.titlebar.update(cx, |titlebar, cx| {