Make host page responsive for mobile#5
Open
BahandAb wants to merge 5 commits into
Open
Conversation
- host.html: new instructor host page with two-screen flow (setup + live session); side panel with status, roster, and admin controls; camera preview, resolution selector, session code generator - host.js: camera enumeration with permission-first pattern, canvas render loop driving crop pipeline, LiveKit canvas.captureStream() publisher (simulcast disabled), Socket.IO register_host, drag-to-crop overlay with corner handles, follow/broadcast mode toggles, camera switch bar, fullscreen toggle - manifest.json + sw.js: PWA support — eaglevision.dev is now installable on desktop and mobile; network-first for API/LiveKit, cache-first for static assets - index.html: Host a Session button in hero (gold accent), PWA meta tags, Apple touch icon, theme-color, service worker registration - README.md: fixed tech stack (Gemini API not Claude API), fixed backend description (Python Flask not Node.js), added Oracle Cloud deployment note, updated instructor flow to point to host.html, added new files to frontend structure section https://claude.ai/code/session_01FzZZvZE2K52QBp2jz4opgH
There was a problem hiding this comment.
Pull request overview
This PR introduces a new browser-based instructor host experience and adds PWA/offline scaffolding, with an emphasis on making the host workflow usable on mobile (≤640px) through responsive layout and touch-friendly controls.
Changes:
- Added a new
host.html+host.jshost flow (camera preview/setup, session start, LiveKit publish, roster + admin controls) with a mobile-responsive activity bar + overlay side panels. - Added PWA pieces:
manifest.json,sw.js, and service worker registration inindex.html. - Updated
README.mdto document the host page as the primary hosting method and refreshed architecture/project structure notes.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sw.js | Adds a service worker for static asset caching and network passthrough for select external hosts. |
| README.md | Updates instructor flow and architecture/docs to reflect the new host page and backend details. |
| manifest.json | Adds a PWA manifest (name, theme colors, icons). |
| index.html | Links the manifest / Apple web app meta and registers the service worker; adds a “Host a Session” CTA. |
| host.js | Implements host-side session logic (camera, Socket.IO, LiveKit publish, crop, roster, admin commands). |
| host.html | Adds the host UI and responsive/mobile styles (bottom tab bar, overlay drawer panels, touch crop handles). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+8
to
+10
| '/style.css', | ||
| '/landing.css', | ||
| '/script.js', |
Comment on lines
+18
to
+23
| self.addEventListener('install', event => { | ||
| event.waitUntil( | ||
| caches.open(CACHE_NAME).then(cache => cache.addAll(STATIC_ASSETS)) | ||
| ); | ||
| self.skipWaiting(); | ||
| }); |
| #setup-error { color: #f87171; font-size: .9rem; display: none; margin: 0; } | ||
|
|
||
| /* ── Session screen ── */ | ||
| #session-screen { display: none; flex-direction: column; height: 100dvh; height: 100vh; } |
| color: var(--muted, #7c83a8); cursor: pointer; | ||
| font-size: 1.2rem; display: flex; align-items: center; justify-content: center; | ||
| } | ||
| .ab-btn:hover, .ab-btn.active { background: var(--border, #2a3050); color: var(--text, #e8eaf6); } |
Comment on lines
+383
to
+393
| roster.forEach(student => { | ||
| const initials = (student.name || '?').slice(0, 2).toUpperCase(); | ||
| const div = document.createElement('div'); | ||
| div.className = 'roster-item'; | ||
| div.innerHTML = ` | ||
| <div class="roster-avatar">${initials}</div> | ||
| <span class="roster-name">${student.name || student.id}</span> | ||
| <button class="roster-kick" onclick="kickUser('${student.id}')">Kick</button> | ||
| `; | ||
| body.appendChild(div); | ||
| }); |
Comment on lines
+196
to
+198
| function connectSocket() { | ||
| const BACKEND = 'https://api.eaglevision.dev'; | ||
| socket = io(BACKEND, { transports: ['websocket'] }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
touch-action: noneon crop overlay and workspace to prevent scroll interference@media (hover: hover)so they don't fire on touch devicesGenerated by Claude Code