diff --git a/docs/code-bridge/status/ACTIVE_CONTEXT.md b/docs/code-bridge/status/ACTIVE_CONTEXT.md index 3fc062b..4a777d3 100644 --- a/docs/code-bridge/status/ACTIVE_CONTEXT.md +++ b/docs/code-bridge/status/ACTIVE_CONTEXT.md @@ -1,64 +1,91 @@ # Code Status Update -**Last Updated:** 2026-04-14 19:30 CDT +**Last Updated:** 2026-04-14 22:00 CDT ## Current Focus -Server Command Center — CODE COMPLETE, ready for deploy. +Straggler dispatch queue — clearing bridge requests from Chronicler. -## Session Summary (2026-04-14) +## Session Summary (2026-04-14 Evening) + +### Rules Mod 1.18.2 Builds — DONE ✅ +- Ported both Firefrost Rules and Discord Rules to Forge 1.18.2-40.2.4 +- API changes: TextComponent, sendMessage(comp, Util.NIL_UUID), getPlayer() +- ForgeGradle 6.0 + Gradle 8.8 + Java 17 +- Jars: `firefrostrules-1.0.5-1.18.2-forge.jar`, `discord-rules-1.0.5-1.18.2-forge.jar` +- Both mods now have 4 versions each: 1.16.5, 1.18.2, 1.20.1, 1.21.1 + +### Version UI in Server Matrix — DONE ✅ +- Added installed version display to both TX1 and NC1 card loops in `_matrix_body.ejs` +- Uses `<% var %>` assignment pattern to avoid single-quote EJS breakage +- Edit button, save/cancel, version history viewer via HTMX +- EJS validates clean + +### PWA Phase 1 — DONE ✅ +- `manifest.json` — standalone app config, cyan theme, app ID +- `sw.js` — conservative static-only caching, never caches admin routes +- Placeholder icons (cyan T, 192 + 512) in `src/public/images/` +- `express.static` middleware added to `src/index.js` +- PWA meta tags + Apple mobile web app + service worker registration in `layout.ejs` + +### Task Module — 7 Features — DONE ✅ +1. Slide-out detail panel (click task title → full info overlay from right) +2. Client-side sorting (number, priority, status, updated) persists in localStorage +3. Toggleable filter chips (status + priority, multi-select) +4. Saved filter presets (Launch Fires, Code Queue, Post-Launch, All Open) +5. Kanban board view (4 columns, toggle persists in localStorage) +6. Session summary badge ("X tasks completed today") +7. Code queue badge in sidebar nav (cyan count from tasks tagged 'code') +- Route updated: added completedToday query, allTasks for kanban +- Admin middleware: code queue count query for sidebar badge + +## Earlier Session (2026-04-14) ### Server Command Center — CODE COMPLETE ✅ -Full Arbiter feature build for REQ-2026-04-14. - -**New files:** -- `migrations/139_server_config.sql` — server_config table (short_name, subdomain, IP, port) -- `migrations/139_seed_server_config.js` — 18 servers with hardcoded identifiers from Chronicler #87 audit -- `src/services/uptimeKuma.js` — Socket.IO direct (connect → login → CRUD → disconnect) -- `src/services/pterodactyl.js` — power actions, console commands, resource monitoring - -**Modified files:** -- `src/routes/admin/servers.js` — 8 POST routes: set-short-name, lock, createserver (partial), delserver, power, console, provision-subdomain, plus existing sync/toggle -- `src/views/admin/servers/_server_card.ejs` — full rebuild: short name management, subdomain display + Cloudflare provisioning, Discord 5-channel detection, power controls -- `src/views/admin/servers/_matrix_body.ejs` — refactored from 144 lines to 20 (uses `_server_card` partial) -- `package.json` — added `socket.io-client` - -**Key features:** -- `short_name` system replaces broken slug derivation for Discord channel detection -- Partial channel creation: createserver only creates missing channels (Farm Crossing 6 only needs -status) -- Cloudflare DNS provisioning: A record + SRV record via API (3 servers still need provisioning) -- Uptime Kuma: Socket.IO direct with username/password auth (no npm wrapper) -- Power controls: start/stop/restart via Pterodactyl client API - -**Deploy steps (for Michael):** -1. `npm install` (adds socket.io-client) -2. `psql -f migrations/139_server_config.sql` -3. `node migrations/139_seed_server_config.js` -4. Add to `.env`: `UPTIME_KUMA_USERNAME`, `UPTIME_KUMA_PASSWORD` -5. Restart Arbiter +- Full Arbiter feature build (migrations, services, routes, views) +- Pending deploy by Michael (see previous ACTIVE_CONTEXT for deploy steps) ## Previous Session (2026-04-13) ### Task #69: Discord Rules CurseForge Fork — DONE ✅ -- All 6 builds at v1.0.5 (3 firefrostrules + 3 discordrules) +- All builds at v1.0.5 (now 4 firefrostrules + 4 discordrules) - CurseForge project page copy pending from Chronicler ### Rules Mod Config Bug — FIXED ✅ -- v1.0.5: Console fetch fix, COMMON config type, correct event bus, DIAG logging -- WORKING on Otherworld +- v1.0.5 WORKING on Otherworld -### Bridge — WORKING ✅ -- Both directions confirmed -- Queue clear +## Pending Bridge Requests (Priority Order) -## ModpackChecker -- Phase 11 COMPLETE on Dev Panel -- v1.1.0 deploy blocked on CurseForge API rate limit -- Waiting on Michael for BuiltByBit listings + resource IDs +### Awaiting Action (not yet executed) +1. **REQ-2026-04-14-server-command-center** — Deploy pending (Michael has steps) +2. **REQ-2026-04-12-phase11e-gitbook-scope** — GitBook integration scope for ModpackChecker -## Build Router -- `ffg-build.sh` at `/opt/mod-builds/ffg-build.sh` -- Routes 1.21.1 to NC1, others local -- NC1 user: `ffg-builder` +### Completed This Session (can be archived) +3. REQ-2026-04-14-version-ui-matrix — ✅ Done +4. REQ-2026-04-14-pwa-phase1 — ✅ Done +5. REQ-2026-04-14-task-module-improvements — ✅ Done +6. REQ-2026-04-14-rules-mod-1182 — ✅ Done + +### Previously Completed (can be archived) +7. REQ-2026-04-12-discord-rules-fork — ✅ Done +8. REQ-2026-04-12-phase11-prerequisites — ✅ Done +9. REQ-2026-04-12-phase11a-deploy — ✅ Done +10. REQ-2026-04-12-phase11bc-deploy — ✅ Done +11. REQ-2026-04-12-phase11d-badge-debug — ✅ Done +12. REQ-2026-04-12-phase11d-badge-decision — ✅ Done +13. REQ-2026-04-12-phase11d-deploy — ✅ Done +14. REQ-2026-04-13-arbiter-discord-roles — ✅ Done +15. REQ-2026-04-13-missing-modpack-installations-migration — ✅ Done +16. REQ-2026-04-13-rules-mod-config-fix-versioning — ✅ Done +17. REQ-2026-04-13-rules-mod-config-not-read-at-runtime — ✅ Done +18. REQ-2026-04-13-rules-still-returning-defaults — ✅ Done +19. REQ-2026-04-13-status-route-mismatch — ✅ Done +20. REQ-2026-04-13-v110-consolidated-deploy — ✅ Done + +## Standing Items +- ModpackChecker v1.1.0 deploy blocked on CurseForge API rate limit +- CurseForge Discord Rules project page pending Chronicler copy +- Build router at `/opt/mod-builds/ffg-build.sh` ## Discipline Notes -- CHANGELOG.md updated with every version bump (including diagnostic builds) +- CHANGELOG.md updated with every version bump - ACTIVE_CONTEXT.md updated at end of each work session +- EJS validated before every commit