-
Notifications
You must be signed in to change notification settings - Fork 3
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
π Reusable ASA search table #987
π Reusable ASA search table #987
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
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.
Can you add a fourth column to the beginning of const columns
for the asset id?
Also can you change the behavior so it works like the search table on the trade page? We want this to be a drop down table so it only is displayed when a user clicks on the asset Id search field.
@stephclarkga Do you have any feedback regarding the style of the table?
Yeah - I was thinking it could look like this when a user clicks on the search field. I don't think we need price info here, just the token symbol, name and ASA ID. Would be cool if we can have them be sortable alphanumerically in this chart with the arrows in the header like on the Dex. And also as the user types info, this should also filter the list down |
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.
The search table should appear when a user clicks on the form field. Right now it appears when a user types into the form field.
The search table should disappear when a user clicks an element in the search table or when the form field is no longer in focus.
I would recommend switching out the onChange
for an onFocus
event. See the documentation for more details
Yea, I figured. About to push the update |
@stephclarkga Are we going to have a dropdown search table for the create token sale and mange token sale components as well? That was the way I was envisioning it. |
β¦-asas' of https://github.com/algodex/algodex-react into 985-modify-the-choose-asset-input-field-on-token-sale-page
@ericsharma Yes - should have the search table for those pages as well. I agree that the quantity in the wallet is useful for the search table for those pages. I don't think quantity is necessary on the manage token page and just clutters the table there. Added that column in the Figma. I'd make the header "Available Balance" and it should only be the amount available to trade. |
@stephclarkga , @ericsharma the update is live, you guys can check now |
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.
Couple formatting things:
Can you make the chart headers a bit narrower (probably cut the height by 2/3rds)?
And can the sorting arrows match the type we have in the Dex currently like I have on the Figma? I think it looks better to have the same style and have them always be visible
@stephclarkga, I understand your point, I am not done with the update yet. Still working on it, will let you know when I push the update |
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.
Format of the chart is good - only thing is we can only sort by one column at a time so the columns that are not actively sorting should have two gray arrows instead of having the top one revert back to green
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.
Looks good now! ππ»
9c7377b
into
942-feature-algodex-launchpad-for-creating-and-listing-asas
βΉ Overview
closes #985
π Related Issues
π Acceptance:
yarn test
passes