Skip to content

Commit e67633c

Browse files
itsJess1caclaude
andcommitted
Add complete demo GIF gallery and optimize build demo timing
- Add all 6 demo GIFs to public directory (playground, minimal, gaming, build, data, dashboard) - Update README with complete collapsible demo gallery featuring all GIFs - Optimize build demo timing: reduce stage durations by ~90% and increase update frequency 5x - Perfect timing for 5-10 second GIF captures showing full build pipeline - All demos now have engaging visual demonstrations with proper feature descriptions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a2296a7 commit e67633c

File tree

10 files changed

+91
-39
lines changed

10 files changed

+91
-39
lines changed

README.md

Lines changed: 65 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,46 +85,96 @@ status.info('💾 Memory: 2.1GB');
8585

8686
## 🎬 Demo Gallery
8787

88-
### Minimal Dashboard
89-
<!-- Add GIF showing basic two-zone layout -->
90-
*[GIF placeholder: Basic logs + status layout]*
88+
<details>
89+
<summary><b>🚀 Playground Demo</b> - Basic file processing with progress tracking</summary>
90+
91+
The main playground demonstration showing file processing with real-time progress bars, metadata tracking, and logging.
92+
93+
```bash
94+
pnpm run playground
95+
```
96+
97+
*Features: Progress bars, batch processing, real-time metrics, file logging*
98+
99+
![Hero Demo GIF](public/playground.gif)
100+
101+
</details>
102+
103+
<details>
104+
<summary><b>📊 Minimal Dashboard</b> - Simple two-zone layout</summary>
105+
106+
Clean, minimal interface demonstrating basic zone creation with application logs and system status.
91107

92108
```bash
93109
pnpm run demo:minimal
94110
```
95111

96-
### Gaming Interface
97-
<!-- Add GIF showing gaming demo with emojis and complex layout -->
98-
*[GIF placeholder: Gaming zones with emojis, stats, leaderboard]*
112+
*Features: Basic layouts, log levels, system metrics, auto-updating status*
113+
114+
![Demo Minimal GIF](public/demo-minimal.gif)
115+
116+
</details>
117+
118+
<details>
119+
<summary><b>🎮 Gaming Interface Demo</b> - Multi-zone gaming server monitor</summary>
120+
121+
Comprehensive gaming server monitoring interface with player activity, server stats, game events, and match results.
99122

100123
```bash
101124
pnpm run demo:gaming
102125
```
103126

104-
### Build System Monitor
105-
<!-- Add GIF showing build pipeline visualization -->
106-
*[GIF placeholder: Build stages, progress bars, test results]*
127+
*Features: Multi-zone layout, real-time stats, emoji rendering, leaderboards*
128+
129+
![Gaming Demo GIF](public/demo-gaming.gif)
130+
131+
</details>
132+
133+
<details>
134+
<summary><b>🔧 Build System Monitor</b> - Complex build pipeline visualization</summary>
135+
136+
Advanced build pipeline demonstration with progress tracking, build logs, test results, and deployment status.
107137

108138
```bash
109139
pnpm run demo:build
110140
```
111141

112-
### Data Processing Dashboard
113-
<!-- Add GIF showing data processing with metrics -->
114-
*[GIF placeholder: Data streams, processing metrics, charts]*
142+
*Features: Build stages, progress indicators, test results, deployment tracking*
143+
144+
![Build Demo GIF](public/demo-build.gif)
145+
146+
</details>
147+
148+
<details>
149+
<summary><b>📈 Data Processing Dashboard</b> - Real-time data pipeline</summary>
150+
151+
Real-time data processing pipeline with input queues, processing steps, output results, and performance metrics.
115152

116153
```bash
117154
pnpm run demo:data
118155
```
119156

120-
### Full Development Dashboard
121-
<!-- Add GIF showing comprehensive development environment -->
122-
*[GIF placeholder: Comprehensive multi-zone developer interface]*
157+
*Features: Queue management, processing analytics, throughput metrics, auto-height zones*
158+
159+
![Data Demo GIF](public/demo-data.gif)
160+
161+
</details>
162+
163+
<details>
164+
<summary><b>🖥️ Full Development Dashboard</b> - Complete monitoring interface</summary>
165+
166+
Comprehensive developer monitoring interface with system metrics, application logs, alerts, and status indicators.
123167

124168
```bash
125169
pnpm run demo:dashboard
126170
```
127171

172+
*Features: System monitoring, log aggregation, alert management, comprehensive layouts*
173+
174+
![Dashboard Demo GIF](public/demo-dashboard.gif)
175+
176+
</details>
177+
128178
---
129179

130180
## 📚 API Reference

playground/demo-build-system.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const buildProgress = zonr.addZone({
88
name: "Build Pipeline",
99
width: "60%",
1010
height: 12,
11-
borderColor: "cyan"
11+
borderColor: "blue"
1212
});
1313

1414
// Build logs zone
1515
const buildLogs = zonr.addZone({
1616
name: "Build Output",
1717
width: "40%",
1818
height: "auto",
19-
borderColor: "green"
19+
borderColor: "blue"
2020
});
2121

2222
// Test results zone
@@ -36,16 +36,16 @@ const deployment = zonr.addZone({
3636
});
3737

3838
const buildSteps = [
39-
{ name: 'Environment Setup', duration: 2000 },
40-
{ name: 'Dependency Installation', duration: 8000 },
41-
{ name: 'Code Compilation', duration: 12000 },
42-
{ name: 'Unit Tests', duration: 15000 },
43-
{ name: 'Integration Tests', duration: 18000 },
44-
{ name: 'Code Coverage Analysis', duration: 5000 },
45-
{ name: 'Security Scan', duration: 10000 },
46-
{ name: 'Build Artifacts', duration: 3000 },
47-
{ name: 'Docker Image Build', duration: 20000 },
48-
{ name: 'Quality Gate Check', duration: 2000 }
39+
{ name: 'Environment Setup', duration: 400 },
40+
{ name: 'Dependency Installation', duration: 800 },
41+
{ name: 'Code Compilation', duration: 1000 },
42+
{ name: 'Unit Tests', duration: 800 },
43+
{ name: 'Integration Tests', duration: 1200 },
44+
{ name: 'Code Coverage Analysis', duration: 600 },
45+
{ name: 'Security Scan', duration: 800 },
46+
{ name: 'Build Artifacts', duration: 500 },
47+
{ name: 'Docker Image Build', duration: 1500 },
48+
{ name: 'Quality Gate Check', duration: 400 }
4949
];
5050

5151
let currentStep = 0;
@@ -165,7 +165,7 @@ const generateBuildLogs = () => {
165165
]
166166
};
167167

168-
const stepLogs = logs[step.name] || [];
168+
const stepLogs = logs[step.name as keyof typeof logs] || [];
169169
if (stepLogs.length > 0) {
170170
const randomLog = stepLogs[Math.floor(Math.random() * stepLogs.length)];
171171
buildLogs.info(randomLog);
@@ -200,6 +200,7 @@ const generateTestResults = () => {
200200

201201
const updateDeployment = () => {
202202
if (currentStep < 8) {
203+
deployment.clear();
203204
deployment.info('⏳ Waiting for build completion...');
204205
return;
205206
}
@@ -262,7 +263,7 @@ const buildInterval = setInterval(() => {
262263
generateTestResults();
263264
updateDeployment();
264265

265-
}, 1000);
266+
}, 200);
266267

267268
// Initial display
268269
updateBuildProgress();

playground/demo-dashboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const systemMetrics = zonr.addZone({
88
name: "System Metrics",
99
width: "30%",
1010
height: "auto",
11-
borderColor: "green"
11+
borderColor: "blue"
1212
});
1313

1414
// Center - main logs
@@ -33,7 +33,7 @@ const statusBar = zonr.addZone({
3333
width: "100%",
3434
height: 5,
3535
showHeader: false,
36-
borderColor: "yellow"
36+
borderColor: "blue"
3737
});
3838

3939
// Simulate system metrics

playground/demo-data-processing.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const inputQueue = zonr.addZone({
88
name: "Input Queue",
99
width: "25%",
1010
height: "auto",
11-
borderColor: "yellow"
11+
borderColor: "blue"
1212
});
1313

1414
// Processing pipeline - shows current operations
@@ -24,7 +24,7 @@ const outputResults = zonr.addZone({
2424
name: "Output Results",
2525
width: "25%",
2626
height: "auto",
27-
borderColor: "green"
27+
borderColor: "blue"
2828
});
2929

3030
// Statistics and metrics at bottom
@@ -61,8 +61,8 @@ const generateDataRecord = () => {
6161
};
6262

6363
// Processing queue
64-
const processingQueue = [];
65-
const completedQueue = [];
64+
const processingQueue: Record<string, unknown>[] = [];
65+
const completedQueue: Record<string, unknown>[] = [];
6666

6767
const addToInputQueue = () => {
6868
const record = generateDataRecord();
@@ -81,6 +81,7 @@ const processData = () => {
8181
if (processingQueue.length === 0) return;
8282

8383
const record = processingQueue.shift();
84+
if (!record) return;
8485
const processingTime = Math.random() * 2000 + 500; // 0.5-2.5 seconds
8586

8687
// Show processing steps
@@ -102,7 +103,7 @@ const processData = () => {
102103
if (success) {
103104
record.status = 'completed';
104105
record.processedAt = new Date().toISOString();
105-
record.processedSize = Math.floor(record.size * (0.7 + Math.random() * 0.6)); // Compression
106+
record.processedSize = Math.floor(record.size as number * (0.7 + Math.random() * 0.6)); // Compression
106107

107108
completedQueue.push(record);
108109
processingPipeline.info(` └─ ✅ Completed in ${(processingTime/1000).toFixed(1)}s`);

playground/demo-gaming.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ const playerActivity = zonr.addZone({
88
name: "Player Activity",
99
width: "40%",
1010
height: "auto",
11-
borderColor: "cyan"
11+
borderColor: "blue"
1212
});
1313

1414
// Server stats
1515
const serverStats = zonr.addZone({
1616
name: "Server Statistics",
1717
width: "30%",
1818
height: "auto",
19-
borderColor: "green"
19+
borderColor: "blue"
2020
});
2121

2222
// Chat/Events
2323
const gameEvents = zonr.addZone({
2424
name: "Game Events",
2525
width: "30%",
2626
height: "auto",
27-
borderColor: "yellow"
27+
borderColor: "blue"
2828
});
2929

3030
// Match results

public/demo-build.gif

996 KB
Loading

public/demo-dashboard.gif

1.77 MB
Loading

public/demo-data.gif

3.31 MB
Loading

public/demo-gaming.gif

2.29 MB
Loading

public/demo-minimal.gif

477 KB
Loading

0 commit comments

Comments
 (0)