21 Commits

Author SHA1 Message Date
MayaTheShy
026d0c8d6b Add Cross-Project Integration API for RemoteTurtle system 2026-03-22 04:10:11 -04:00
MayaTheShy
2ac11350e6 Add API endpoint for remote reboot of CC:Tweaked computers 2026-03-22 03:15:36 -04:00
MayaTheShy
479e1918f5 Implement rate limiting and enhance input validation for API endpoints 2026-03-22 02:57:21 -04:00
MayaTheShy
78674714b1 Enhance WebSocket keep-alive mechanism to include bridge connections and handle stale connections 2026-03-22 02:41:52 -04:00
MayaTheShy
460cf34252 Enhance WebSocket error handling and implement command idempotency for dropper nickname and recipe management endpoints 2026-03-22 02:38:30 -04:00
MayaTheShy
465efbeb0e Implement API key authentication for secure access to mutating endpoints and WebSocket connections 2026-03-22 02:13:24 -04:00
MayaTheShy
bbae2740a7 Implement idempotent command tracking with cleanup and caching for improved request handling 2026-03-22 02:12:18 -04:00
MayaTheShy
a5e6be7f4b Enhance command handling: implement monotonic ID for deduplication and improve acknowledgment process 2026-03-22 01:29:16 -04:00
MayaTheShy
bee1019fd6 Add dropper nickname management: implement get and set endpoints 2026-03-21 20:55:01 -04:00
MayaTheShy
9f75866ce7 Notify web clients on bridge connection status: broadcast updates when the bridge connects or disconnects 2026-03-21 20:05:45 -04:00
MayaTheShy
79eca14f4c Add dropper location selector: discover available droppers on network, pass through server, and add dropdown in order panel for location-based dispensing 2026-03-21 19:57:13 -04:00
MayaTheShy
fcfef379be Add droppers array to state update: ensure droppers data is handled correctly in the state from bridge 2026-03-21 19:41:56 -04:00
MayaTheShy
05f5a3519e Add texture proxy and caching mechanism: implement upstream fetching and local caching for texture assets 2026-03-21 19:29:59 -04:00
MayaTheShy
b5ae28944d Enhance health check and inventory endpoints: include bridge connection status and web client count 2026-03-21 19:26:36 -04:00
MayaTheShy
29498a2f6a Major UI overhaul: bigger icons, creative inventory tabs, grouped smelting, alerts popup, analytics, mod icons
- Inventory: Bigger item icons (48px) filling their slots, MC-style hover tooltips
- Creative inventory category tabs (All/Blocks/Tools/Combat/Food/Redstone/Materials/Misc)
- Smelting recipes grouped by output item with collapsible sections
- Alerts moved from full tab to popup overlay triggered from header bell icon
- New Analytics tab with SVG charts (storage over time, top items, item trend lookup)
- Mod icon support for ComputerCraft (CC:Tweaked) via GitHub CDN fallback
- Server: new /api/history-summary endpoint for aggregate storage history
- Store: fetchHistorySummary and fetchItemHistory for analytics data
2026-03-21 19:07:17 -04:00
MayaTheShy
c25ef9f2cc Fix inventory disappearing: add WS keep-alive pings + HTTP API fallback
- Server pings web clients every 25s to keep connections alive through reverse proxies
- Client fetches /api/inventory on page load (doesn't depend solely on WebSocket)
- Prevent duplicate WebSocket connections on reconnect
- Deduplicate initial_state/state_update handlers
2026-03-21 18:35:17 -04:00
MayaTheShy
80338d1973 Fix live updates: debounce DB writes, broadcast before saving, include smeltable/craftable in updates 2026-03-21 18:15:50 -04:00
MayaTheShy
9f322003db Add SQLite persistence + official Minecraft item icons
Database (better-sqlite3):
- Persist items, furnaces, alerts, recipes, settings to SQLite
- Auto-restore last known state when server restarts or bridge disconnects
- Item count history tracking (5-min snapshots, 7-day retention)
- /api/history/:itemName endpoint for item count history
- Docker volume for database file persistence
- Graceful shutdown with DB connection cleanup

Icons:
- Replace mc-heads.net with official Minecraft game textures via CDN
- Cascading fallback: item texture -> block texture -> emoji
- In-memory URL cache to avoid redundant network requests
- Block texture suffix mapping (furnace_front, barrel_top, etc.)
- Crisp pixel-art rendering with image-rendering: pixelated
2026-03-21 18:10:44 -04:00
MayaTheShy
0ce63bacd7 Normalize inventory and alerts data structure in updateStateFromBridge function 2026-03-21 17:42:49 -04:00
MayaTheShy
bd5b1db5a0 Refactor server configuration to use environment variables for PORT and HOST; normalize itemList structure in inventory state update 2026-03-21 17:30:59 -04:00
MayaTheShy
1f57333cb0 Implement initial server setup with Express, WebSocket support, and API endpoints for inventory management 2026-03-21 16:42:30 -04:00