Skip to content

Gamify Agency Mini App with King of Life#255

Merged
MagMueller merged 1 commit into
mainfrom
codex/king-of-life-miniapp
May 19, 2026
Merged

Gamify Agency Mini App with King of Life#255
MagMueller merged 1 commit into
mainfrom
codex/king-of-life-miniapp

Conversation

@MagMueller
Copy link
Copy Markdown
Contributor

@MagMueller MagMueller commented May 19, 2026

Summary

  • Reworks the Agency mini app into a King of Life goal game with rank/XP UI, polished quest cards, inline comments, haptics, and safer multi-button rendering.
  • Adds a durable quest_events ledger plus /api/game-state, reward payloads, and atomic card start claiming before Telegram side effects.
  • Refreshes the 10 mini-app concept routes around distinct King-of-Life prototypes and tightens card generation prompts/skill guidance.

Testing

  • python3 -m unittest agent.test_mini_app
  • node --check agent/mini_app_static/tinder.js
  • node --check agent/mini_app_static/concepts.js
  • Dev-server browser smoke via Cloudflare tunnel and BU Cloud browser across /tinder?dev=1, /mini-apps?dev=1, and /mini-app-1..10?dev=1 with no console errors.

Summary by cubic

Turns the Agency mini app into the King of Life goal game with ranks, XP, and quest-focused UI. Adds a durable event ledger, reward feedback, and a safe, idempotent start flow.

  • New Features

    • Game loop: rank/XP system with rail panel, in-card progress meter, and reward toasts/haptics (+XP on start/comment).
    • Durable state: quest_events ledger, recent events, and /api/game-state for points, rank, and progress (with sensible fallback).
    • Quest UX: polished multi-button actions, inline comment form, source favicons/initials, refreshed “10 concepts,” and clearer King-of-Life prompts/copy.
  • Bug Fixes

    • Atomic start: claim a pending card before Telegram side effects; prevent double-starts and actions on non-pending cards.
    • Robust errors: mark start failures as failed and return status, reward, and game payloads from actions.
    • Tests: cover rank/points from ledger, ledger preference over heuristics, idempotent start behavior, and atomic claim on failures.

Written for commit c0ffeb6. Summary will update on new commits. Review in cubic

@MagMueller MagMueller merged commit a4ed043 into main May 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant