feat: add si cli
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 17:02:38 +07:00
parent 6dfa3a2335
commit 9b5c7a34db
11 changed files with 517 additions and 54 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ impl Render for ExitDialog {
.label("Exit")
.variant(ButtonVariant::Destructive)
.on_click(move |_, _, cx| {
backend.update(cx, |backend, cx| backend.sign_out(cx));
backend.update(cx, |backend, cx| backend.sign_out(cx)).detach();
confirm_close.close(cx);
})
.into_any_element(),
+4 -9
View File
@@ -2,9 +2,8 @@ use std::sync::Arc;
use gpui::prelude::FluentBuilder as _;
use gpui::{
AnyElement, App, AppContext as _, Context, Entity, IntoElement, ParentElement as _, Pixels,
Render, ScrollHandle, SharedString, Styled as _, Subscription, Task, WeakEntity, Window, div,
px,
AnyElement, App, AppContext as _, Context, Entity, IntoElement, ParentElement as _, Render,
ScrollHandle, SharedString, Styled as _, Subscription, Task, WeakEntity, Window, div, px,
};
use helpers::{
ActivityItem, ActivityRow, RepositoryItem, RepositoryRow, activity_items, repository_items,
@@ -25,10 +24,6 @@ use crate::shared::log_dropped;
mod helpers;
const AVATAR_SIDE: Pixels = px(96.);
/// The centered content width, so the profile does not stretch across a wide window.
const CONTENT_WIDTH: Pixels = px(720.);
/// A user's identity, announced repositories, and recent activity.
pub struct ProfileView {
scroll_handle: ScrollHandle,
@@ -181,7 +176,7 @@ impl ProfileView {
.name(name.clone())
.picture(profile.picture())
.fully_rounded(true)
.size(AVATAR_SIDE),
.size_24(),
)
.child(div().text_xl().font_semibold().child(name))
.when_some(about, |this, about| {
@@ -262,7 +257,7 @@ impl Render for ProfileView {
.child(
v_flex().w_full().py_12().items_center().child(
v_flex()
.w(CONTENT_WIDTH)
.w(px(720.))
.px_6()
.gap_10()
.child(self.render_identity(cx))