You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update frontend to AGI theme with draggable slider and build check workflow
* Update frontend to AGI theme and fix image loading
- Fix .gitignore to track image-list.json (was causing 404 on deploy)
- Update color scheme from purple to AGI brand colors (teal, orange)
- Add AGI color palette to tailwind.config.js
- Convert to light theme with warm off-white background
- Replace Brain icon with AGI logo in header
- Update all components (page, ThumbnailRibbon, AnnotationViewer)
- Improve accessibility with proper contrast ratios
* Fix progress indicator to scale for 1000+ images
- Calculate group size dynamically based on total image count
- Each dot now represents ~100 images (for 1000 images)
- Progress indicator correctly highlights for any image index
* Add draggable slider for quick image navigation
- Replace dot indicators with a draggable progress slider
- Click anywhere on the slider to jump to that position
- Drag the handle to scrub through images quickly
- Shows filled track with teal-to-orange gradient
- Segment markers for visual reference
- Smooth transition animations
* Add PR preview workflow for GitHub Pages
- Deploy PR previews to /pr-preview/pr-{number}/ subdirectory
- Automatic cleanup when PR is closed
- Uses rossjrw/pr-preview-action for deployment
- Builds with correct base path for preview URL
* Replace PR preview with build check workflow
GitHub Pages with workflow-based deployment only supports single
deployments, making PR previews unfeasible. Changed to build check
that verifies PRs compile successfully before merge.
cp -r ../data/thumbnails/* public/thumbnails/ 2>/dev/null || echo "No thumbnails to copy"
40
+
cp -r ../images/downsampled/* public/downsampled/ 2>/dev/null || echo "No images to copy"
41
+
cp -r ../annotations/nsd/*.json public/annotations/nsd/ 2>/dev/null || echo "No annotations to copy"
42
+
43
+
- name: Build Next.js site
44
+
working-directory: frontend
45
+
run: npm run build
46
+
47
+
- name: Verify build output
48
+
run: |
49
+
echo "Build completed successfully!"
50
+
echo "Output files:"
51
+
ls -la frontend/out/
52
+
echo ""
53
+
echo "Static assets:"
54
+
ls -la frontend/out/thumbnails/ 2>/dev/null | head -5 || echo "No thumbnails"
55
+
ls -la frontend/out/downsampled/ 2>/dev/null | head -5 || echo "No downsampled images"
56
+
ls -la frontend/out/annotations/nsd/ 2>/dev/null | head -5 || echo "No annotations"
57
+
58
+
- name: Comment PR with build status
59
+
uses: actions/github-script@v7
60
+
with:
61
+
script: |
62
+
const body = `## Build Check Passed\n\nThe frontend build completed successfully. Once merged, changes will deploy to: https://annotation-garden.github.io/image-annotation/`;
0 commit comments