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

feat: adds support for Create-Studio integration #7635

Merged
merged 46 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5a1fd10
chore: start-in-create provider
snorrees Oct 18, 2024
a0c864e
feat: first pass Sanity Create form ui
snorrees Oct 19, 2024
b992e41
fix: makes build pass
snorrees Oct 19, 2024
0883572
chore: add new create-integration test studio
snorrees Oct 19, 2024
fdbf154
fix: shows warning toast when createUrl is unresolved
snorrees Oct 19, 2024
d939e45
fix: supports autoconfirming start in create dialog
snorrees Oct 19, 2024
f663aea
fix: prevents Create banner from rendering when pane is collapsed
snorrees Oct 19, 2024
d465b1c
chore: href
snorrees Oct 19, 2024
cf8d176
chore: fixes tests
snorrees Oct 19, 2024
5773570
feat: adds sanityCreate options to all types
snorrees Oct 19, 2024
87f34da
fix: removes Start in Create when type is Create excluded
snorrees Oct 20, 2024
5fb6d2b
chore: minor refactors
snorrees Oct 20, 2024
375bbb1
chore: placeholder media
snorrees Oct 20, 2024
2ab8702
chore: adds sanity create telemetry
snorrees Oct 20, 2024
5f0a707
chore: better create-integration-studio schema
snorrees Oct 20, 2024
cdb4af5
fix: adds purpose field to SanityCreateOptions
snorrees Oct 20, 2024
ae40866
chore: removes test code
snorrees Oct 20, 2024
19f42f6
fix: use create link target for Edit in Create
snorrees Oct 20, 2024
25f5a9c
fix: uses _blank for Create links
snorrees Oct 21, 2024
3a317a3
fix: renames create-integration-studio type to avoid existing test-data
snorrees Oct 22, 2024
c349130
chore: capitalizes create telemetry events
snorrees Oct 22, 2024
3553fb2
fix: point reference field to create-test-article schema type
robinpyon Oct 22, 2024
0f2605f
fix: create studio-import link no longer relies on global user id
snorrees Oct 22, 2024
5bf95dc
fix: copy
snorrees Oct 22, 2024
8f076aa
chore: package-lock merge fix
snorrees Oct 22, 2024
9923b75
fix: updated SVG, minor copy and layout changes
robinpyon Oct 22, 2024
629bf9e
fix: allow document banner popover to be closed with ESC
robinpyon Oct 22, 2024
53d1b9a
fix: display 'untitled' document title fallback when unlinking, use s…
robinpyon Oct 22, 2024
8f2cf38
fix: tweak banner border
robinpyon Oct 22, 2024
6967fd7
chore: removes cyclic dependency between core/config and core/create
snorrees Oct 22, 2024
ee365e3
chore: create url tests
snorrees Oct 22, 2024
12e93f2
chore: appIdCache tests
snorrees Oct 22, 2024
0c70b9a
chore: fetchCreateCompatibleAppId tests
snorrees Oct 22, 2024
3b0a450
chore: useStudioAppIdStore tests
snorrees Oct 22, 2024
bb100ab
chore: makes documentTitle optional in CreateLinkedActionsProps
snorrees Oct 22, 2024
8050487
chore: replaces toSorted with spread array -> sort for test compatabi…
snorrees Oct 22, 2024
df81715
chore: create learn more url
snorrees Oct 23, 2024
e1ff128
chore: removes unused userId from CreateLinkMetadata
snorrees Oct 23, 2024
bb7080f
chore: create learn more link ref
snorrees Oct 23, 2024
8dc7ffb
Merge branch 'next' into create-integration
snorrees Oct 24, 2024
5349546
fix: uses Banner to wrap create read-only content
snorrees Oct 24, 2024
62598f6
Merge branch 'next' into create-integration
snorrees Oct 24, 2024
85591e9
chore: renames telemetry events
snorrees Oct 24, 2024
aaa7f79
Merge branch 'next' into create-integration
snorrees Oct 24, 2024
fcf6410
chore: defaults `beta.sanity.startInCreateEnabled` to `false`
snorrees Oct 24, 2024
e6e89e2
fix: force negative vertical margins on banner button
robinpyon Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dev/test-create-integration-studio/.depcheckignore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore": ["styled-components", "react", "react-dom", "sanity"]
}
1 change: 1 addition & 0 deletions dev/test-create-integration-studio/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
22 changes: 22 additions & 0 deletions dev/test-create-integration-studio/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "test-create-integration-studio",
"version": "3.61.0",
"private": true,
"license": "MIT",
"author": "Sanity.io <[email protected]>",
"scripts": {
"build": "../.bin/sanity build",
"clean": "rimraf .sanity dist",
"deploy": "npx sanity deploy",
"dev": "../.bin/sanity dev",
"lint": "eslint .",
"start": "../.bin/sanity start"
},
"dependencies": {
"@sanity/code-input": "^4.1.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sanity": "workspace:*",
"styled-components": "^6.1.0"
}
}
11 changes: 11 additions & 0 deletions dev/test-create-integration-studio/sanity.cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {defineCliConfig} from 'sanity/cli'

export default defineCliConfig({
api: {
projectId: 'ppsg7ml5',
dataset: 'test',
},

studioHost: 'create-integration-test',
autoUpdates: false,
})
22 changes: 22 additions & 0 deletions dev/test-create-integration-studio/sanity.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import {codeInput} from '@sanity/code-input'
import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'

import {schemaTypes} from './schema'

export default defineConfig({
plugins: [structureTool(), codeInput()],
title: 'Strict',
name: 'default',
projectId: 'ppsg7ml5',
dataset: 'test',
schema: {types: schemaTypes},

beta: {
create: {
startInCreateEnabled: true,
fallbackStudioOrigin: 'create-integration-test.sanity.studio',
},
},
})
Loading
Loading