|
Download tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-5.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 5.24 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-5.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-5.md
-
curl -L -o MILESTONE-5.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-5.md
5.24 kB
Milestone 5: Ecosystem - Web Gateway
Status: Complete Started: 2025-12-21 Completed: 2025-12-21
Overview
Milestone 5 implements ecosystem features that enhance the user experience and enable broader adoption. The primary focus is on a Web Gateway that provides browser-based access to repositories, making Guts accessible to users who prefer a web interface over CLI.
Goals
- Web Gateway: Browser-based repository access with modern UI
- Repository Browser: View files, commits, branches in the browser
- Collaboration UI: View PRs, Issues, and discussions in the browser
- Search: Search repositories, code, issues, and PRs
- API Documentation: Interactive API documentation (OpenAPI/Swagger)
New Crate: guts-web
Technology Choices
| Component | Technology | Rationale |
|---|---|---|
| Templates | Askama | Type-safe, compile-time templates |
| CSS | Tailwind CSS (CDN) | Utility-first, no build step |
| Syntax Highlighting | highlight.js | Client-side code highlighting |
| Markdown | pulldown-cmark | Fast, safe Markdown rendering |
Route Structure
Page Components
Repository Home
- README rendering (Markdown)
- File tree preview
- Branch selector
- Clone URLs (HTTP)
- Stats (commits, contributors, stars)
File Browser
- Directory tree navigation
- File content with syntax highlighting
- Breadcrumb navigation
- Branch/tag selector
- "Raw" and "History" links
Commit History
- Commit list with author, date, message
- Commit diff viewer
- File changes summary
Pull Request View
- PR description (Markdown)
- Conversation thread
- Commits included
- Files changed with diff
- Review status
- Merge button (for admins)
Issue View
- Issue description (Markdown)
- Comment thread
- Labels and assignees
- Status (open/closed)
- Close/reopen actions
Data Flow
Phase 1: Foundation (Completed)
- Create
guts-webcrate structure - Set up Askama template engine
- Create base template with navigation
- Add static asset serving (CSS via Tailwind CDN)
- Implement landing page
- Implement explore/repository list page
Phase 2: Repository Browsing (Completed)
- Repository list page (
/explore) - Repository home page (README) (
/{owner}/{repo}) - File tree browser (
/{owner}/{repo}/tree/{ref}/*path) - File content viewer with syntax highlighting (
/{owner}/{repo}/blob/{ref}/*path) - Commit history page (
/{owner}/{repo}/commits/{ref}) - Single commit view (
/{owner}/{repo}/commit/{sha})
Phase 3: Collaboration Views (Completed)
- Pull request list page (
/{owner}/{repo}/pulls) - Pull request detail page (
/{owner}/{repo}/pull/{num}) - Issue list page (
/{owner}/{repo}/issues) - Issue detail page (
/{owner}/{repo}/issues/{num}) - Comment rendering with markdown
Phase 4: Organization Views (Completed)
- User profile page (
/users/{username}) - Organization list page (
/orgs) - Organization detail page (
/orgs/{org}) - Team list page (
/orgs/{org}/teams) - Team detail page (
/orgs/{org}/teams/{team}) - Navigation bar with Organizations link
Phase 5: Search & Discovery (Completed)
- Repository search (
/search?q=&type=repositories) - Code search (
/search?q=&type=code) - Issue/PR search (
/search?q=&type=issues,/search?q=&type=pullrequests) - Advanced filters (filter by result type, case-insensitive matching)
Phase 6: API Documentation (Completed)
- OpenAPI 3.1 spec generation (comprehensive coverage of all 50+ endpoints)
- Swagger UI integration (
/api/docs) - Interactive API explorer with try-it-out functionality
API Integration
The web gateway reuses existing API infrastructure:
Success Criteria
- Landing page with repository explorer
- Repository file browser with syntax highlighting
- Commit history and diff viewer
- Pull request and issue views
- Organization and team pages
- Code search functionality
- Responsive design (mobile-friendly via Tailwind CSS)
- No JavaScript required for core functionality (JS used only for syntax highlighting and Swagger UI)
- Interactive API documentation with Swagger UI
Dependencies
askama: Template enginepulldown-cmark: Markdown renderingsyntect: Server-side syntax highlighting (optional)guts-storage: Access git objectsguts-collaboration: PR/Issue dataguts-auth: Permission checking
Future Considerations
These features are out of scope for Milestone 5 but planned:
- CI/CD Integration: Decentralized build pipelines
- Package Registry: Decentralized package hosting
- Federation: Inter-network repository bridging
- Real-time Updates: WebSocket for live updates
- Dark Mode: Theme switching
- Keyboard Shortcuts: Vim-style navigation
- Notifications: In-browser notifications
References
- GitHub Web Interface
- GitLab Web Interface
- Gitea - Lightweight self-hosted
- Askama Documentation