Phase 6: Operations, admin dashboard & polish (v2.0.0) #39
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Complete operational tooling, admin features, white-label support, and documentation. Tag v2.0.0 when done.
Depends on
Tasks
Health & Monitoring
/health(liveness),/ready(readiness),/metrics(Prometheus counters)scripts/health-check.sh(endpoints + RPC methods + optional Slack/Discord alerts)DNS & Networking
Admin Dashboard (absorbs mycelium_code/home#30)
White-Label Support
instances/_template/branding.toml— name, domain, colors, pricing, features, payment methodsinstances/projectmycelium/branding.toml— production configmake deploy-instance INSTANCE=xxx ENV=prod— full white-label deploymentDocumentation
docs/architecture.md— HA design, failure tolerance, networking, backup strategy, data storageRelease
projectmycelium.org)Acceptance criteria
make deploy-instance(zero code changes)projectmycelium.orgSigned-off-by: mik-tf
New task: Hero Ledger SDK integration
Added as part of Phase 1 (#34) cleanup — the marketplace now uses embedded OSIS (no external hero_osis), but hero_ledger integration needs to be done properly.
Context
The old backend had a hand-written
NearRpcClientthat made raw NEAR RPC calls to hero_ledger for SPORE token balance queries. This was removed in Phase 1 because:impl_hero/layerWhat needs to happen
heroledger_sdkdependency (https://forge.ourworld.tf/lhumina_code/hero_ledger)HeroLedgerClientintoLocalWalletManagerbehindnear_enabledfeature flagspore().ft_balance_of(),spore().ft_transfer()for on-chain settlementHERO_LEDGER_RPC_URLenv var (no sidecar container — connects to remote endpoint)[features] near_enabled = true/falsecontrols whether on-chain operations are activeHow it works
Not a regression
No user-facing features were lost. The old integration was partial (read-only, never used for transactions). The proper SDK integration is new capability.
— mik-tf
Phase 6 progress — health endpoints, branding API, admin auth
Completed tasks
GET /api/health— liveness (existed)GET /api/ready— readiness probe, checks OSIS domain, returns user countGET /api/metrics— Prometheus text format (6 gauges: users, listings, orders, nodes, conversations, up)GET /api/branding— public branding config for SPA frontendPOST /api/admin/confirm-bank-transfernow requires Admin role (was unprotected)Verified on dev
Backend commits
4be72a0: health endpoints, branding API, admin authfdfed9c: route param fixRemaining Phase 6 tasks
— mik-tf
Phase 6 progress update — white-label + docs
Completed this session
/api/health,/api/ready,/api/metrics,/api/brandinginstances/_template/branding.toml(existed)instances/mycelium/branding.toml(existed)make deploy-instance INSTANCE=xxx ENV=dev+make new-instancedocs/architecture.md— system overview, data arch, auth, security, testingdocs/runbook.md— health checks, incident response, backup/restore, rollbackdocs/deployment.md— build, deploy, white-label, release pipelineRemaining
— mik-tf
Phase 6 update — admin enhancements + RPC integration complete
Completed this round
Critical fix: RPC server merged into main backend
Mounted
AxumRpcServerin the main backend binary at/api/v1/marketplace/main/rpc. This fixed the 9 admin RPC smoke failures that have been present since the admin dashboard was first deployed. No separate RPC container needed.All tests pass: 277/277
Phase 6 task summary
13 of 21 tasks complete. Remaining are infra (DNS/email) and release.
— mik-tf
v2.0.0 Released
Tags
Container images
forge.ourworld.tf/mycelium_code/projectmycelium_marketplace:v2.0.0(+ :latest)forge.ourworld.tf/mycelium_code/projectmycelium_marketplace_frontend:v2.0.0(+ :latest)forge.ourworld.tf/mycelium_code/projectmycelium_marketplace_admin:v2.0.0(+ :latest)Forgejo releases created on all 4 repos
Test results: 277/277 all pass
Completed tasks: 6.1, 6.3, 6.7-6.10, 6.11-6.13, 6.15-6.20
Deferred: 6.2 (K8s probes), 6.4-6.6 (DNS/email), 6.21 (production deploy)
Production deploy (6.21) pending approval — images are ready.
— mik-tf
Closing — code complete, v2.0.0 tagged and released.
13/21 tasks done. Remaining 8 are infrastructure (DNS, email, K8s probes, production deploy) that need external service access. These will be tracked in new issues when ready.
— mik-tf