Skip to content

feat: nudge to claim demo currency#29

Open
zhaog100 wants to merge 93 commits into
ubiquity-os:mainfrom
zhaog100:feat/nudge-claim-demo-currency
Open

feat: nudge to claim demo currency#29
zhaog100 wants to merge 93 commits into
ubiquity-os:mainfrom
zhaog100:feat/nudge-claim-demo-currency

Conversation

@zhaog100
Copy link
Copy Markdown

Summary

Implements the "Nudge to Claim DEMO Currency" feature as described in #15.

Changes

  1. Wallet registration as first step — Before the demo begins, users are prompted to register their wallet address. A clear explanation of DEMO currency and why registration matters is shown upfront.

  2. Reward claim nudging — When text-conversation-rewards posts a reward comment (detected via issue_comment.edited), the plugin automatically posts a follow-up comment with step-by-step claiming instructions and a direct link to the claim portal at pay.ubq.fi.

  3. Simulant posts on behalf of user — Welcome message and wallet registration prompt are now posted by the bot (octokit) instead of the user (userOctokit), addressing privacy concerns raised by @0x4007.

  4. Reward label update — On /demo invocation, the issue labels are updated to replace the existing price label with Price: 200 USD, ensuring the reward cap exceeds $150 as requested.

Files Changed

  • src/handlers/run-demo.ts — Core logic: wallet registration flow, reward nudging, label update, simulant posting
  • src/types/typeguards.ts — Added isIssuesLabeledEvent typeguard
  • tests/__mocks__/handlers.ts — Added MSW handlers for label API endpoints
  • tests/main.test.ts — Added tests for claim nudging and label update

Testing

All 6 tests pass. Build succeeds with no TypeScript errors.

Closes #15

gentlementlegen and others added 30 commits July 25, 2025 09:32
chore: update workflow to include `demo` branch in deployment checks
ubiquity-os-beta Bot and others added 28 commits February 11, 2026 08:30
…-build-plugin-demo

fix: sync manifest workflow metadata for issue 27
…artifact-migration

chore: point workflow to ubiquity-os action branch (issue #320)
…anches--development

chore(development): release 1.0.1
…oy-workflow

ci: migrate deploy workflow to new deno-deploy flow
- wallet registration as first step before demo starts
- nudge users to claim rewards after text-conversation-rewards posts
- simulant posts welcome and wallet messages for user privacy
- update reward labels to ensure price exceeds 150 usd
- add tests for reward label update and claim nudging flow
@github-actions
Copy link
Copy Markdown
Contributor

Unused exports (1)

Filename exports
src/types/typeguards.ts isIssuesLabeledEvent

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.

2 participants