Sync Mode6Test frontend improvements: pinch zoom 500% max, no flicker/flip, deferred rendering

This commit is contained in:
2026-01-20 19:33:12 +00:00
parent cbb14e69fb
commit 7de75b0596
44 changed files with 168752 additions and 13 deletions
+47
View File
@@ -0,0 +1,47 @@
[2026-01-17 14:30] Mode-Based Architecture Implementation Complete
=== ARCHITECTURE ===
✓ Created three-folder structure:
- Mode1Test/: Original application (standalone project)
- Mode2Test/: Placeholder for alternative configuration
- ModeSwitch/: Orchestrator hub (controls mode switching)
✓ ModeSwitch Orchestrator (Bun + Hono):
- Listens on port 3006 (control/monitoring)
- Manages port 3005 (shared public port)
- Reads activeMode.txt to determine startup mode
- Kills existing process and starts new mode on demand
- Hot-swap: Switch modes via API without manual restart
✓ Mode Folders:
- Each mode is a standalone, complete project
- Has own package.json, backend/, frontend/, logs/
- Runs on shared port 3005 when active
- Can be locked read-only once stable
=== ENDPOINTS ===
Orchestrator (port 3006):
GET /health - Health check
GET /api/mode - Get current mode and available modes
POST /api/mode/switch/:mode - Switch to different mode
App (port 3005):
Available when active mode is running
=== NAMING CONSISTENCY ===
Resolved: oldTest → Mode1Test
Updated:
- Folder renamed
- orchestrator.ts MODE_FOLDERS mapping
- activeMode.txt
- README.md references
- API response lists
=== CURRENT STATUS ===
✓ Mode1Test running on port 3005
✓ Orchestrator running on port 3006
✓ Ready for Mode2Test implementation
✓ Root directory clean (only 3 mode folders + Monica.txt + README.md + .git)
=== NEXT PHASE ===
Ready to begin Mode2Test development
+26
View File
@@ -0,0 +1,26 @@
================================================================================
[ModeSwitch Orchestrator]
================================================================================
Listening on port: 3006
Shared mode port: 3005
Config file: /home/admin/Job-Info-Test/ModeSwitch/activeMode.txt
================================================================================
[ModeSwitch] Starting Mode5Test (Mode5Test/) on port 3005...
✓ Mode5Test started successfully on port 3005
7 | if (typeof entryNamespace?.default?.fetch === 'function') {
8 | const server = Bun.serve(entryNamespace.default);
9 | console.debug(`Started ${server.development ? 'development ' : ''}server: ${server.protocol}://${server.hostname}:${server.port}`);
10 | }
11 | }, reportError);
12 | const server = Bun.serve(entryNamespace.default);
^
error: Failed to start server. Is port 3006 in use?
syscall: "listen",
errno: 0,
code: "EADDRINUSE"
at bun:main:12:28
Bun v1.3.2 (Linux x64 baseline)
+1
View File
@@ -0,0 +1 @@
47889