Skip to content

Commit 83d9f9a

Browse files
committed
tab demos videos
1 parent abf35be commit 83d9f9a

File tree

11 files changed

+355
-0
lines changed

11 files changed

+355
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Git attributes for amp-tab-demos
2+
# No Git LFS - using direct MP4 files for GitHub Pages compatibility

.github/workflows/pages.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v4
29+
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: '.'
34+
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IDE
2+
.vscode/
3+
.idea/
4+
5+
# OS
6+
.DS_Store
7+
Thumbs.db
8+
9+
# Temporary files
10+
*.tmp
11+
*.log

README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Amp Tab AI Completion Demos
2+
3+
See how Amp Tab's advanced AI completion compares with other tools across real-world coding scenarios.
4+
5+
## 🎬 **[View Comparisons →](https://sourcegraph-community.github.io/amp-tab-demos/)**
6+
7+
**Click the link above to see side-by-side video comparisons.**
8+
9+
---
10+
11+
## ✨ Features
12+
13+
- **Side-by-side comparisons** - Watch Amp Tab vs competitors simultaneously
14+
- **Independent controls** - Each video has its own playback controls
15+
- **Mobile responsive** - Perfect viewing on any device
16+
- **Zero dependencies** - Just HTML + JavaScript, no servers needed
17+
18+
## 📁 Repository Structure
19+
20+
```
21+
amp-tab-demos/
22+
├── index.html # 🎬 Main comparison page (186 lines, demos embedded)
23+
├── demos/ # 📁 Video files
24+
│ ├── delete-interface-fields/
25+
│ │ ├── README.md # Demo details & reproduction steps
26+
│ │ ├── amp_tab.mp4 # Amp Tab demo
27+
│ │ └── cursor_tab.mp4 # Competitor demo
28+
│ └── delete-proxy-variable/
29+
│ ├── README.md # Demo details & reproduction steps
30+
│ ├── amp_tab.mp4
31+
│ └── cursor_tab.mp4
32+
├── .github/workflows/pages.yml # Auto-deploy to GitHub Pages
33+
├── .gitattributes # Git attributes (no LFS)
34+
├── .gitignore # Standard ignore rules
35+
├── LICENSE # MIT License
36+
└── README.md # This file
37+
```
38+
39+
## ➕ Adding New Demos
40+
41+
1. **Add videos** to a new folder in `demos/`
42+
2. **Update the `DEMOS_DATA` object** in `index.html`:
43+
```javascript
44+
{
45+
"id": "new-demo",
46+
"title": "My New Demo",
47+
"description": "Description of what this demo shows...",
48+
"tags": ["completion", "refactoring"],
49+
"videos": {
50+
"amp": "demos/new-demo/amp_tab.mp4",
51+
"cursor": "demos/new-demo/cursor_tab.mp4"
52+
}
53+
}
54+
```
55+
3. **Commit and push** - GitHub Pages will auto-deploy!
56+
57+
## 🏗️ Extending Beyond Cursor Tab
58+
59+
To add more competitors (VS Code, GitHub Copilot, etc.):
60+
61+
1. **Add video paths** to the `DEMOS_DATA` object in `index.html`:
62+
```javascript
63+
"videos": {
64+
"amp": "demos/demo-name/amp_tab.mp4",
65+
"cursor": "demos/demo-name/cursor_tab.mp4",
66+
"copilot": "demos/demo-name/github_copilot.mp4"
67+
}
68+
```
69+
70+
2. **Update the HTML template** in `index.html` to render additional video containers.
71+
72+
The system is designed to be easily extensible for any number of AI completion tools.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Delete Interface Fields
2+
3+
## Tags
4+
- deletion
5+
- long-range-edits
6+
7+
## Demo Videos
8+
9+
### Amp Tab
10+
![Amp Tab Demo](amp_tab.mp4)
11+
12+
### Cursor Tab
13+
![Cursor Tab Demo](cursor_tab.mp4)
14+
15+
## How to Reproduce
16+
17+
1. Go to https://github.com/sourcegraph/amp
18+
2. Checkout to commit `94f5e9a1c9ef6ad6f77d6f889e8bf6510180b7b6`
19+
3. Navigate to `vscode/src/autoedit/context/retrievers/diagnostics-retriever.ts`
20+
4. Follow the steps from the video
21+
22+
## Description
23+
24+
This demo demonstrates AI-assisted deletion and long-range editing across interface definitions in TypeScript code. It showcases how Amp Tab handles complex refactoring scenarios involving interface modifications and their cascading effects throughout the codebase.
4.84 MB
Binary file not shown.
4.89 MB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Delete Proxy Variable
2+
3+
## Tags
4+
- deletion
5+
6+
## Demo Videos
7+
8+
### Amp Tab
9+
![Amp Tab Demo](amp_tab.mp4)
10+
11+
### Cursor Tab
12+
![Cursor Tab Demo](cursor_tab.mp4)
13+
14+
## How to Reproduce
15+
16+
1. Go to https://github.com/sourcegraph/src-cli
17+
2. Checkout to commit `f454b2c46697d3249a9eadcbcb2d3fe98f72a078`
18+
3. Navigate to `cmd/src/main.go`
19+
4. Follow the steps from the video
20+
21+
## Description
22+
23+
This demo shows AI completion behavior when removing proxy variables and updating related code structures in Go. It highlights how Amp Tab intelligently handles variable deletion and updates dependent code sections automatically.
3.55 MB
Binary file not shown.
7.81 MB
Binary file not shown.

0 commit comments

Comments
 (0)