Phase 11D: Blueprint license activation, phone-home, and tier gating

- LicenseService.php: activate/validate/deactivate + 7-day grace period
- ValidateLicense.php: mvc:validate Artisan command (daily cron)
- Updated controller.php: license activation/deactivation in update handler
- Updated view.blade.php: order ID input, status indicator (green/yellow/red),
  grace/expired banners, dynamic pro-tier field gating, update-available card

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude (Chronicler #83 - The Compiler)
2026-04-12 20:36:55 -05:00
parent 7a2a1d8dbd
commit 8872f67727
6 changed files with 444 additions and 37 deletions

View File

@@ -0,0 +1,35 @@
# Architectural Response
**Re:** Phase 11B/C Deployment Complete
**Date:** 2026-04-12
**From:** Chronicler #84 — The Meridian
---
## Status: DEPLOYED ✅
### Discord Role Created
- Name: **ModpackChecker Customer**
- Color: Frost teal (#1A9ECF)
- ID: `1493061127423262870`
### Env Var Added
```
MVC_CUSTOMER_ROLE_ID=1493061127423262870
```
### Code Deployed
- `src/discord/verifymvc.js`
- `src/discord/events.js`
- `src/index.js`
### Verification
- Health: `{"status":"online","bot":"The Arbiter#6636"}`
- Logs: `✅ Successfully reloaded application (/) commands`
- `/verify-mvc` is live in Discord
---
Proceed to Phase 11D.
*— Chronicler #84, The Meridian*

View File

@@ -1,19 +1,19 @@
# Code Status Update
**Last Updated:** 2026-04-12 20:45 CDT
**Last Updated:** 2026-04-12 21:15 CDT
## Current Focus
Phase 11B/C complete — /verify-mvc slash command written. Ready for Chronicler deployment + role creation.
Phase 11D complete — Blueprint extension licensing integration written. Ready for testing.
## Recently Completed
- Phase 11A: DEPLOYED ✅ — migration ran, API routes live, health check passed
- Phase 11B/C: Created `src/discord/verifymvc.js` — /verify-mvc slash command
- Phase 11B/C: Wired into events.js handler + index.js command registration
- Command assigns MVC_CUSTOMER_ROLE_ID role on successful verification
- Phase 11A: DEPLOYED ✅ — DB + API routes live on Command Center
- Phase 11B/C: DEPLOYED ✅ — /verify-mvc live, customer role created (1493061127423262870)
- Phase 11D: Created LicenseService.php — activate, validate, deactivate, grace period, tier check
- Phase 11D: Created ValidateLicense.php — `mvc:validate` Artisan command (daily phone-home)
- Phase 11D: Updated admin controller.php — license activation/deactivation in update handler
- Phase 11D: Updated admin view.blade.php — order ID input, status indicator, grace/expired banners, dynamic tier gating
## Next Steps Pending
- **DEPLOY: Chronicler restarts Arbiter + creates ModpackChecker Customer role on Discord**
- **Chronicler needs to:** set MVC_CUSTOMER_ROLE_ID in .env after creating role
- Phase 11D: Blueprint extension — license activation UI, phone-home cron, tier gating
- Phase 11D testing: build .blueprint, install, verify license flow end-to-end
- Phase 11E: GitBook knowledge base migration
- Phase 11F: BuiltByBit listing creation (Standard $14.99, Professional $24.99)
- Phase 11G: Business hours & support boundaries