Skip to content

Feat: Core SDK improvements necessary for token gated mini apps #101

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

Merged
merged 13 commits into from
Dec 4, 2023

Conversation

davidfurlong
Copy link
Contributor

@davidfurlong davidfurlong commented Dec 1, 2023

This is #92 without the Lit protocol mini apps.

  • Adds a combobox element
  • Adds a select element
  • Adds a textarea element
  • Adds a draft for Model Definitions published by Mini-apps that can be expressed in schema.org schemas
  • Adds a loadingLabel prop to buttons
  • Adds an ethPersonalSign mod Action
  • Adds a new schema for metadata in json-ld
  • Adds json-ld indexing to the metadata indexer (arweave and local)
  • Adds a new endpoint for querying the metadata indexer by url, /api/cast-embeds-metadata/by-url

Open todos:

  • needs changesets
  • Documentation for Model definitions
  • Consider adding json-ld to the metascraper

Would particularly like a review on this proposed way of doing Model definitions. Is there a strong case that these should be separate from Mini-apps entirely instead?

Copy link

changeset-bot bot commented Dec 1, 2023

🦋 Changeset detected

Latest commit: cfcbbf4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@mod-protocol/react-ui-shadcn Minor
web Minor
@mod-protocol/react Minor
@mod-protocol/core Minor
@miniapps/zora-nft-minter Patch
@miniapps/giphy-picker Patch
@mod-protocol/react-editor Patch
@miniapps/nft-minter Patch
@miniapps/chatgpt Patch
api Patch
docs Patch
@miniapps/chatgpt-shorten Patch
@miniapps/image-render Patch
@miniapps/infura-ipfs-upload Patch
@miniapps/livepeer-video Patch
@miniapps/url-render Patch
@miniapps/video-render Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 2:07pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 2:07pm
example-nextjs-shadcn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 2:07pm

@davidfurlong davidfurlong changed the title Feat/component selects Feat: Core SDK improvements necessary for token gated mini apps Dec 1, 2023
Copy link
Contributor

@stephancill stephancill left a comment

Choose a reason for hiding this comment

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

lgtm, added some minor comments

Comment on lines 3 to 7
transpilePackages: [
"@mod-protocol/react",
// Fixes https://discord.com/channels/896185694857343026/1174716239508156496
"@lit-protocol/bls-sdk",
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this change + lit-related packages in package.json not be in the token gated casts PR?

Comment on lines +890 to +895
// domain: this.replaceInlineContext(action.data.domain),
// address: this.replaceInlineContext(action.data.address),
statement: this.replaceInlineContext(action.data.statement),
// uri: this.replaceInlineContext(action.data.uri),
version: this.replaceInlineContext(action.data.version),
chainId: this.replaceInlineContext(action.data.chainId),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should domain, address, uri not be exposed?

Copy link
Contributor Author

@davidfurlong davidfurlong Dec 4, 2023

Choose a reason for hiding this comment

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

this is done by the implementing app in the action handler

Copy link
Contributor

Choose a reason for hiding this comment

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

ah okay makes sense

Copy link
Contributor

@stephancill stephancill left a comment

Choose a reason for hiding this comment

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

ethers in api/package.json is unused.

Otherwise lgtm

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.

2 participants