Closed Th0rgal closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app-starknet-id | ❌ Failed (Inspect) | Jul 16, 2024 3:31pm | ||
sepolia-app-starknet-id | ❌ Failed (Inspect) | Jul 16, 2024 3:31pm |
This update involves significant refactoring across several components, focusing on improving accuracy and efficiency in pricing calculations, currency handling, and state management. Key changes include the adoption of the bigint
type for precise calculations, updates to state variables and props, and the integration of the useRouter
hook for navigation handling. The update also includes enhancements to UI components, especially those related to registration, renewal, and discounts, resulting in a more robust and user-friendly application.
Files | Change Summary |
---|---|
components/UI/iconsComponents/icons/... |
Removed color prop from CloseFilledIcon and PyramidIcon components, simplifying their function signatures. |
components/UI/walletConnect.tsx |
Added useRouter hook and new functions (openBraavosMobile , needInstall , tryConnect ) to enhance wallet connection handling. |
components/discount/freeRenewalDiscount.tsx |
Refactored FreeRenewalCheckout by streamlining props and adopting bigint for precise calculations, updated effects and state variables. |
components/discount/registerDiscount.tsx |
Refactored RegisterDiscount , updated state variables, useEffect hooks, and removed TxConfirmationModal . |
components/domains/autorenewal.tsx |
Updated state management and pricing logic, replaced getPriceFromDomains with getManyDomainsPriceWei . |
components/domains/registerCheckboxes.tsx |
Changed gweiToEth to weiToEth , removed ethRenewalPrice prop. |
components/domains/registerSummary.tsx |
Updated props to use bigint , adjusted logic for price calculations and display, removed some props. |
components/domains/registerV3.tsx |
Updated duration to durationInYears in updateFormState function. |
components/domains/renewalV2.tsx |
Updated dependencies for updateFormState and changed duration to durationInYears . |
components/domains/steps/checkoutCard.tsx |
Modified state variables and calculations related to pricing, taxes, and currency selection, updated useEffect hooks. |
components/domains/steps/userInfoForm.tsx |
Renamed duration to durationInYears , updated state update functions and useEffect hook. |
components/identities/actions/identityActions.tsx |
Expanded useEffect dependencies to include address , identity , and starknetIdNavigator . |
package.json |
Updated "starknetid.js" version from ^3.2.0 to ^3.2.2 . |
pages/_app.tsx |
Modified MyApp function, removing solNetwork argument from the array. |
pages/discord.tsx |
Modified useEffect hook dependencies to ensure it runs only when the transaction is sent. |
pages/gift.tsx |
Removed customMessage prop from FreeRegisterCheckout component. |
pages/github.tsx |
Modified useEffect hook to run only when the transaction hash is present. |
pages/identities.tsx |
Added comment and disabled lint rule for a specific line in a React functional component. |
pages/twitter.tsx |
Removed import and usage of useWaitForTransaction , refactored verifyTwitter function, adjusted dependencies. |
styles/discount.module.css |
Added margin-left: 1rem; and margin-right: 1rem; to .descriptionVariant class. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
working on it here https://github.com/starknet-id/app.starknet.id/pull/874
This pull request refactors the way prices are computed. It is based on an old version of the branch by @Marchand-Nicolas adding the argent discount, we might need to rebase it.
Files Affected:
We still need to test:
And to update:
Summary by CodeRabbit
New Features
Bug Fixes
Style
Performance Improvements
bigint
for more accurate and efficient price calculations.Updates
starknetid.js
version from3.2.0
to3.2.2
.getPriceFromDomains
withgetManyDomainsPriceWei
for better performance in pricing calculations.