Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions src/collections/CustomCollectionPages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ export const CustomCollectionPages: CollectionConfig = {
},
}
},
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'publishedAt',
type: 'date',
Expand Down Expand Up @@ -165,6 +159,12 @@ export const CustomCollectionPages: CollectionConfig = {
},
},
relatedItems('custom-collection-pages'),
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [publish],
Expand Down
13 changes: 6 additions & 7 deletions src/collections/Events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ export const Events: CollectionConfig<'events'> = {
{ label: 'Series', value: 'series' },
],
},
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'showInPageNav',
label: 'Show In-Page Navigation',
Expand All @@ -179,7 +173,12 @@ export const Events: CollectionConfig<'events'> = {
},
},
relatedItems('events'),

{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [publish],
Expand Down
12 changes: 6 additions & 6 deletions src/collections/News/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ export const News: CollectionConfig<'news'> = {
},
siteField,
...slugField(),
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'publishedAt',
type: 'date',
Expand Down Expand Up @@ -99,6 +93,12 @@ export const News: CollectionConfig<'news'> = {
},
},
relatedItems('news'),
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [publish],
Expand Down
12 changes: 6 additions & 6 deletions src/collections/Posts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ export const Posts: CollectionConfig<'posts'> = {
type: 'richText',
editor,
},
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'authors',
type: 'relationship',
Expand Down Expand Up @@ -138,6 +132,12 @@ export const Posts: CollectionConfig<'posts'> = {
relatedItems('posts'),
...slugField(),
...customFields,
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [revalidatePost, publish],
Expand Down
12 changes: 6 additions & 6 deletions src/collections/Reports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ export const Reports: CollectionConfig = {
type: 'richText',
editor,
},
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'updatedBy',
type: 'relationship',
Expand Down Expand Up @@ -137,6 +131,12 @@ export const Reports: CollectionConfig = {
},
},
relatedItems('reports'),
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [publish],
Expand Down
12 changes: 6 additions & 6 deletions src/collections/Resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ export const Resources: CollectionConfig = {
type: 'richText',
editor,
},
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
{
name: 'publishedAt',
type: 'date',
Expand Down Expand Up @@ -137,6 +131,12 @@ export const Resources: CollectionConfig = {
},
},
relatedItems('resources'),
{
name: 'reviewReady',
label: 'Ready for Review',
type: 'checkbox',
defaultValue: false,
},
],
hooks: {
afterChange: [publish],
Expand Down
24 changes: 12 additions & 12 deletions src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ export interface Post {
};
[k: string]: unknown;
} | null;
reviewReady?: boolean | null;
authors?: (number | User)[] | null;
populatedAuthors?:
| {
Expand Down Expand Up @@ -349,6 +348,7 @@ export interface Post {
slug?: string | null;
slugLock?: boolean | null;
'Example Custom Field'?: ('radio' | 'television' | 'podcast' | 'video') | null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -455,7 +455,6 @@ export interface Event {
endDate?: string | null;
format: 'inperson' | 'virtual';
eventType: 'onetime' | 'series';
reviewReady?: boolean | null;
/**
* Display the in-page navigation sidebar on this event
*/
Expand Down Expand Up @@ -491,6 +490,7 @@ export interface Event {
}
)[]
| null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -531,7 +531,6 @@ export interface News {
site: number | Site;
slug?: string | null;
slugLock?: boolean | null;
reviewReady?: boolean | null;
publishedAt?: string | null;
updatedBy?: (number | null) | User;
/**
Expand Down Expand Up @@ -569,6 +568,7 @@ export interface News {
}
)[]
| null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -610,7 +610,6 @@ export interface Report {
};
[k: string]: unknown;
} | null;
reviewReady?: boolean | null;
updatedBy?: (number | null) | User;
publishedAt?: string | null;
/**
Expand Down Expand Up @@ -648,6 +647,7 @@ export interface Report {
}
)[]
| null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -690,7 +690,6 @@ export interface Resource {
};
[k: string]: unknown;
} | null;
reviewReady?: boolean | null;
publishedAt?: string | null;
/**
* Display the in-page navigation sidebar on this resource
Expand Down Expand Up @@ -727,6 +726,7 @@ export interface Resource {
}
)[]
| null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -867,7 +867,6 @@ export interface CustomCollectionPage {
[k: string]: unknown;
} | null;
updatedBy?: (number | null) | User;
reviewReady?: boolean | null;
publishedAt?: string | null;
/**
* Display the in-page navigation sidebar on this content
Expand Down Expand Up @@ -904,6 +903,7 @@ export interface CustomCollectionPage {
}
)[]
| null;
reviewReady?: boolean | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
Expand Down Expand Up @@ -2239,7 +2239,6 @@ export interface PostsSelect<T extends boolean = true> {
categories?: T;
site?: T;
content?: T;
reviewReady?: T;
authors?: T;
populatedAuthors?:
| T
Expand Down Expand Up @@ -2274,6 +2273,7 @@ export interface PostsSelect<T extends boolean = true> {
slug?: T;
slugLock?: T;
'Example Custom Field'?: T;
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand Down Expand Up @@ -2307,7 +2307,6 @@ export interface EventsSelect<T extends boolean = true> {
endDate?: T;
format?: T;
eventType?: T;
reviewReady?: T;
showInPageNav?: T;
relatedItems?:
| T
Expand All @@ -2330,6 +2329,7 @@ export interface EventsSelect<T extends boolean = true> {
blockName?: T;
};
};
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand All @@ -2347,7 +2347,6 @@ export interface NewsSelect<T extends boolean = true> {
site?: T;
slug?: T;
slugLock?: T;
reviewReady?: T;
publishedAt?: T;
updatedBy?: T;
showInPageNav?: T;
Expand All @@ -2372,6 +2371,7 @@ export interface NewsSelect<T extends boolean = true> {
blockName?: T;
};
};
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand All @@ -2396,7 +2396,6 @@ export interface ReportsSelect<T extends boolean = true> {
categories?: T;
site?: T;
content?: T;
reviewReady?: T;
updatedBy?: T;
publishedAt?: T;
showInPageNav?: T;
Expand All @@ -2421,6 +2420,7 @@ export interface ReportsSelect<T extends boolean = true> {
blockName?: T;
};
};
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand All @@ -2446,7 +2446,6 @@ export interface ResourcesSelect<T extends boolean = true> {
categories?: T;
site?: T;
content?: T;
reviewReady?: T;
publishedAt?: T;
showInPageNav?: T;
relatedItems?:
Expand All @@ -2470,6 +2469,7 @@ export interface ResourcesSelect<T extends boolean = true> {
blockName?: T;
};
};
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand Down Expand Up @@ -2531,7 +2531,6 @@ export interface CustomCollectionPagesSelect<T extends boolean = true> {
site?: T;
content?: T;
updatedBy?: T;
reviewReady?: T;
publishedAt?: T;
showInPageNav?: T;
relatedItems?:
Expand All @@ -2555,6 +2554,7 @@ export interface CustomCollectionPagesSelect<T extends boolean = true> {
blockName?: T;
};
};
reviewReady?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
Expand Down