feat: add si command line interface (#37)
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

Reviewed-on: #37
This commit was merged in pull request #37.
This commit is contained in:
2026-11-30 00:34:44 +00:00
parent 6dfa3a2335
commit b7e1ca7c86
20 changed files with 1252 additions and 75 deletions
+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))