Commit Graph

113 Commits

Author SHA1 Message Date
MayaTheShy
aed7d1f735 Enhance database performance: add cache size and temp store settings; refactor alert clearing statement 2026-03-21 18:14:16 -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
bbc44c3d97 Fix healthcheck: use node instead of wget, relax client dependency to service_started 2026-03-21 18:03:22 -04:00
MayaTheShy
d4d6e5e480 Fix healthcheck: use wget -qO instead of --spider (BusyBox compat) 2026-03-21 17:57:25 -04:00
MayaTheShy
fe6ac23329 Harden components: add ErrorBoundary, null-safe rendering 2026-03-21 17:51:07 -04:00
MayaTheShy
0ce63bacd7 Normalize inventory and alerts data structure in updateStateFromBridge function 2026-03-21 17:42:49 -04:00
MayaTheShy
a16039e920 Update HEALTHCHECK command in Dockerfile to use wget for improved reliability 2026-03-21 17:35:53 -04:00
MayaTheShy
db0151a616 Update healthcheck command in Docker Compose to use wget for improved reliability 2026-03-21 17:35:50 -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
23d237fa20 Add null check to formatCount function for default zero return 2026-03-21 17:30:55 -04:00
MayaTheShy
2853ca98a0 Update server configuration and Docker setup for improved deployment 2026-03-21 17:15:04 -04:00
MayaTheShy
cc64b568a0 Remove LICENSE file for @babel/code-frame package 2026-03-21 16:55:47 -04:00
MayaTheShy
ba72ce40cd Implement feature X to enhance user experience and optimize performance 2026-03-21 16:53:18 -04:00
MayaTheShy
7935bd6938 Add .dockerignore file to exclude node_modules, dist, and .env 2026-03-21 16:53:15 -04:00
MayaTheShy
c1399fb44e Add StorageOverview component for inventory management display 2026-03-21 16:53:11 -04:00
MayaTheShy
1f3b961fa0 Add .gitignore file to exclude node_modules, dist, bin, and .env 2026-03-21 16:53:08 -04:00
MayaTheShy
86904bc01f Add CSS file for inventory management styles 2026-03-21 16:51:19 -04:00
MayaTheShy
4a664914e9 Add .dockerignore file to exclude node_modules, dist, and .env 2026-03-21 16:51:13 -04:00
MayaTheShy
6021b9603c Add initial HTML template for Inventory Manager 2026-03-21 16:50:44 -04:00
MayaTheShy
956bc82f7f Add symlink for jsesc CLI to improve accessibility 2026-03-21 16:50:40 -04:00
MayaTheShy
c4949eceb5 Add symlink for esbuild CLI to improve accessibility 2026-03-21 16:50:32 -04:00
MayaTheShy
0d68a83520 Add symlink for browserslist CLI to improve accessibility 2026-03-21 16:50:25 -04:00
MayaTheShy
a671e935be Add symlink for baseline-browser-mapping CLI to improve accessibility 2026-03-21 16:50:20 -04:00
MayaTheShy
ac421fcc2e Implement feature X to enhance user experience and fix bug Y in module Z 2026-03-21 16:50:12 -04:00
MayaTheShy
985f7bcf44 Implement feature X to enhance user experience and improve performance 2026-03-21 16:50:09 -04:00
MayaTheShy
43d11503c9 Add LICENSE file for Babel code-frame component 2026-03-21 16:50:06 -04:00
MayaTheShy
2ea340d4e4 Add StorageOverview.css for styling the storage overview component 2026-03-21 16:50:02 -04:00
MayaTheShy
e6f2ff5587 Add SmeltingPanel component for managing smelting operations and recipes 2026-03-21 16:49:50 -04:00
MayaTheShy
05bf5ce122 Add SmeltingPanel.css for styling the smelting panel and its components 2026-03-21 16:49:47 -04:00
MayaTheShy
a4df95e049 Add ItemIcon component for rendering Minecraft item icons 2026-03-21 16:49:44 -04:00
MayaTheShy
7358371727 Add ItemIcon.css for item icon styling 2026-03-21 16:49:41 -04:00
MayaTheShy
3f5ba532c6 Add InventoryGrid component for displaying and managing inventory items 2026-03-21 16:49:38 -04:00
MayaTheShy
f67cc3b36b Add InventoryGrid.css for inventory grid layout and styling 2026-03-21 16:49:34 -04:00
MayaTheShy
7c5fe019f1 Add CraftingPanel component for crafting functionality 2026-03-21 16:49:29 -04:00
MayaTheShy
28677b9b49 Add CraftingPanel.css for crafting interface styling 2026-03-21 16:49:25 -04:00
MayaTheShy
0619b3e529 Add AlertsPanel component for low-stock alerts display 2026-03-21 16:49:22 -04:00
MayaTheShy
e26406c4fc Add AlertsPanel.css for alert management styling 2026-03-21 16:49:17 -04:00
MayaTheShy
44f9e9f7c3 Add App.css for Minecraft-themed inventory manager styling 2026-03-21 16:49:13 -04:00
MayaTheShy
0434c0b5df Add Inventory Manager Web Bridge for modem and HTTP communication 2026-03-21 16:49:08 -04:00
MayaTheShy
31ac11038e Add main application component with inventory management panels and connection status 2026-03-21 16:43:44 -04:00
MayaTheShy
cf83e9ef35 Add item utility functions for Minecraft icons and formatting 2026-03-21 16:43:37 -04:00
MayaTheShy
7e95cf64c6 Add inventory store with WebSocket and REST API integration 2026-03-21 16:43:31 -04:00
MayaTheShy
a06b5f5ce2 Add main entry point for React client application 2026-03-21 16:43:26 -04:00
MayaTheShy
9ade5b138f Add Vite configuration for React client application 2026-03-21 16:43:21 -04:00
MayaTheShy
cf7f443e42 Add package.json for client application with dependencies and scripts 2026-03-21 16:42:54 -04:00
MayaTheShy
725f60aba6 Add initial HTML structure for the client application 2026-03-21 16:42:51 -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
MayaTheShy
12b1165938 Add package.json for server configuration and dependencies 2026-03-21 16:42:21 -04:00
MayaTheShy
953e8aba99 Add Dockerfile for Node.js backend setup 2026-03-21 16:42:14 -04:00
MayaTheShy
8f0072dedf Add Dockerfile for production build with HTTP server 2026-03-21 16:42:10 -04:00