diff --git a/studioShared/deskStructure.ts b/studioShared/deskStructure.ts index 3c49618f6..445c28a01 100644 --- a/studioShared/deskStructure.ts +++ b/studioShared/deskStructure.ts @@ -1,3 +1,4 @@ +import { ProjectsIcon } from "@sanity/icons"; import { StructureResolver } from "sanity/structure"; import { customerCaseID } from "./schemas/documents/customerCase"; @@ -8,5 +9,6 @@ export const deskStructure: StructureResolver = (S) => .items([ S.listItem() .title("Customer cases") + .icon(ProjectsIcon) .child(S.documentTypeList(customerCaseID).title("Customer cases")), ]); diff --git a/studioShared/schemas/documents/customerCase.ts b/studioShared/schemas/documents/customerCase.ts index 2a70d7780..1f1b8bbec 100644 --- a/studioShared/schemas/documents/customerCase.ts +++ b/studioShared/schemas/documents/customerCase.ts @@ -1,3 +1,4 @@ +import { DocumentTextIcon } from "@sanity/icons"; import { groq } from "next-sanity"; import { Reference, defineField, defineType } from "sanity"; @@ -26,6 +27,7 @@ const customerCase = defineType({ name: customerCaseID, type: "document", title: "Customer Case", + icon: DocumentTextIcon, fields: [ defineField({ ...titleSlug, diff --git a/studioShared/schemas/fields/customerCaseProjectInfo.ts b/studioShared/schemas/fields/customerCaseProjectInfo.ts index c89c2d620..80f308452 100644 --- a/studioShared/schemas/fields/customerCaseProjectInfo.ts +++ b/studioShared/schemas/fields/customerCaseProjectInfo.ts @@ -1,3 +1,4 @@ +import { UlistIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { isInternationalizedString } from "studio/lib/interfaces/global"; @@ -40,6 +41,7 @@ export const customerCaseProjectInfo = defineField({ type: "object", title: "List Item", name: "listItem", + icon: UlistIcon, fields: [ { name: "delivery", diff --git a/studioShared/schemas/objects/emptySection.ts b/studioShared/schemas/objects/emptySection.ts index ebd00bded..8e38bc9c4 100644 --- a/studioShared/schemas/objects/emptySection.ts +++ b/studioShared/schemas/objects/emptySection.ts @@ -1,3 +1,4 @@ +import { SquareIcon } from "@sanity/icons"; import { defineField } from "sanity"; import EmptySectionInput from "studioShared/components/EmptySectionInput"; @@ -7,6 +8,7 @@ const emptySection = defineField({ title: "Blank Space", description: "Displays as blank space on the page.", type: "object", + icon: SquareIcon, fields: [ { name: "placeholder", diff --git a/studioShared/schemas/objects/imageBlock.ts b/studioShared/schemas/objects/imageBlock.ts index 610879f33..582bb24c7 100644 --- a/studioShared/schemas/objects/imageBlock.ts +++ b/studioShared/schemas/objects/imageBlock.ts @@ -1,3 +1,4 @@ +import { ImageIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { isInternationalizedString } from "studio/lib/interfaces/global"; @@ -8,6 +9,7 @@ const imageBlock = defineField({ name: "imageBlock", title: "Image Block", type: "object", + icon: ImageIcon, fields: [ { title: "Image", diff --git a/studioShared/schemas/objects/listBlock.ts b/studioShared/schemas/objects/listBlock.ts index dd9ecc92e..b5bd4dce7 100644 --- a/studioShared/schemas/objects/listBlock.ts +++ b/studioShared/schemas/objects/listBlock.ts @@ -1,3 +1,4 @@ +import { TagIcon, TagsIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { isInternationalizedString } from "studio/lib/interfaces/global"; @@ -5,6 +6,7 @@ import { firstTranslation } from "studio/utils/i18n"; const listBlock = defineField({ name: "listBlock", title: "List Block", + icon: TagsIcon, description: "This block could be used to add a list of skills, tools, methods etc. used for this project.", type: "object", @@ -27,6 +29,7 @@ const listBlock = defineField({ type: "object", title: "List Item", name: "listItem", + icon: TagIcon, fields: [ { name: "text", diff --git a/studioShared/schemas/objects/quoteBlock.ts b/studioShared/schemas/objects/quoteBlock.ts index e7f52592d..01810721c 100644 --- a/studioShared/schemas/objects/quoteBlock.ts +++ b/studioShared/schemas/objects/quoteBlock.ts @@ -1,3 +1,4 @@ +import { CommentIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { firstTranslation } from "studio/utils/i18n"; @@ -6,6 +7,7 @@ const quoteBlock = defineField({ name: "quoteBlock", type: "object", title: "Quote Block", + icon: CommentIcon, fields: [ { name: "quote", diff --git a/studioShared/schemas/objects/resultsBlock.ts b/studioShared/schemas/objects/resultsBlock.ts index 9f6a30a74..f202b1525 100644 --- a/studioShared/schemas/objects/resultsBlock.ts +++ b/studioShared/schemas/objects/resultsBlock.ts @@ -1,3 +1,4 @@ +import { BarChartIcon, ChartUpwardIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { isInternationalizedString } from "studio/lib/interfaces/global"; @@ -7,6 +8,7 @@ const resultsBlock = defineField({ name: "resultsBlock", type: "object", title: "Results Block", + icon: ChartUpwardIcon, description: "This block can be used to add some results from the project.", fields: [ { @@ -28,6 +30,7 @@ const resultsBlock = defineField({ type: "object", title: "Result List Item", name: "resultlistitem", + icon: BarChartIcon, fields: [ { name: "result", diff --git a/studioShared/schemas/objects/splitSection.ts b/studioShared/schemas/objects/splitSection.ts index 4d3bdad08..b922c9691 100644 --- a/studioShared/schemas/objects/splitSection.ts +++ b/studioShared/schemas/objects/splitSection.ts @@ -1,3 +1,4 @@ +import { InlineIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { humanizeCamelCase } from "studio/utils/stringUtils"; @@ -11,6 +12,7 @@ export const splitSectionSections = [...baseCustomerCaseSections, emptySection]; const splitSection = defineField({ name: "splitSection", title: "Split Section", + icon: InlineIcon, description: "Section containing two other sections, displayed side-by-side", type: "object", fields: [ diff --git a/studioShared/schemas/objects/textBlock.ts b/studioShared/schemas/objects/textBlock.ts index d1e5e4e16..b3cc02950 100644 --- a/studioShared/schemas/objects/textBlock.ts +++ b/studioShared/schemas/objects/textBlock.ts @@ -1,3 +1,4 @@ +import { BlockContentIcon } from "@sanity/icons"; import { defineField } from "sanity"; import { firstTranslation } from "studio/utils/i18n"; @@ -6,6 +7,7 @@ const textBlock = defineField({ name: "textBlock", title: "Text Block", type: "object", + icon: BlockContentIcon, fields: [ { name: "sectionTitle",