Skip to content

feat: add change email entry#48

Open
sunnylqm wants to merge 1 commit into
mainfrom
feat/change-email-entry
Open

feat: add change email entry#48
sunnylqm wants to merge 1 commit into
mainfrom
feat/change-email-entry

Conversation

@sunnylqm

@sunnylqm sunnylqm commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 在账户信息的邮箱栏旁添加「修改邮箱」入口
  • 点击后打开给支持邮箱的邮件草稿,并预填当前账户邮箱、主题和说明
  • 补齐中英文 i18n 文案

Test Plan

  • bun run ci
  • bun run build

Summary by CodeRabbit

  • New Features
    • Added a “change email” option in the account area, opening a prefilled email draft to support.
    • Added localized text for the new email-change flow in English and Simplified Chinese.
  • Bug Fixes
    • Updated the support contact link to use a shared email address, keeping account-related email actions consistent.

@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for pushy ready!

Name Link
🔨 Latest commit 5f3784c
🔍 Latest deploy log https://app.netlify.com/projects/pushy/deploys/6a4cb60d8daa940009c6b0c0
😎 Deploy Preview https://deploy-preview-48--pushy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2d927977-ee39-43de-8ba0-782d89d1f9d1

📥 Commits

Reviewing files that changed from the base of the PR and between fd87ba4 and 5f3784c.

📒 Files selected for processing (3)
  • src/i18n/locales/en.json
  • src/i18n/locales/zh-CN.json
  • src/pages/user/index.tsx

📝 Walkthrough

Walkthrough

Adds new i18n strings for a change-email flow in English and Chinese locale files, and updates the user page to centralize a support email constant, build a mailto link with subject/body from i18n templates, and add a button to trigger the email change action.

Changes

Change Email Flow

Layer / File(s) Summary
Change-email i18n strings
src/i18n/locales/en.json, src/i18n/locales/zh-CN.json
Adds user.change_email, user.change_email_subject, and user.change_email_body keys (with {{email}} interpolation) to both locale files.
Support email constant and mailto wiring
src/pages/user/index.tsx
Expands Ant Design imports to multi-line, adds a SUPPORT_EMAIL constant used in the invoice hint mailto link, builds a changeEmailHref mailto URL from i18n subject/body templates, and adds a link-style button next to the displayed email that opens the composed change-email link.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a change-email entry in the user account UI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/change-email-entry

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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