Skip to content

feat: redemption code UX improvements and E2E verification#239

Merged
dvlin-dev merged 1 commit intomainfrom
fix/redemption-final-fixes
Mar 16, 2026
Merged

feat: redemption code UX improvements and E2E verification#239
dvlin-dev merged 1 commit intomainfrom
fix/redemption-final-fixes

Conversation

@dvlin-dev
Copy link
Copy Markdown
Owner

@dvlin-dev dvlin-dev commented Mar 16, 2026

Summary

  • Server: getCode() enriches response with creator email/name and redeemer user emails (batch query)
  • Admin UX (7 items): details column, copy button, inactive row opacity, delete confirmation AlertDialog, create success shows code + copy, detail dialog shows creator/user emails, membershipTier capitalized
  • PC App: redeem code button promoted to primary variant, Discord code hint added below input with i18n (5 languages)
  • E2E: 10-scenario live server test covering config/create/list/detail/update/redeem/duplicate/deactivate/redeem-deactivated/final-state

E2E verification

Ran against server.moryflow.com8/10 passed. 2 failures are expected: tests 4 and 10 assert creator.email and userEmail fields which require this PR's server changes to be deployed first.

Test plan

  • pnpm --filter @moryflow/server exec tsc --noEmit — pass
  • pnpm --filter @moryflow/admin build — pass
  • pnpm --filter @moryflow/pc build — pass
  • E2E: config / create / list / update / redeem / duplicate / deactivate verified on live server
  • Deploy server, re-run E2E to verify creator email and userEmail fields

Open with Devin

…2E tests

- Server: getCode() now returns creator email/name and user emails for usages
- Admin: add details column, copy button, inactive row opacity, delete confirmation dialog
- Admin: create dialog shows generated code with copy on success instead of auto-closing
- Admin: detail dialog displays creator email and user email, capitalizes membership tier
- PC: redeem code button uses primary variant, add Discord hint below input
- i18n: add discordCodeHint key to all 5 languages (en, zh-CN, ja, de, ar)
- E2E: add 10-scenario live server test covering full redemption lifecycle
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@dvlin-dev dvlin-dev merged commit 7b88308 into main Mar 16, 2026
1 of 2 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