-
Notifications
You must be signed in to change notification settings - Fork 165
Chore/removing fingerprint props from util #3719
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 428bac9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for adyen-web ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary of ChangesHello @sponglord, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the robustness and maintainability of the 3DS2 payment flow by introducing comprehensive type definitions and refactoring key utility functions. The changes ensure that properties, especially Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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 Review
This pull request effectively refactors the 3DS2 component handling by centralizing the ChallengeWindowSize type and strengthening the types for action handling, which improves code maintainability and safety. The removal of legacy properties from the utility function is also a good cleanup step. My review includes suggestions to remove some leftover debugging statements and to further improve type safety in one of the modified functions.
packages/lib/src/components/ThreeDS2/callSubmit3DS2Fingerprint.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
|
/gemini review |
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 Review
This pull request is a solid refactoring effort that removes legacy code and strengthens the typing around the 3DS2 action handling. Centralizing the ChallengeWindowSize type and introducing ThreeDS2ConfigProps and ActionHandlerConfig significantly improves code clarity and maintainability. The changes are well-aligned with the goal of manually adding props to the 3DS2 component and moving away from older patterns. I've found one minor issue regarding a debug console.log that should be removed.
packages/lib/src/components/ThreeDS2/callSubmit3DS2Fingerprint.ts
Outdated
Show resolved
Hide resolved
|
/gemini summary |
Summary of ChangesThis pull request focuses on modernizing and improving the 3DS2 payment flow by removing legacy code and significantly enhancing type safety. The changes standardize how 3DS2 properties are handled across various components, making the system more robust, maintainable, and predictable for future development and debugging. Highlights
Changelog
Activity
|
478db1b to
b84610d
Compare
b84610d to
02f4633
Compare
…from_util' into chore/removing_fingerprintProps_from_util
|



📋 Pull Request Checklist
📝 Summary
This PR removes code that manually add props to the 3DS2 component via a hardcoded "list". This was legacy code from v5 and is no longer required.
Also strengthened the types used in the handling of a 3DS2 action
🧪 Tested scenarios
🔗 Related GitHub Issue / Internal Ticket number
Closes: