-
Notifications
You must be signed in to change notification settings - Fork 3
feat: batch claim fraction #378
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
Conversation
tnkshuuhei
commented
Feb 4, 2025
•
edited
Loading
edited
- [FE] Reject or claim fractions from allowlist in UI #30
- [FE] Add checkboxes for claimable fractions #83
- [claim] can't click on hypercert to view #207
- [UI] User should be asked to switch chains when trying to claim a fraction on the wrong chain #307
- filter unclaimed fraction, and allow user to claim on only filtered chain
refactored unclaimed hypercerts list to use a table-based UI with: - new table components for unclaimed fractions validation - added row selection and pagination - implemented dropdown actions for each row - disabled to click "claim" button if the connected address !== user_address to prevent from unintended behavier
…onent Moved the `createExtraContent` function from the `useMintHypercert` hook to a new global component file, improving code organization and reusability.
Implemented a new batch claim button that enables claiming multiple hypercert fractions in a single transaction
this component has replaced to table component
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Implemented table filtering functionality for unclaimed hypercerts. This is necessary to batch claim function because user cannot claim on multiple chain in a single transaction
This improves UX when user try to claim hypercert on specific chain which is not connected chain.
This change is intended to show unclaimed hypercert on connected chainId so that user can easily claim them. If user wallet is not connected, then show all unclaimed hypercerts
This change is intended to prevent selecting rows from different chains. And pass selected chain ID to batch claim button.
set default pageSize to 25 from 10 for better UX
This change is intended to avoid confusion
…units columns merged chain and time_frame column into title column because setting multiple hypercert_id accessor breaks filter. Title and time frame should be queried from metadata field.
changes: - refactor handleRowSelectionChange function and made it more simple logic - add description for functions inside the unclaimed-fraction-table component - harmonize button styling
Some suggested changes
Only if it is simple
|
- apply responsive design for mobile friendly - change columns display to proper column title - change claimable units row to show portion of fraction user can claim
@holkexyz thank you for review. working on it
|
fetched hypercert metadata inside the hypercerts tab content component because this should be done before rendering client component. ideally image url should be fetched at the same time.
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.
components/profile/unclaimed-table/unclaimed-fraction-columns.tsx
Outdated
Show resolved
Hide resolved
components/profile/unclaimed-table/unclaimed-fraction-table.tsx
Outdated
Show resolved
Hide resolved
… fetch hypercert metadata This change is intended to improve efficiency by focusing data on metadata rather than executing unnecessary queries.
Changes include: - Replaced "hypercert" with "fraction" in UI text and error messages - Updated claim button styling and disabled state logic - Modified revalidation paths after claiming - Added getAddress utility to ensure consistent address comparison
Simplified button rendering.
because it takes time to be revalidated
I thought this is because block confirmation was set to 3, so removed it here: 0b5088f I'm not sure whether this is enough or not... hypercerts-app/components/profile/unclaimed-hypercert-claim-button.tsx Lines 98 to 100 in 0b5088f
|
Changes include: - Modify createExtraContent to use object parameter - Remove unnecessary console.log
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.
Let's continue the revalidation stuff in #420 , lgtm now
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |