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: license desktop page #3969

Merged
merged 2 commits into from Sep 25, 2023
Merged

feat: license desktop page #3969

merged 2 commits into from Sep 25, 2023

Conversation

zjy365
Copy link
Contributor

@zjy365 zjy365 commented Sep 22, 2023

🤖 Generated by Copilot at 8563d56

Summary

💳🎁📄

The pull request adds a new feature for license purchase and payment integration using stripe and Kubernetes CRDs. It also simplifies and refactors the language selection UI for the sign in page and the user menu. It modifies the frontend components, hooks, and API handlers, and adds new types, components, and translation keys. It deletes an unused locale file and updates the environment template file.

Sing, O Muse, of the code that the skillful developers wrought
To enable the users to purchase the licenses they sought
With stripe payment integration and bonus box UI
And Recharge component that renders the page to the eye

Walkthrough

  • Add environment variables for stripe payment integration (link)
  • Add translation keys for license purchase feature in English and Chinese locales (link, link)
  • Add a simplified language selection component and use it in the user menu and the sign in page (link, link, link, link, link)
  • Import TextProps type from @chakra-ui/react in the protocol agreement hook (link)
  • Add a props parameter to the user menu component to allow custom style props (link, link, link)
  • Add a hook to render the bonus box UI for the license purchase page (link)
  • Add API handlers to create, get, and pay license records and to get the bonus ratio and steps (link, link, link, link, link)
  • Add functions to check the environment variables for the payment and license features and add them to the response data of the getEnv API handler (link, link, link)
  • Add a component to render the currency symbol for different currencies (link)
  • Delete the common.json file for the zh-Hans locale (link)
  • Add a component to render a link with an external icon (link)
  • Add a component to render a pagination UI for the license purchase history table (link)
  • Add a component to render the license purchase page and handle the payment logic (link)

@pull-request-size
Copy link

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Sep 22, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 967
✅ Successful 400
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 566
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Patch has no changes to coverable lines.

📢 Thoughts on this report? Let us know!.

Signed-off-by: jingyang <3161362058@qq.com>
@c121914yu c121914yu merged commit c39b6a2 into labring:main Sep 25, 2023
22 of 23 checks passed
bxy4543 pushed a commit to bxy4543/sealos that referenced this pull request Oct 13, 2023
* feat license desktop page

Signed-off-by: jingyang <3161362058@qq.com>

* delete log

---------

Signed-off-by: jingyang <3161362058@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants