refactor: breadcrumbs stuff

This commit is contained in:
2025-09-16 13:51:03 -04:00
parent 4cff390f41
commit 3d1e311fef
6 changed files with 91 additions and 97 deletions

View File

@@ -210,7 +210,7 @@ type AcfMediaItemConnectionEdge implements Edge & MediaItemConnectionEdge & OneT
"""Options Page registered by ACF"""
interface AcfOptionsPage implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -373,8 +373,8 @@ type BreadcrumbItem {
"""The display label for the breadcrumb"""
label: String!
"""The URI for the breadcrumb link (null for current page)"""
uri: String
"""The to for the breadcrumb link (null for current page)"""
to: String
}
"""
@@ -403,7 +403,7 @@ type Category implements DatabaseIdentifier & HierarchicalNode & HierarchicalTer
): CategoryToAncestorsCategoryConnection
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The id field matches the WP_Post->ID field."""
categoryId: Int @deprecated(reason: "Deprecated in favor of databaseId")
@@ -1093,7 +1093,7 @@ type Comment implements DatabaseIdentifier & Node & UniformResourceIdentifiable
authorIp: String @deprecated(reason: "Use the ipAddress field on the edge between the comment and author")
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""ID for the comment, unique among comments."""
commentId: Int @deprecated(reason: "Deprecated in favor of databaseId")
@@ -1222,7 +1222,7 @@ type CommentAuthor implements Commenter & DatabaseIdentifier & Node {
): Avatar
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The unique identifier stored in the database"""
databaseId: Int!
@@ -1610,7 +1610,7 @@ interface Commenter implements DatabaseIdentifier & Node {
avatar: Avatar
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Identifies the primary key from the database."""
databaseId: Int!
@@ -1722,7 +1722,7 @@ Base interface for content objects like posts, pages, and media items. Provides
"""
interface ContentNode implements Node & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -2041,7 +2041,7 @@ interface ContentTemplate {
"""An Post Type object"""
type ContentType implements Node & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Whether this content type should can be exported."""
canExport: Boolean
@@ -2509,7 +2509,7 @@ type Contributor implements ContentNode & DatabaseIdentifier & HierarchicalConte
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the HierarchicalContentNode type and the ContentNode type
@@ -4817,7 +4817,7 @@ type Discipline implements DatabaseIdentifier & HierarchicalNode & HierarchicalT
): DisciplineToAncestorsDisciplineConnection
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the Discipline type and its children Disciplines."""
children(
@@ -5655,7 +5655,7 @@ type EnqueuedScript implements EnqueuedAsset & Node {
before: [String]
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
The HTML conditional comment for the enqueued asset. E.g. IE 6, lte IE 7, etc
@@ -5751,7 +5751,7 @@ type EnqueuedStylesheet implements EnqueuedAsset & Node {
before: [String]
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
The HTML conditional comment for the enqueued asset. E.g. IE 6, lte IE 7, etc
@@ -5875,7 +5875,7 @@ type Event implements ContentNode & DatabaseIdentifier & HierarchicalContentNode
): HierarchicalContentNodeToContentNodeAncestorsConnection
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the HierarchicalContentNode type and the ContentNode type
@@ -8754,7 +8754,7 @@ interface HierarchicalContentNode implements ContentNode & DatabaseIdentifier &
): HierarchicalContentNodeToContentNodeAncestorsConnection
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the HierarchicalContentNode type and the ContentNode type
@@ -9149,7 +9149,7 @@ Content that can exist in a parent-child structure. Provides fields for navigati
"""
interface HierarchicalNode implements DatabaseIdentifier & Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The unique identifier stored in the database"""
databaseId: Int!
@@ -9167,7 +9167,7 @@ interface HierarchicalNode implements DatabaseIdentifier & Node {
"""Term node with hierarchical (parent/child) relationships"""
interface HierarchicalTermNode implements DatabaseIdentifier & HierarchicalNode & Node & TermNode & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The number of objects connected to the object"""
count: Int
@@ -9292,7 +9292,7 @@ type Location implements ContentNode & DatabaseIdentifier & HierarchicalContentN
): HierarchicalContentNodeToContentNodeAncestorsConnection
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the HierarchicalContentNode type and the ContentNode type
@@ -9801,7 +9801,7 @@ type MediaItem implements ContentNode & DatabaseIdentifier & HierarchicalContent
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The caption for the resource"""
caption(
@@ -10260,7 +10260,7 @@ type Membership implements ContentNode & DatabaseIdentifier & Node & NodeWithAut
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -10705,7 +10705,7 @@ Collections of navigation links. Menus can be assigned to designated locations a
"""
type Menu implements DatabaseIdentifier & Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The number of items in the menu"""
count: Int
@@ -10805,7 +10805,7 @@ Navigation menu items are the individual items assigned to a menu. These are ren
"""
type MenuItem implements DatabaseIdentifier & Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the MenuItem type and the MenuItem type"""
childItems(
@@ -10943,7 +10943,7 @@ Content that can be referenced by navigation menu items. Provides the essential
"""
interface MenuItemLinkable implements DatabaseIdentifier & Node & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The unique identifier stored in the database"""
databaseId: Int!
@@ -11463,7 +11463,7 @@ An object with a globally unique identifier. All objects that can be identified
"""
interface Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11483,7 +11483,7 @@ interface NodeWithAuthor implements Node {
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11505,7 +11505,7 @@ Content that has a main body field which can contain formatted text and media. P
"""
interface NodeWithContentEditor implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The content of the post."""
content(
@@ -11522,7 +11522,7 @@ A node which provides an excerpt field, which is a condensed summary of the main
"""
interface NodeWithExcerpt implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The excerpt of the post."""
excerpt(
@@ -11539,7 +11539,7 @@ Content that can have a primary image attached. This image is typically used for
"""
interface NodeWithFeaturedImage implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the NodeWithFeaturedImage type and the MediaItem type
@@ -11576,7 +11576,7 @@ Content that supports ordering metadata. Includes a menu order field which can b
"""
interface NodeWithPageAttributes implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11592,7 +11592,7 @@ Content that maintains a history of changes. Provides access to previous version
"""
interface NodeWithRevisions implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11622,7 +11622,7 @@ Content that provides template metadata. The template can help inform how the co
"""
interface NodeWithTemplate implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11636,7 +11636,7 @@ Content with a dedicated title field. The title typically serves as the main hea
"""
interface NodeWithTitle implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -11716,7 +11716,7 @@ type Page implements ContentNode & DatabaseIdentifier & HierarchicalContentNode
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
Connection between the HierarchicalContentNode type and the ContentNode type
@@ -12172,7 +12172,7 @@ type Plugin implements Node {
authorUri: String
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Description of the plugin."""
description: String
@@ -12303,7 +12303,7 @@ type Post implements ContentNode & DatabaseIdentifier & MenuItemLinkable & Node
authorId: ID
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the Post type and the category type"""
categories(
@@ -12696,7 +12696,7 @@ A standardized classification system for content presentation styles. These form
"""
type PostFormat implements DatabaseIdentifier & Node & TermNode & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the PostFormat type and the ContentNode type"""
contentNodes(
@@ -14186,7 +14186,7 @@ type Project implements ContentNode & DatabaseIdentifier & MenuItemLinkable & No
): ProjectToProjectConnection @deprecated(reason: "This content type is not hierarchical and typically will not have ancestors")
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -14442,7 +14442,7 @@ type Project implements ContentNode & DatabaseIdentifier & MenuItemLinkable & No
"""The ProjectCategory type"""
type ProjectCategory implements DatabaseIdentifier & Node & TermNode & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ProjectCategory type and the ContentNode type"""
contentNodes(
@@ -15521,7 +15521,7 @@ type Representation implements ContentNode & DatabaseIdentifier & Node & NodeWit
): RepresentationToRepresentationConnection @deprecated(reason: "This content type is not hierarchical and typically will not have ancestors")
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -15984,7 +15984,7 @@ type Resource implements ContentNode & DatabaseIdentifier & Node & NodeWithExcer
): ResourceToResourceConnection @deprecated(reason: "This content type is not hierarchical and typically will not have ancestors")
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -16240,7 +16240,7 @@ type Resource implements ContentNode & DatabaseIdentifier & Node & NodeWithExcer
"""The ResourceCategory type"""
type ResourceCategory implements DatabaseIdentifier & Node & TermNode & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ResourceCategory type and the ContentNode type"""
contentNodes(
@@ -21765,7 +21765,7 @@ type Settings {
type SiteOptions implements AcfOptionsPage & Node & WithAcfGroupCcat {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Fields of the GroupCcat ACF Field Group"""
groupCcat: GroupCcat
@@ -21788,7 +21788,7 @@ A taxonomy term used to organize and classify content. Tags do not have a hierar
"""
type Tag implements DatabaseIdentifier & MenuItemLinkable & Node & TermNode & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the Tag type and the ContentNode type"""
contentNodes(
@@ -22255,7 +22255,7 @@ type TagToTaxonomyConnectionEdge implements Edge & OneToOneConnection & Taxonomy
"""A taxonomy object"""
type Taxonomy implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""List of Content Types associated with the Taxonomy"""
connectedContentTypes(
@@ -22545,7 +22545,7 @@ type Template implements ContentNode & DatabaseIdentifier & Node & NodeWithRevis
): TemplateToTemplateConnection @deprecated(reason: "This content type is not hierarchical and typically will not have ancestors")
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""Connection between the ContentNode type and the ContentType type"""
contentType: ContentNodeToContentTypeConnectionEdge
@@ -22961,7 +22961,7 @@ Base interface for taxonomy terms such as categories and tags. Terms are used to
"""
interface TermNode implements Node & UniformResourceIdentifiable {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The number of objects connected to the object"""
count: Int
@@ -23234,7 +23234,7 @@ type Theme implements Node {
authorUri: String
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
The description of the theme. This field is equivalent to WP_Theme->get( "Description" ).
@@ -23329,7 +23329,7 @@ An interface for content that can be accessed via a unique URI/URL path. Impleme
"""
interface UniformResourceIdentifiable implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The globally unique ID for the object"""
id: ID!
@@ -24450,7 +24450,7 @@ type User implements Commenter & DatabaseIdentifier & Node & UniformResourceIden
): Avatar
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""
User metadata option name. Usually it will be "wp_capabilities".
@@ -24866,7 +24866,7 @@ enum UserNodeIdTypeEnum {
"""A user role object"""
type UserRole implements Node {
"""Breadcrumb navigation items for this content"""
breadcrumbs: [BreadcrumbItem]
breadcrumbs: [BreadcrumbItem!]
"""The capabilities that belong to this role"""
capabilities: [String]