-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add intent link hook and component #663
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
Draft
laurenashpole
wants to merge
28
commits into
07-28-feat_apps_create_example_apps_for_demo
Choose a base branch
from
la/intents-component
base: 07-28-feat_apps_create_example_apps_for_demo
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: add intent link hook and component #663
laurenashpole
wants to merge
28
commits into
07-28-feat_apps_create_example_apps_for_demo
from
la/intents-component
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* refactor: remove unused cors error code * fix: styling for error messaging * chore: fix tests * chore: code review updates * chore: fix tests
This is easily replaced by actually placing a real instance in the context.
…lue (#648) * fix(auth): do not clear the entire hash during login, only a token value * fix(auth): also remove withSid
* fix(deps): update dependency @sanity/client to ^7.12.0 * fix(deps): update pnpm-lock.yaml --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Carolina Gonzalez <carolina@sanity.io>
Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
…646) * fix: auth race condition when using the SDK in the Studio structure * fix(auth): fix cookie authentication in studio mode * fix(auth): do not redirect to the login if Studio mode is enabled
Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
* chore(deps): update dependency vite to v6.3.6 [security] * chore: manually update to Vite ^6.3.6 * chore: fix dep compatibility --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ryan Bonial <4294665+ryanbonial@users.noreply.github.com> Co-authored-by: Ryan Bonial <ryanbonial@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…o 8ab049f (#662) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…d7e6 (#661) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ryan Bonial <4294665+ryanbonial@users.noreply.github.com>
…ion to ef1944e (#660) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: add agent actions
* feat: introduce "source" concept The following introduces a "source" concept that can be used to query different types of resources. The long-term vision here is: - `SanityInstance` should no longer be an inherited tree structure. This will rather be a single object which contains global information (e.g. token). There will be no re-use of any state across `SanityInstance`. - All hooks/functions which works on documents will also accept a `source` parameter. This is a single parameter (instead of the `projectId`/`dataset`) tuple that can easily be passed around. If you're making higher-order helpers you just need to accept a single source object. - There are top-level functions which constructs these `source` objects. In the future these objects will also contain type information. These should also be owned by `@sanity/client`. In this PR we're mapping it to the existing experimental resource API, but the intention is for `@sanity/client` to provide a proper source-based API which we're re-exporting/using here in SDK. - We'll introduce a new "default source" context as well. This is _outside_ of the `SanityInstance` so that you can change it. - There will be no special support for placing multiple sources in the context. The user can always define their own context if they want to have access to multiple `source` objects. This gives them more flexibility in how to structure their applications. - If you have fully static data sources you can always hard-code them in single file: `export const PRODUCTS = datasetSource(projectId, "datasets")`. * refactor: enforce explicit client config and add tests to achieve coverage --------- Co-authored-by: Carolina Gonzalez <carolina@sanity.io>
* feat(react): create useSendIntent hook * refactor: rename to useDispatch intent and enforce intentId / action behavior * feat: add media library source for intents and kitchensink route * Update packages/react/src/hooks/dashboard/useDispatchIntent.ts Co-authored-by: Cole Peters <cole@colepeters.com> * Update packages/react/src/hooks/dashboard/useDispatchIntent.ts Co-authored-by: Cole Peters <cole@colepeters.com> * refactor: rename params option --------- Co-authored-by: Cole Peters <cole@colepeters.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What to review
Testing
Fun gif