feat: nudge to claim demo currency#29
Open
zhaog100 wants to merge 93 commits into
Open
Conversation
chore: update workflow to include `demo` branch in deployment checks
Fix demo url
…-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
Contributor
Unused exports (1)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the "Nudge to Claim DEMO Currency" feature as described in #15.
Changes
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.
Reward claim nudging — When
text-conversation-rewardsposts a reward comment (detected viaissue_comment.edited), the plugin automatically posts a follow-up comment with step-by-step claiming instructions and a direct link to the claim portal atpay.ubq.fi.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.Reward label update — On
/demoinvocation, the issue labels are updated to replace the existing price label withPrice: 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 postingsrc/types/typeguards.ts— AddedisIssuesLabeledEventtypeguardtests/__mocks__/handlers.ts— Added MSW handlers for label API endpointstests/main.test.ts— Added tests for claim nudging and label updateTesting
All 6 tests pass. Build succeeds with no TypeScript errors.
Closes #15