Closed Jarsen136 closed 9 months ago
SUCCESS @Jarsen136 PR for issue #6615 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!
Name | Link |
---|---|
Latest commit | e13ce5da37c98bc69ca34424d1728fe9a401fb8b |
Latest deploy log | https://app.netlify.com/sites/koda-canary/deploys/64f887474406cb0008c27a0e |
Deploy Preview | https://deploy-preview-6664--koda-canary.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
The mock page is here: /ahk/drops/vote-drop
For now, it's still blocked by the work on the indexer side.
good! one detail, text in button: its eligibility
For now, it's still blocked by the work on the indexer side.
Sir maybe ping?
What needs to be done?
For now, it's still blocked by the work on the indexer side.
Sir maybe ping?
Oh sorry, I just thought you are still developing the indexer for the drop.
What needs to be done?
(edited)
Oh, I just thought you are still developing the indexer for the drop.
Indexer was there for already for a week, no need to develop our own for this.
re page
Even though I am not eligible I am able to mint.
Id of the free-drop collection. And what network will the collection belong to?
FOR TEST STMN 99
FOR PROD I dont have collection yet
the API to mint nft
Id of the free-drop collection. And what network will the collection belong to?
FOR TEST STMN 99
FOR PROD I dont have collection yet
the API to mint nft
@vikiival There is one thing I'm not sure about. For the production version, are we going to make the minting process on the frontend side? If that's the case, the detection of mint permissions would only be done on the front-end. Hackers can directly call the API on-chain to create NFTs without going through the page.
In the previous implementation of our free mint, we used to request the backend server to perform minting and transferring.
Cc @yangwao maybe do this as holderOf collection? I can predrop some art to all supporters
Or i can do that via backend
Hackers can directly call the API to create NFTs without going through the page
It still need to be implemented for future drops.
Rest is describe in the comment above
maybe do this as holderOf collection?
Holder of which collection?
meanwhile, we've passed!
Holder of which collection?
As i said above:
I can predrop some art to all supporters
@vikiival There is one thing I'm not sure about. For the production version, are we going to make the minting process on the frontend side? If that's the case, the detection of mint permissions would only be done on the front-end. Hackers can directly call the API on-chain to create NFTs without going through the page.
I do not mean to send drops directly to all supporters. I'm thinking about providing an api for users to mint. When a legitimate user requests the interface, the backend service will determine if they are a supporter and send them an NFT. I hope my thoughts have not caused any misunderstanding.
I'm thinking about providing an api for users to mint.
When a legitimate user requests the interface, the backend service will determine if they are a supporter and send them an NFT.
Yes thats how it works now with current drops
I hope my thoughts have not caused any misunderstanding.
@Jarsen136 any blockers from my side on this?
I can predrop some art to all supporters
but doesn't have nft-pallet whitelist/allowlist?
@Jarsen136 any blockers from my side on this?
There are three steps that need to be done.
Then we could release this aye voters drop page.
Implement the api to mint nft, like we have implemented with current drops
It is the same api as for drops
but doesn't have nft-pallet whitelist/allowlist?
It has only 3 minting options:
As mentioned before it will work same as current drops: issuer + internal whitelist
Implement the api to mint nft, like we have implemented with current drops
It is the same api as for drops
Thanks for the clarification. At least we need a new campaign name for the same api I bet.
Thanks for the clarification. At least we need a new campaign name for the same api I bet.
tested eligibility using different accounts ✔️
twitter message works ✔️
mint success message: ✔️
redirection worked ✔️
image not loading: ❌
https://deploy-preview-6664--koda-canary.netlify.app/ahk/gallery/99-2
image not loading aswell: ❌
this is either my bad or indexer one
{
"data": {
"collectionEntityById": {
"id": "99",
"name": "AYE Waifu",
"image": "ipfs://ipfs/bafybeibe2jccdqti4gsrllbhh6bwbmllaf6q3c7gwpi3jnlpmdwntfcn2a",
"meta": {
"id": "bafkreigb6fxq6bt6ysgqknu4rxrsrngv3lif2mek7vnvm65o3fpflxnidq",
"name": "AYE Waifu",
"image": "ipfs://ipfs/bafybeibe2jccdqti4gsrllbhh6bwbmllaf6q3c7gwpi3jnlpmdwntfcn2a"
}
}
}
}
image is there so @Jarsen136 it is a bug
- image not loading: ❌
https://deploy-preview-6664--koda-canary.netlify.app/ahk/gallery/99-2
There's the same bug on free-drop. I have created an issue for it https://github.com/kodadot/nft-gallery/issues/7077
image not loading aswell: ❌
this is either my bad or indexer one
{ "data": { "collectionEntityById": { "id": "99", "name": "AYE Waifu", "image": "ipfs://ipfs/bafybeibe2jccdqti4gsrllbhh6bwbmllaf6q3c7gwpi3jnlpmdwntfcn2a", "meta": { "id": "bafkreigb6fxq6bt6ysgqknu4rxrsrngv3lif2mek7vnvm65o3fpflxnidq", "name": "AYE Waifu", "image": "ipfs://ipfs/bafybeibe2jccdqti4gsrllbhh6bwbmllaf6q3c7gwpi3jnlpmdwntfcn2a" } } } }
image is there so @Jarsen136 it is a bug
It might be indexer one 👀 @vikiival
Waiting for @JustLuuuu for Metadata :)
also @Jarsen136 It should mint same metadata as for collection
Also it should show Collection image instead of waifus
@Jarsen136 wen user clicks on claim he/she will get random waifu, which is incorrect -> It should get same metadata string as the collection.metadata
@Jarsen136 wen user clicks on claim he/she will get random waifu, which is incorrect -> It should get same metadata string as the
collection.metadata
Thanks. I will modify it later.
Check Eligibility button not triggering anything atm when wallet is disconnected
Check Eligibility button not triggering anything atm when wallet is disconnected
Fixed
https://squid.subsquid.io/polkadot-polkassembly/graphql
The indexer is down, so it would not work to check the eligibility for now. cc @vikiival
The indexer is down, so it would not work to check the eligibility for now
Noted will come up with some backup plan for now
There is another issue related to the format of the metadata on collection.
The format of metadata is text instead of json, which is why the image could not load properly before. https://image-beta.w.kodadot.xyz/ipfs/bafkreiduhiiovev346oqlhnmovxzsjwjhh2g5blxoxxnmqsfxttwxgnp6a
I have to write this fallback to make the image load.
typeof _data === 'string' ? JSON.parse(_data) : _data
IMO it's valuable to find out why it has such a format. wdyt @vikiival
The format of metadata is text instead of json, which is why the image could not load properly before. https://image-beta.w.kodadot.xyz/ipfs/bafkreiduhiiovev346oqlhnmovxzsjwjhh2g5blxoxxnmqsfxttwxgnp6a
cc @preschian 👀
Api works again
There is another issue related to the format of the metadata on collection.
The format of metadata is text instead of json, which is why the image could not load properly before. https://image-beta.w.kodadot.xyz/ipfs/bafkreiduhiiovev346oqlhnmovxzsjwjhh2g5blxoxxnmqsfxttwxgnp6a
I have to write this fallback to make the image load.
typeof _data === 'string' ? JSON.parse(_data) : _data
related with https://github.com/kodadot/nft-gallery/pull/7102
The format of metadata is text instead of json, which is why the image could not load properly before. image-beta.w.kodadot.xyz/ipfs/bafkreiduhiiovev346oqlhnmovxzsjwjhh2g5blxoxxnmqsfxttwxgnp6a
cc @preschian 👀
I will trace it here https://github.com/kodadot/workers/issues/145
The format of metadata is text instead of json, which is why the image could not load properly before. image-beta.w.kodadot.xyz/ipfs/bafkreiduhiiovev346oqlhnmovxzsjwjhh2g5blxoxxnmqsfxttwxgnp6a
cc @preschian 👀
I will trace it here kodadot/workers#145
found the root cause here https://github.com/kodadot/workers/pull/146
So what's the status?
is it possible to test @prury ?
@kodadot/internal-dev pls make a code review
So what's the status?
It's ready for review and testing.
When I change account on
/ahp/drops/vote-drop
, I see while It should be: (after reload)
✅ Fixed
note: You really love
<span>
Any suggestion? Do you mean using more semantic elements like these <h1> <h2> <section>
Second check then: Eligibility works ✔️ images loading ✔️ already have button redirecting correctly ✔️ https://deploy-preview-6664--koda-canary.netlify.app/ahp/gallery/2-3 ✔️ https://deploy-preview-6664--koda-canary.netlify.app/ahk/gallery/99-2 ✔️ view collection button works ✔️ twitter message redirecting to free-drop, if that's okay then let's go
Any suggestion? Do you mean using more semantic elements like these
<h1> <h2> <section>
simple <div>
even when it's inline, idk why but <span>
looks weird with our prettier setup
Code Climate has analyzed commit e13ce5da and detected 1 issue on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 1 |
View more on Code Climate.
twitter message redirecting to free-drop, if that's okay then let's go
Thanks. I have fixed it.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
No Coverage information
1.4% Duplication
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Needs QA check
Context
Did your issue had any of the "$" label on it?
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at fa7ee3c
This pull request adds a new feature to display a vote drop collection on the drops page, which is a special collection that can only be minted by users who have voted yes on a specific referendum. It also refactors the existing unlockable collection components to be more reusable and robust, and enables the use of the Polkassembly API to fetch the voting data.
🤖 Generated by Copilot at fa7ee3c