Skip to content

Commit

Permalink
chore(test-studio): reorganize comments & imports in test schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Jan 20, 2024
1 parent 56ba20b commit b96ff98
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 163 deletions.
254 changes: 127 additions & 127 deletions dev/test-studio/schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,59 +1,36 @@
// Test documents with standard inputs
import {allTypes} from './allTypes'
import author from './author'
import book from './book'
import conditionalFieldset from './ci/conditionalFieldset'
import validationTest from './ci/validationCI'
import actions from './debug/actions'
import {allNativeInputComponents} from './debug/allNativeInputComponents'
import button from './debug/button'
import * as scrollBugTypes from './debug/scrollBug'
import {demos3d} from './demos/3d'
import {v3docs} from './docs/v3'
import arrays, {topLevelArrayType, topLevelPrimitiveArrayType} from './standard/arrays'
import booleans from './standard/booleans'
import date from './standard/date'
import datetime from './standard/datetime'
import emails from './standard/emails'
import files from './standard/files'
import images, {myImage} from './standard/images'
import numbers from './standard/numbers'
import objects, {myObject} from './standard/objects'
import {ptAllTheBellsAndWhistlesType} from './standard/portableText/allTheBellsAndWhistles'
import blocks from './standard/portableText/blocks'
import {ptCustomMarkersTestType} from './standard/portableText/customMarkers'
import richTextObject from './standard/portableText/richTextObject'
import simpleBlock from './standard/portableText/simpleBlock'
import manyEditors from './standard/portableText/manyEditors'
import simpleBlockNote from './standard/portableText/simpleBlockNote'
import simpleBlockNoteBody from './standard/portableText/simpleBlockNoteBody'
import simpleBlockNoteUrl from './standard/portableText/simpleBlockNoteUrl'
import spotifyEmbed from './standard/portableText/spotifyEmbed'
import references, {referenceAlias} from './standard/references'
import slugs, {slugAlias} from './standard/slugs'
import strings from './standard/strings'
import texts from './standard/texts'
import urls from './standard/urls'

// Test documents for docs
// Demo documents for 3d experiments

// Test documents for debugging
import {circularCrossDatasetReferenceTest} from './debug/circularCrossDatasetReference'
import {collapsibleObjects} from './debug/collapsibleObjects'
import {commentsDebug} from './debug/comments'
import conditionalFields from './debug/conditionalFields'
import customInputs from './debug/customInputs'
import customInputsWithPatches from './debug/customInputsWithPatches'
import customNumber from './debug/customNumber'
import {collapsibleObjects} from './debug/collapsibleObjects'
import documentActions from './debug/documentActions'
import empty from './debug/empty'
import experiment from './debug/experiment'
import {fieldActionsTest} from './debug/fieldActionsTest'
import fieldComponentsTest from './debug/fieldComponentsTest'
import fieldsets from './debug/fieldsets'
import fieldGroups from './debug/fieldGroups'
import fieldGroupsDefault from './debug/fieldGroupsDefault'
import fieldGroupsMany from './debug/fieldGroupsMany'
import fieldGroupsWithFieldsets from './debug/fieldGroupsWithFieldsets'
import fieldGroupsWithFieldsetsAndValidation from './debug/fieldGroupsWithFieldsetsAndValidation'
import fieldGroupsWithValidation from './debug/fieldGroupsWithValidation'
import {
fieldValidationInferReproSharedObject,
fieldValidationInferReproDoc,
} from './debug/fieldValidationInferRepro'
import fieldsets from './debug/fieldsets'
import focus from './debug/focus'
import {formInputDebug} from './debug/formInputDebug'
import gallery from './debug/gallery'
import {hoistedPt, hoistedPtDocument, customBlock} from './debug/hoistedPt'
import {initialValuesTest, superlatives} from './debug/initialValuesTest'
Expand All @@ -67,54 +44,61 @@ import notitle from './debug/notitle'
import poppers from './debug/poppers'
import presence, {objectWithNestedArray} from './debug/presence'
import previewImageUrlTest from './debug/previewImageUrlTest'
import {formInputDebug} from './debug/formInputDebug'
import previewMediaTest from './debug/previewMediaTest'
import {previewSelectBugRepro} from './debug/previewSelectBugRepro'
import ptReference from './debug/ptReference'
import radio from './debug/radio'
import readOnly from './debug/readOnly'
import recursive from './debug/recursive'
import recursiveArray from './debug/recursiveArray'
import recursiveObjectTest, {recursiveObject} from './debug/recursiveObject'
import recursivePopover from './debug/recursivePopover'
import {simpleArrayOfObjects} from './debug/simpleArrayOfObjects'
import {simpleReferences} from './debug/simpleReferences'
import reservedFieldNames from './debug/reservedFieldNames'
import review from './debug/review'
import * as scrollBugTypes from './debug/scrollBug'
import select from './debug/select'
import {simpleArrayOfObjects} from './debug/simpleArrayOfObjects'
import {simpleReferences} from './debug/simpleReferences'
import typeWithNoToplevelStrings from './debug/typeWithNoToplevelStrings'
import uploads from './debug/uploads'
import validation, {validationArraySuperType} from './debug/validation'
import fieldGroups from './debug/fieldGroups'
import fieldGroupsDefault from './debug/fieldGroupsDefault'
import fieldGroupsMany from './debug/fieldGroupsMany'
import fieldGroupsWithValidation from './debug/fieldGroupsWithValidation'
import fieldGroupsWithFieldsetsAndValidation from './debug/fieldGroupsWithFieldsetsAndValidation'
import {virtualizationInObject} from './debug/virtualizationInObject'
import {virtualizationDebug} from './debug/virtualizationDebug'

// Test documents with official plugin inputs
import code from './plugins/code'
import color from './plugins/color'
import geopoint from './plugins/geopoint'
// import {orderableCategoryDocumentType} from './plugins/orderableCategory'
// import {orderableTagDocumentType} from './plugins/orderableTag'

// Test documents with 3rd party plugin inputs
import {virtualizationInObject} from './debug/virtualizationInObject'
import {demos3d} from './demos/3d'
import {v3docs} from './docs/v3'
import markdown from './externalPlugins/markdown'
import mux from './externalPlugins/mux'

// Other documents
import species from './species'
import playlist from './playlist'
import playlistTrack from './playlistTrack'

// CI documents
import code from './plugins/code'
import color from './plugins/color'
import geopoint from './plugins/geopoint'
import species from './species'
import arrays, {topLevelArrayType, topLevelPrimitiveArrayType} from './standard/arrays'
import booleans from './standard/booleans'
import crossDatasetReference, {crossDatasetSubtype} from './standard/crossDatasetReference'
import {circularCrossDatasetReferenceTest} from './debug/circularCrossDatasetReference'
import {allNativeInputComponents} from './debug/allNativeInputComponents'
import fieldGroupsWithFieldsets from './debug/fieldGroupsWithFieldsets'
import ptReference from './debug/ptReference'
import {commentsDebug} from './debug/comments'
import date from './standard/date'
import datetime from './standard/datetime'
import emails from './standard/emails'
import files from './standard/files'
import images, {myImage} from './standard/images'
import numbers from './standard/numbers'
import objects, {myObject} from './standard/objects'
import {ptAllTheBellsAndWhistlesType} from './standard/portableText/allTheBellsAndWhistles'
import blocks from './standard/portableText/blocks'
import {ptCustomMarkersTestType} from './standard/portableText/customMarkers'
import manyEditors from './standard/portableText/manyEditors'
import richTextObject from './standard/portableText/richTextObject'
import simpleBlock from './standard/portableText/simpleBlock'
import simpleBlockNote from './standard/portableText/simpleBlockNote'
import simpleBlockNoteBody from './standard/portableText/simpleBlockNoteBody'
import simpleBlockNoteUrl from './standard/portableText/simpleBlockNoteUrl'
import spotifyEmbed from './standard/portableText/spotifyEmbed'
import references, {referenceAlias} from './standard/references'
import slugs, {slugAlias} from './standard/slugs'
import strings from './standard/strings'
import texts from './standard/texts'
import urls from './standard/urls'

// @todo temporary, until code input is v3 compatible
const codeInputType = {
Expand Down Expand Up @@ -151,119 +135,135 @@ const codeInputType = {
}

export const schemaTypes = [
actions,
// Test documents with standard inputs
arrays,
author,
blocks,
book,
topLevelArrayType,
topLevelPrimitiveArrayType,
booleans,
date,
datetime,
emails,
files,
images,
myImage,
numbers,
objects,
myObject,
ptAllTheBellsAndWhistlesType,
blocks,
ptCustomMarkersTestType,
richTextObject,
...Object.values(scrollBugTypes),
simpleBlock,
manyEditors,
simpleBlockNote,
simpleBlockNoteBody,
simpleBlockNoteUrl,
spotifyEmbed,
references,
referenceAlias,
slugs,
slugAlias,
strings,
texts,
urls,

// Test documents for debugging
actions,
button,
code,
codeInputType, // @todo temporary, until code input is v3 compatible
color,
commentsDebug,
conditionalFields,
conditionalFieldset,
customBlock,
customInputs,
customInputsWithPatches,
customNumber,
date,
datetime,
collapsibleObjects,
documentActions,
emails,
empty,
experiment,
fieldActionsTest,
fieldComponentsTest,
fieldValidationInferReproDoc,
fieldValidationInferReproSharedObject,
fieldsets,
files,

fieldValidationInferReproSharedObject,
fieldValidationInferReproDoc,

focus,
gallery,
geopoint,
hoistedPt,
hoistedPtDocument,
images,
collapsibleObjects,
customBlock,
initialValuesTest,
superlatives,
inspectorsTestType,
invalidPreviews,
languageFilterDebugType,
liveEdit,
localeString,
manyFieldsTest,
markdown,
mux,
myImage,
myObject,
notitle,
numbers,
objectWithNestedArray,
objects,
formInputDebug,
// orderableCategoryDocumentType,
// orderableTagDocumentType,
manyEditors,
playlist,
playlistTrack,
poppers,
presence,
objectWithNestedArray,
previewImageUrlTest,
formInputDebug,
previewMediaTest,
previewSelectBugRepro,
ptAllTheBellsAndWhistlesType,
ptCustomMarkersTestType,
ptReference,
radio,
readOnly,
recursive,
recursiveArray,
recursiveObject,
recursiveObjectTest,
recursiveObject,
recursivePopover,
references,
referenceAlias,
crossDatasetReference,
crossDatasetSubtype,
circularCrossDatasetReferenceTest,
simpleArrayOfObjects,
simpleReferences,
reservedFieldNames,
review,
richTextObject,
...Object.values(scrollBugTypes),
select,
simpleBlock,
simpleBlockNote,
simpleBlockNoteBody,
simpleBlockNoteUrl,
simpleArrayOfObjects,
simpleReferences,
slugs,
slugAlias,
species,
spotifyEmbed,
strings,
superlatives,
inspectorsTestType,
texts,
topLevelArrayType,
topLevelPrimitiveArrayType,
typeWithNoToplevelStrings,
uploads,
urls,
validation,
validationArraySuperType,
validationTest,
virtualizationDebug,
virtualizationInObject,
fieldGroups,
fieldGroupsDefault,
fieldGroupsMany,
fieldGroupsWithValidation,
fieldGroupsWithFieldsets,
fieldGroupsWithFieldsetsAndValidation,
virtualizationInObject,
virtualizationDebug,

// Test documents with official plugin inputs
code,
// @todo temporary, until code input is v3 compatible
codeInputType,
color,
geopoint,

// Test documents with 3rd party plugin inputs
markdown,
mux,

// Other documents
author,
book,
species,
playlist,
playlistTrack,

// CI documents
conditionalFieldset,
validationTest,
crossDatasetReference,
crossDatasetSubtype,
circularCrossDatasetReferenceTest,
allNativeInputComponents,
allTypes,
fieldGroupsWithFieldsets,
ptReference,
commentsDebug,

// Test documents for docs
...v3docs.types,

// Demo documents for 3d experiments
...demos3d.types,
]
18 changes: 0 additions & 18 deletions dev/test-studio/schema/plugins/orderableCategory.ts

This file was deleted.

18 changes: 0 additions & 18 deletions dev/test-studio/schema/plugins/orderableTag.ts

This file was deleted.

0 comments on commit b96ff98

Please sign in to comment.