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: Anticipated Price #3357
feat: Anticipated Price #3357
Conversation
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3357 +/- ##
=======================================
Coverage 72.97% 72.97%
=======================================
Files 8 8
Lines 618 618
=======================================
Hits 451 451
Misses 132 132
Partials 35 35 ☔ View full report in Codecov by Sentry. |
"Application Type": "Application Type", | ||
"Basic Information": "Basic Information", |
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.
Type
Basic
b01da67
to
a141328
Compare
🤖 Generated by Copilot at 0517b2a
Summary
💰🌐🐛
This pull request adds a new feature to the application launchpad frontend and backend that allows users to see the estimated cost of the app resources based on their subscription plan and the source price. It also fixes some bugs and improves the UI and localization of some components. The main files involved are
resourcePrice.ts
,PriceBox.tsx
,Form.tsx
, andstatic.ts
.Walkthrough
resourcePrice
API in theplatform.ts
andresourcePrice.ts
files to calculate the price of the application resources based on the user's price query CRD and the source price CRD (link, link)getUserPrice
function in thestatic.ts
and_app.tsx
files to fetch the user's price from the backend when the application is loaded and retry in case of failure (link, link)PriceBox
component in thePriceBox.tsx
andForm.tsx
files to display the estimated cost of the application resources based on the user's price and the source price (link, link, link)resourcePriceResponse
and the initial value for theSOURCE_PRICE
variable in thestatic.ts
file to store and access the user's price and the source price (link)common.json
files in English and Chinese to support the new feature of displaying the estimated cost of the application resources (link, link)AppMainInfo
component from Chinese to English ("Not Enabled") to fix a localization issue (link)ConfigmapModal
component from "添加ConfigMap" and "修改ConfigMap" to "Add" and "Update" to make it shorter and consistent with other modals (link)ConfigmapModal
component with thet
function to enable localization based on the user's language preference (link)ConfigmapModal
component (link, link)FormErrorMessage
component as it was unused and caused a linting error (link)type
variable to correctly determine whether the modal is for creating or editing a configmap based on thedefaultValue
prop (link)getServiceEnv
andgetUserPrice
functions in theuseEffect
hook of theApp
component to ensure that the user's price is fetched before the service environment is set (link)