Skip to content
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

Feat: implement payment #75

Merged
merged 6 commits into from
May 12, 2024
Merged

Feat: implement payment #75

merged 6 commits into from
May 12, 2024

Conversation

catherineeangel
Copy link
Contributor

In this PR, I have implemented the integration of payment and transaction api.
This allows user to buy our premium package.
I also have done some refactoring for some of the elements's styling and remove unused component.

Copy link
Contributor

@JohannesSetiawan JohannesSetiawan left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@carlenee carlenee left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@emiriko emiriko left a comment

Choose a reason for hiding this comment

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

Overall, your implementation looks very nice. Based on sonarcloud analysis, it seems that your code produces several code smells, I hope you can fix it before merging for better maintainability.

const features: (keyof PackageDetailResponse)[] = [
'event_planner',
'event_tracker',
'event_timeline',
'event_rundown',
'ai_assistant',
]
useEffect(() => {
if (!!data) {
Copy link
Member

Choose a reason for hiding this comment

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

Based on analysis on sonarcloud, this type of redundant double negation will cause code smell on our codes. I get that you want to cast it to boolean, but perhaps to minimize the amount of code smells, it's better to not use double negation.

The reason for this could be seen here:
https://sonarcloud.io/organizations/reveliostartup/rules?open=typescript%3AS6509&rule_key=typescript%3AS6509

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, thanks for the info

Copy link
Member

@emiriko emiriko left a comment

Choose a reason for hiding this comment

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

LGTM Now!

@catherineeangel catherineeangel merged commit 1874b75 into staging May 12, 2024
3 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.

4 participants