-
Notifications
You must be signed in to change notification settings - Fork 14
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
Aum / GRWT-5056 /product-types-list #68
base: master
Are you sure you want to change the base?
Conversation
…n-trader into aum/product-types-list
…into aum/product-types-list
Reviewer's Guide by SourceryThis pull request introduces a Trade Types List component, improves the UI with a Skeleton component and other styling updates, fixes a balance API endpoint, and updates guide configurations. It also includes a new product service and updates build configurations. Updated class diagram for TradeStateclassDiagram
class TradeState {
duration: string
allowEquals: boolean
trade_type: TradeType
tradeTypeDisplayName: string
instrument: string
payouts: object
contractDetails: ContractDetails | null
setDuration(duration: string): void
toggleAllowEquals(): void
setPayouts(payouts: object): void
setInstrument(instrument: string): void
setTradeType(trade_type: TradeType, display_name?: string): void
setTradeTypeDisplayName(displayName: string): void
setContractDetails(details: ContractDetails): void
}
note for TradeState "Added tradeTypeDisplayName and setTradeTypeDisplayName method"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
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.
Hey @aum-deriv - I've reviewed your changes - here's some feedback:
Overall Comments:
- The new
TradeTypesListController
component introduces a good separation of concerns by handling the fetching and display of trade types. - Consider adding a more robust error handling mechanism, perhaps displaying a retry button or a more informative error message.
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
I've reviewed the Product Types List implementation and found it to be a solid addition that enables dynamic fetching and display of available product types. The implementation is generally well-structured, but I've identified several areas for improvement related to error handling, code quality, and test accuracy. The suggested changes will improve the robustness and reliability of the feature while maintaining its core functionality.
Deploying champion-trader with
|
Latest commit: |
e12d3e8
|
Status: | ✅ Deploy successful! |
Preview URL: | https://98427dea.champion-trader.pages.dev |
Branch Preview URL: | https://aum-product-types-list.champion-trader.pages.dev |
@sourcery-ai 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.
Hey @aum-deriv - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a more specific error message to the
HowToTrade
component when the guide content is not found. - The addition of the Skeleton component is great for improving the user experience during loading states.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…into aum/product-types-list
Summary by Sourcery
Introduces a Trade Types List component to allow users to switch between different trading modes. It also includes a skeleton component for loading states, improves the UI, and fixes a balance API endpoint.
New Features:
Tests: