Skip to content

Commit f17aa19

Browse files
authored
Merge pull request #46 from andybywire/toxo-mgr-testing
Merge toxo mgr testing
2 parents 8b3f1ef + 2d38af3 commit f17aa19

7 files changed

Lines changed: 2232 additions & 1312 deletions

File tree

pnpm-lock.yaml

Lines changed: 2054 additions & 1145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

studio/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# npm-style resolution for shared libraries (w/ .yalc)
2+
public-hoist-pattern[]=*

studio/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
"@sanity/icons": "^3.7.4",
2525
"@sanity/id-utils": "^1.0.0",
2626
"@sanity/ui": "^3.1.11",
27-
"@sanity/vision": "^5.8.1",
27+
"@sanity/vision": "^5.9.0",
2828
"@types/react-dom": "^19.2.3",
2929
"react": "^19.2.4",
3030
"react-dom": "^19.2.4",
3131
"react-icons": "^5.5.0",
3232
"react-is": "^19.2.4",
3333
"rxjs": "^7.8.2",
34-
"sanity": "^5.8.1",
34+
"sanity": "^5.9.0",
3535
"sanity-plugin-bulk-delete": "^1.1.1",
36-
"sanity-plugin-taxonomy-manager": "^4.5.0",
36+
"sanity-plugin-taxonomy-manager": "^4.6.0",
3737
"styled-components": "^6.3.8"
3838
},
3939
"devDependencies": {

studio/sanity.config.ts

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ const hiddenDocTypes = (listItem: any) =>
2727
export function defaultDocumentNode(S: StructureBuilder, {schemaType}: {schemaType: string}) {
2828
// Conditionally return a different configuration based on the schema type
2929
if (schemaType === 'discipline') {
30-
return S.document().views([S.view.form(),
30+
return S.document().views([
31+
S.view.form(),
3132
// S.view.component(WebPreview).title('Preview')
3233
])
3334
}
@@ -92,6 +93,10 @@ export default defineConfig([
9293
visionTool(),
9394
taxonomyManager({
9495
baseUri: 'https://uxmethods.org/',
96+
ident: {
97+
pattern: '0123456789',
98+
regenUi: true,
99+
}
95100
}),
96101
embeddingsIndexDashboard(),
97102
embeddingsIndexReferenceInput(),
@@ -101,6 +106,14 @@ export default defineConfig([
101106
schema: {
102107
types: schemaTypes,
103108
},
109+
// I think I need these for Taxonomy Manager testing?
110+
vite: {
111+
resolve: {preserveSymlinks: true},
112+
// Don’t pre-bundle your linked package (let Vite watch it like source)
113+
optimizeDeps: {exclude: ['sanity-plugin-taxonomy-manager']},
114+
// Make sure the dev server *doesn’t* treat it as external CJS
115+
ssr: {noExternal: ['sanity-plugin-taxonomy-manager']},
116+
},
104117
},
105118
{
106119
name: 'ai-settings',
@@ -136,6 +149,14 @@ export default defineConfig([
136149
schema: {
137150
types: schemaTypes,
138151
},
152+
// I think I need these for Taxonomy Manager testing?
153+
vite: {
154+
resolve: {preserveSymlinks: true},
155+
// Don’t pre-bundle your linked package (let Vite watch it like source)
156+
optimizeDeps: {exclude: ['sanity-plugin-taxonomy-manager']},
157+
// Make sure the dev server *doesn’t* treat it as external CJS
158+
ssr: {noExternal: ['sanity-plugin-taxonomy-manager']},
159+
},
139160
},
140161
{
141162
name: 'taxo-test',
@@ -164,8 +185,13 @@ export default defineConfig([
164185
visionTool(),
165186
taxonomyManager({
166187
baseUri: 'https://uxmethods.org/',
188+
ident: {
189+
pattern: '0123456789',
190+
regenUi: true,
191+
}
167192
}),
168193
embeddingsIndexDashboard(),
194+
embeddingsIndexReferenceInput(),
169195
BulkDelete({
170196
schemaTypes: schemaTypes, // Pass your schema types here
171197
// roles: ['administrator', 'editor'], // Optionally restrict to specific roles
@@ -176,5 +202,13 @@ export default defineConfig([
176202
schema: {
177203
types: schemaTypes,
178204
},
205+
// I think I need these for Taxonomy Manager testing?
206+
vite: {
207+
resolve: {preserveSymlinks: true},
208+
// Don’t pre-bundle your linked package (let Vite watch it like source)
209+
optimizeDeps: {exclude: ['sanity-plugin-taxonomy-manager']},
210+
// Make sure the dev server *doesn’t* treat it as external CJS
211+
ssr: {noExternal: ['sanity-plugin-taxonomy-manager']},
212+
},
179213
},
180214
])

studio/schema.json

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,11 +1088,10 @@
10881088
},
10891089
"optional": true
10901090
},
1091-
"singleTermFromSchemeNoTop": {
1091+
"metaDescription": {
10921092
"type": "objectAttribute",
10931093
"value": {
1094-
"type": "inline",
1095-
"name": "skosConcept.reference"
1094+
"type": "string"
10961095
},
10971096
"optional": true
10981097
},
@@ -1104,63 +1103,10 @@
11041103
},
11051104
"optional": true
11061105
},
1107-
"singleTermFromBranchNoTop": {
1108-
"type": "objectAttribute",
1109-
"value": {
1110-
"type": "inline",
1111-
"name": "skosConcept.reference"
1112-
},
1113-
"optional": true
1114-
},
1115-
"singleTermFromBranch": {
1116-
"type": "objectAttribute",
1117-
"value": {
1118-
"type": "inline",
1119-
"name": "skosConcept.reference"
1120-
},
1121-
"optional": true
1122-
},
1123-
"arrayFromScheme": {
1124-
"type": "objectAttribute",
1125-
"value": {
1126-
"type": "array",
1127-
"of": {
1128-
"type": "object",
1129-
"attributes": {
1130-
"_key": {
1131-
"type": "objectAttribute",
1132-
"value": {
1133-
"type": "string"
1134-
}
1135-
}
1136-
},
1137-
"rest": {
1138-
"type": "inline",
1139-
"name": "skosConcept.reference"
1140-
}
1141-
}
1142-
},
1143-
"optional": true
1144-
},
1145-
"arrayFromBranch": {
1106+
"testField": {
11461107
"type": "objectAttribute",
11471108
"value": {
1148-
"type": "array",
1149-
"of": {
1150-
"type": "object",
1151-
"attributes": {
1152-
"_key": {
1153-
"type": "objectAttribute",
1154-
"value": {
1155-
"type": "string"
1156-
}
1157-
}
1158-
},
1159-
"rest": {
1160-
"type": "inline",
1161-
"name": "skosConcept.reference"
1162-
}
1163-
}
1109+
"type": "string"
11641110
},
11651111
"optional": true
11661112
}

studio/schemaTypes/documents/taxonomyTest.ts

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)