Skip to content
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

chore: add generative_uri #210

Merged
merged 2 commits into from
Jul 3, 2024
Merged

chore: add generative_uri #210

merged 2 commits into from
Jul 3, 2024

Conversation

preschian
Copy link
Member

Context

Add generative_uri compability to hyperdata

Ref

PR Type

  • Bugfix
  • Feature
  • Refactoring
  • Chore

@preschian preschian requested a review from vikiival July 1, 2024 13:08
@@ -26,7 +26,7 @@
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"prepack": "pnpm run build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "vitest run"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will leave vitest in watch mode - not preffered as it cannot run in CI

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 81 to 84
const previewParam =
meta.previewParam ||
(meta.external_url?.includes('koda') && 'koda') ||
'fxhash'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview param of this

ipfs://bafybeihxrnjmqs7po3jw3p37csyscvgxuwg2khow5zm46liutxq466q45m/?hash=0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116

is hash

Suggested change
const previewParam =
meta.previewParam ||
(meta.external_url?.includes('koda') && 'koda') ||
'fxhash'
const previewParam =
meta.previewParam || 'hash'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this represent collection or NFT

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

chore(tests): update koda file name in generative tests to match new structure
Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

hyperdata/src/normalize.ts Show resolved Hide resolved
@vikiival vikiival merged commit 0b73a23 into main Jul 3, 2024
2 checks passed
@preschian preschian deleted the chore--add-generative_uri branch July 3, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add generative_uri to the hyperdata
2 participants