Skip to content

Commit b075fee

Browse files
CopilotGZTimeWalker
andcommitted
Add build workflow, align styles with Slint, and create implementation checklist
Co-authored-by: GZTimeWalker <[email protected]>
1 parent 901b8a0 commit b075fee

File tree

5 files changed

+523
-25
lines changed

5 files changed

+523
-25
lines changed

.github/workflows/build-gpui.yaml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
---
2+
#-------------------------------------------------------------------------------
3+
# Workflow configuration for GPUI desktop app
4+
#-------------------------------------------------------------------------------
5+
6+
name: "GPUI Desktop Build"
7+
on:
8+
pull_request:
9+
paths:
10+
- ".github/workflows/build-gpui.yaml"
11+
- "Cargo.toml"
12+
- "crates/wsrx-desktop-gpui/**"
13+
workflow_dispatch:
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
#-------------------------------------------------------------------------------
19+
# Workflow jobs
20+
#-------------------------------------------------------------------------------
21+
22+
jobs:
23+
build-linux:
24+
name: "Build GPUI Desktop on Linux"
25+
runs-on: ubuntu-22.04
26+
steps:
27+
# Checkout repository
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
submodules: recursive
33+
34+
# Get version
35+
- name: Get git version
36+
id: git_tag_version
37+
run: |
38+
export BUILD_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0-dev")
39+
echo "Build at version $BUILD_VERSION"
40+
echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_OUTPUT
41+
42+
# Install dependencies
43+
- name: Install dependencies
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libgl1-mesa-dev
47+
48+
# Build application
49+
- name: Build GPUI desktop application
50+
run: |
51+
rustup update stable && rustup default stable
52+
cargo build --release -p wsrx-desktop-gpui
53+
54+
# Compress binaries
55+
- name: Compress Binaries
56+
run: tar --transform='s!.*/!!' -czvf wsrx-desktop-gpui-linux-x64.tar.gz target/release/wsrx-desktop-gpui
57+
58+
# Move files
59+
- name: Move files
60+
run: |
61+
mv wsrx-desktop-gpui-linux-x64.tar.gz wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-linux-x64.tar.gz
62+
63+
# Upload package
64+
- name: Upload package
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-linux-x64
68+
path: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-linux-x64.tar.gz
69+
70+
build-windows:
71+
name: "Build GPUI Desktop on Windows"
72+
runs-on: windows-2022
73+
steps:
74+
# Checkout repository
75+
- name: Checkout repository
76+
uses: actions/checkout@v4
77+
with:
78+
fetch-depth: 0
79+
submodules: recursive
80+
81+
# Get version
82+
- name: Get git version
83+
id: git_tag_version
84+
run: |
85+
echo BUILD_VERSION=$(git describe --tags --abbrev=0 2>$null) | Out-File -FilePath $env:GITHUB_OUTPUT -Append
86+
if ($LASTEXITCODE -ne 0) {
87+
echo "BUILD_VERSION=v0.0.0-dev" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
88+
}
89+
90+
- name: Install NASM for aws-lc-rs
91+
uses: ilammy/setup-nasm@v1
92+
93+
- name: Install ninja-build
94+
uses: seanmiddleditch/gha-setup-ninja@v5
95+
96+
# Build application
97+
- name: Build GPUI desktop application
98+
run: |
99+
rustup update stable && rustup default stable
100+
cargo build --release -p wsrx-desktop-gpui
101+
102+
# Compress binaries
103+
- name: Compress Binaries
104+
run: 7z a wsrx-desktop-gpui-windows-x64.zip target/release/wsrx-desktop-gpui.exe
105+
106+
# Move files
107+
- name: Move files
108+
run: |
109+
mv wsrx-desktop-gpui-windows-x64.zip wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-windows-x64.zip
110+
111+
# Upload package
112+
- name: Upload package
113+
uses: actions/upload-artifact@v4
114+
with:
115+
name: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-windows-x64
116+
path: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-windows-x64.zip
117+
118+
build-mac:
119+
name: "Build GPUI Desktop on MacOS"
120+
runs-on: macos-latest
121+
steps:
122+
# Checkout repository
123+
- name: Checkout repository
124+
uses: actions/checkout@v4
125+
with:
126+
fetch-depth: 0
127+
submodules: recursive
128+
129+
# Get version
130+
- name: Get git version
131+
id: git_tag_version
132+
run: |
133+
export BUILD_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0-dev")
134+
echo "Build at version $BUILD_VERSION"
135+
echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_OUTPUT
136+
137+
# Build for ARM64
138+
- name: Build GPUI desktop for ARM64
139+
run: |
140+
rustup update stable && rustup default stable
141+
cargo build --release -p wsrx-desktop-gpui
142+
143+
# Compress ARM64 binaries
144+
- name: Compress ARM64 binaries
145+
run: zip -r -y -X wsrx-desktop-gpui-macos-arm64.zip target/release/wsrx-desktop-gpui
146+
147+
# Move files
148+
- name: Move files
149+
run: |
150+
mv wsrx-desktop-gpui-macos-arm64.zip wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-macos-arm64.zip
151+
152+
# Upload ARM64 package
153+
- name: Upload ARM64 package
154+
uses: actions/upload-artifact@v4
155+
with:
156+
name: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-macos-arm64
157+
path: wsrx-desktop-gpui-${{steps.git_tag_version.outputs.BUILD_VERSION}}-macos-arm64.zip
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
# GPUI vs Slint Implementation Checklist
2+
3+
This document compares the GPUI implementation with the original Slint implementation to track progress and identify gaps.
4+
5+
## Design System / Styling
6+
7+
### Colors & Theming
8+
- [x] **Dark mode palette** - Fully aligned with Slint colors
9+
- [x] Window foreground (#cdd6f4)
10+
- [x] Window background (#151515)
11+
- [x] Window alternate background (#1e1e1e)
12+
- [x] Primary background (#0078D6)
13+
- [x] Border colors (window, element, popup)
14+
- [x] Semantic colors (error, warning, success, info, debug)
15+
- [x] Layer colors (layer-1 through layer-5)
16+
- [ ] **Light mode palette** - Not yet implemented (Slint has it)
17+
- [ ] **Theme switching** - No auto-detect or toggle mechanism yet
18+
19+
### Typography
20+
- [x] **Font sizes** - Aligned with Slint sizing (16px base)
21+
- [x] XS (12px), SM (14px), Base (16px), LG (18px), XL (20px), 2XL (24px)
22+
- [ ] **Font family** - Not set (Slint uses "Reverier Mono")
23+
- [ ] **Font weight variations** - Not implemented
24+
25+
### Spacing System
26+
- [x] **Padding constants** (p-xs through p-xl) - Fully aligned
27+
- [x] **Spacing constants** (s-xs through s-xl) - Fully aligned
28+
- [x] **Border radius** (r-xs through r-xl) - Implemented
29+
- [x] **Height constants** (h-xs through h-xl) - Implemented
30+
- [ ] **Line height** - Not explicitly defined
31+
32+
### Animations & Transitions
33+
- [ ] **Duration constants** - Not implemented (Slint has short/mid/long)
34+
- [ ] **Easing functions** - Not implemented
35+
- [ ] **Animated transitions** - Not implemented (Slint has smooth transitions)
36+
37+
## Layout & Structure
38+
39+
### Main Window
40+
- [x] **Root view** - Implemented with Entity management
41+
- [x] **Sidebar** - Implemented with navigation
42+
- [x] **Main content area** - Implemented with page switching
43+
- [ ] **Frameless window** - Not implemented (Slint has custom window chrome)
44+
- [ ] **Window controls** - Placeholder only (minimize, maximize, close)
45+
- [ ] **Title bar** - Placeholder only
46+
47+
### Sidebar
48+
- [x] **Navigation tabs** - Implemented with 4 pages
49+
- [x] **Active state indicator** - Implemented with left border + highlight
50+
- [x] **Hover effects** - Implemented
51+
- [ ] **Logo/branding** - Not displayed
52+
- [ ] **Icons** - Not implemented (Slint uses SVG icons)
53+
- [ ] **Scope selector** - Not implemented (Slint has scope dropdown)
54+
- [ ] **System info display** - Not implemented in sidebar
55+
56+
## Pages / Views
57+
58+
### Get Started Page
59+
- [x] **Basic structure** - Placeholder implemented
60+
- [ ] **Welcome message** - Not styled/detailed
61+
- [ ] **Update notification** - Not implemented
62+
- [ ] **Quick actions** - Not implemented
63+
- [ ] **Onboarding content** - Not implemented
64+
65+
### Connections Page
66+
- [x] **Tunnel list** - Basic structure implemented
67+
- [x] **Empty state** - Implemented
68+
- [x] **Status indicators** - Color-coded dots
69+
- [x] **Add tunnel button** - Implemented (no functionality)
70+
- [ ] **Tunnel cards styling** - Basic, needs polish
71+
- [ ] **Edit/Delete actions** - Not implemented
72+
- [ ] **Enable/Disable toggle** - Not implemented
73+
- [ ] **Connection statistics** - Not displayed
74+
- [ ] **Scope filtering** - Not implemented
75+
76+
### Network Logs Page
77+
- [x] **Log display** - Basic list implemented
78+
- [x] **Severity color coding** - Implemented (DEBUG, INFO, WARN, ERROR)
79+
- [x] **Clear button** - Implemented
80+
- [ ] **Log filtering** - Not implemented
81+
- [ ] **Auto-scroll toggle** - Not implemented
82+
- [ ] **Log export** - Not implemented
83+
- [ ] **Timestamp formatting** - Basic string display
84+
- [ ] **Search/filter** - Not implemented
85+
86+
### Settings Page
87+
- [x] **Settings sections** - Basic structure implemented
88+
- [x] **Settings display** - Read-only display
89+
- [ ] **Interactive controls** - Not implemented (toggles, selects)
90+
- [ ] **Daemon settings** - Display only
91+
- [ ] **Theme toggle** - Not implemented
92+
- [ ] **Log level selector** - Not implemented
93+
- [ ] **Save/Apply buttons** - Not implemented
94+
- [ ] **Settings persistence** - Bridge exists but not connected
95+
96+
## Components Library
97+
98+
### Implemented Components
99+
- [x] **Button** - With variants (Primary, Secondary, Danger)
100+
- [x] **Modal** - Dialog overlay with backdrop
101+
- [x] **Input** - Text input with placeholder (not fully functional)
102+
- [x] **StatusIndicator** - Color-coded status dots
103+
104+
### Missing Components (Slint has)
105+
- [ ] **ButtonIndicator** - Button with active state indicator
106+
- [ ] **LineEdit** - Functional text input with editing
107+
- [ ] **ScrollView** - Scrollable container
108+
- [ ] **Checkbox** - Toggle control
109+
- [ ] **ComboBox/Select** - Dropdown selection
110+
- [ ] **Tab control** - Tabbed interface
111+
- [ ] **Progress bar** - Loading indicator
112+
- [ ] **Tooltip** - Hover info display
113+
114+
## Bridge Layer / Integration
115+
116+
### Implemented Bridges
117+
- [x] **DaemonBridge** - Basic structure (no actual daemon control)
118+
- [x] **SettingsBridge** - TOML persistence (not connected)
119+
- [x] **SystemInfoBridge** - CPU/memory monitoring (not displayed)
120+
121+
### Missing Functionality
122+
- [ ] **Daemon start/stop** - Not functional
123+
- [ ] **Tunnel management** - Not connected to wsrx core
124+
- [ ] **Real-time log streaming** - Not implemented
125+
- [ ] **Settings load/save UI** - Not wired up
126+
- [ ] **System info display** - Bridge exists but not shown
127+
- [ ] **WebSocket communication** - Not implemented
128+
- [ ] **Scope management** - Not implemented
129+
130+
## Internationalization
131+
- [ ] **i18n support** - Not implemented (Slint has @tr() macros)
132+
- [ ] **Language switching** - Not implemented
133+
- [ ] **Translation files** - Not created
134+
135+
## Platform-Specific Features
136+
137+
### macOS
138+
- [ ] **Custom window chrome** - Not implemented
139+
- [ ] **Title bar handling** - Not implemented
140+
- [ ] **DMG packaging** - Not set up for GPUI app
141+
142+
### Windows
143+
- [ ] **NSIS installer** - Not set up for GPUI app
144+
- [ ] **Portable package** - Not set up
145+
- [ ] **Window chrome** - Not implemented
146+
147+
### Linux
148+
- [ ] **AppImage** - Not set up for GPUI app
149+
- [ ] **Desktop file** - Not created
150+
- [ ] **Window chrome** - Not implemented
151+
152+
## Build & Deployment
153+
- [x] **GitHub workflow** - Created for Linux/Windows/macOS
154+
- [ ] **Artifact generation** - Workflow ready but untested
155+
- [ ] **Release automation** - Not configured
156+
- [ ] **Code signing** - Not configured
157+
- [ ] **Update mechanism** - Not implemented
158+
159+
## Summary Statistics
160+
161+
**Overall Progress**: ~30% complete
162+
163+
### By Category:
164+
- **Design System**: 60% (colors good, animations missing)
165+
- **Layout**: 50% (basic structure, missing chrome/controls)
166+
- **Pages**: 40% (structure exists, functionality missing)
167+
- **Components**: 35% (4/11 components implemented)
168+
- **Bridges**: 40% (structure exists, not functional)
169+
- **i18n**: 0% (not started)
170+
- **Platform Features**: 10% (basic structure only)
171+
- **Build System**: 80% (workflow ready, packaging needed)
172+
173+
### Priority Items for Next Phase:
174+
1. **Implement window controls and title bar** - Critical for usability
175+
2. **Connect bridges to UI** - Make functionality work
176+
3. **Add missing interactive components** (Checkbox, Select, etc.)
177+
4. **Implement theme switching** - Light/dark mode toggle
178+
5. **Add icons to sidebar** - Visual polish
179+
6. **Wire up daemon start/stop** - Core functionality
180+
7. **Test build workflow** - Ensure artifacts work
181+
8. **Add animations/transitions** - Polish and feel

0 commit comments

Comments
 (0)