-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for kanji and kana statement descriptors #7051
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +675 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. The happy path worked well in manual testing. One edge case failed.
Review checklist
Parameter | Result |
---|---|
Approach | ✅ All good |
Implementation | ✅ All good |
Automated tests | ✅ All good |
Naming | ✅ All good |
Typing | ✅ All good |
Code comments | ✅ All good |
Changelog | ✅ All good |
Testing instructions | 👍 Almost good (we can also add instructions to try saving the fields) |
Manual testing | ✅ Works as expected |
Edge cases | ❌ Failed (see below) |
Scenarios tested
Scenario | Result |
---|---|
Visibility of Kanji and Kana statement descriptor fields for a JP account | ✅ Visible |
Visibility of Kanji and Kana statement descriptor fields for a US account | ✅ Not visible |
Save settings on inputting valid values in the new fields | ✅ Settings saved successfully (verified after page refresh) |
Save settings on inputting invalid values in the new fields (Latin characters in Kana field) | ❌ Settings saved successfully (found old values on page refresh). Ideally, an error should be thrown and saving should fail. |
Since the texts "Edit the way your store name appears on your customers' bank statements." appears under each input, would be a good ideea to move it on top ? @elizaan36, could you please share your opinion on this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me and works as expected.
I also agree with Anurag's comment ^ above about having unique ids.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code looks good!
✅ Manually tested, and everything works well!
…mmerce-payments into add/6874-add-kanji-kana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after latest changes 🎉
IMO, we should make one last small change. The names for all three fields now read the same, making them appear redundant. I think they should be:
Customer bank statement
Customer bank statement (kanji)
Customer bank statement (kana)
Pre-approving the changes ✅
(Noting that my edge case issue about the error in saving with incorrect characters will be tackled separately in #7090.)
@elizaan36 , as you mentioned |
…mmerce-payments into add/6874-add-kanji-kana
Fixes #6874
Changes proposed in this Pull Request
For JP Stripe accounts, add statement descriptors for kana and kanji.
Under the latin statement descriptor, if it's a JP stripe account, we need to show another 2 inputs for kana and kanji statement descriptors.
Max length for kanji - 17 chars
Max length for kana - 22 chars
Testing instructions
Transactions
section, the inputs for kana and kanji statement descriptors should be present under the latin statement descriptor inputnpm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge