old automation cleanup adn status feilds of planner udpate
This commit is contained in:
@@ -192,7 +192,7 @@ export const createClustersPageConfig = (
|
||||
render: (value: string) => {
|
||||
const properCase = value ? value.charAt(0).toUpperCase() + value.slice(1) : '-';
|
||||
return (
|
||||
<Badge color={value === 'active' ? 'success' : 'warning'} size="xs" variant="soft">
|
||||
<Badge color={value === 'mapped' ? 'success' : 'amber'} size="xs" variant="soft">
|
||||
<span className="text-[11px] font-normal">{properCase}</span>
|
||||
</Badge>
|
||||
);
|
||||
@@ -248,8 +248,8 @@ export const createClustersPageConfig = (
|
||||
type: 'select',
|
||||
options: [
|
||||
{ value: '', label: 'All Status' },
|
||||
{ value: 'active', label: 'Active' },
|
||||
{ value: 'archived', label: 'Archived' },
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'mapped', label: 'Mapped' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -409,12 +409,12 @@ export const createClustersPageConfig = (
|
||||
key: 'status',
|
||||
label: 'Status',
|
||||
type: 'select',
|
||||
value: handlers.formData.status || 'active',
|
||||
value: handlers.formData.status || 'new',
|
||||
onChange: (value: any) =>
|
||||
handlers.setFormData({ ...handlers.formData, status: value }),
|
||||
options: [
|
||||
{ value: 'active', label: 'Active' },
|
||||
{ value: 'archived', label: 'Archived' },
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'mapped', label: 'Mapped' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -173,8 +173,8 @@ export const createIdeasPageConfig = (
|
||||
render: (value: string) => {
|
||||
const statusColors: Record<string, 'success' | 'amber' | 'info'> = {
|
||||
'new': 'amber',
|
||||
'scheduled': 'info',
|
||||
'published': 'success',
|
||||
'queued': 'info',
|
||||
'completed': 'success',
|
||||
};
|
||||
const properCase = value ? value.charAt(0).toUpperCase() + value.slice(1) : '-';
|
||||
return (
|
||||
@@ -222,8 +222,8 @@ export const createIdeasPageConfig = (
|
||||
options: [
|
||||
{ value: '', label: 'All Status' },
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'scheduled', label: 'Scheduled' },
|
||||
{ value: 'published', label: 'Published' },
|
||||
{ value: 'queued', label: 'Queued' },
|
||||
{ value: 'completed', label: 'Completed' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -380,8 +380,8 @@ export const createIdeasPageConfig = (
|
||||
handlers.setFormData({ ...handlers.formData, status: value }),
|
||||
options: [
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'scheduled', label: 'Scheduled' },
|
||||
{ value: 'published', label: 'Published' },
|
||||
{ value: 'queued', label: 'Queued' },
|
||||
{ value: 'completed', label: 'Completed' },
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -399,13 +399,13 @@ export const createIdeasPageConfig = (
|
||||
calculate: (data) => data.ideas.filter((i: ContentIdea) => i.status === 'new').length,
|
||||
},
|
||||
{
|
||||
label: 'Scheduled',
|
||||
label: 'Queued',
|
||||
value: 0,
|
||||
accentColor: 'blue' as const,
|
||||
calculate: (data) => data.ideas.filter((i: ContentIdea) => i.status === 'scheduled').length,
|
||||
calculate: (data) => data.ideas.filter((i: ContentIdea) => i.status === 'queued').length,
|
||||
},
|
||||
{
|
||||
label: 'Published',
|
||||
label: 'Completed',
|
||||
value: 0,
|
||||
accentColor: 'green' as const,
|
||||
calculate: (data) => data.ideas.filter((i: ContentIdea) => i.status === 'published').length,
|
||||
|
||||
@@ -232,9 +232,9 @@ export const createKeywordsPageConfig = (
|
||||
return (
|
||||
<Badge
|
||||
color={
|
||||
value === 'active'
|
||||
value === 'mapped'
|
||||
? 'success'
|
||||
: value === 'pending'
|
||||
: value === 'new'
|
||||
? 'amber'
|
||||
: 'error'
|
||||
}
|
||||
@@ -312,9 +312,8 @@ export const createKeywordsPageConfig = (
|
||||
type: 'select',
|
||||
options: [
|
||||
{ value: '', label: 'All Status' },
|
||||
{ value: 'active', label: 'Active' },
|
||||
{ value: 'pending', label: 'Pending' },
|
||||
{ value: 'archived', label: 'Archived' },
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'mapped', label: 'Mapped' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -560,13 +559,12 @@ export const createKeywordsPageConfig = (
|
||||
key: 'status',
|
||||
label: 'Status',
|
||||
type: 'select',
|
||||
value: handlers.formData.status || 'pending',
|
||||
value: handlers.formData.status || 'new',
|
||||
onChange: (value: any) =>
|
||||
handlers.setFormData({ ...handlers.formData, status: value }),
|
||||
options: [
|
||||
{ value: 'pending', label: 'Pending' },
|
||||
{ value: 'active', label: 'Active' },
|
||||
{ value: 'archived', label: 'Archived' },
|
||||
{ value: 'new', label: 'New' },
|
||||
{ value: 'mapped', label: 'Mapped' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user