Section 6 COmpleted
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import PageMeta from '../../components/common/PageMeta';
|
||||
import PageHeader from '../../components/common/PageHeader';
|
||||
import ModuleNavigationTabs from '../../components/navigation/ModuleNavigationTabs';
|
||||
import { useToast } from '../../components/ui/toast/ToastContainer';
|
||||
import { fetchAuthorProfiles, createAuthorProfile, updateAuthorProfile, deleteAuthorProfile, AuthorProfile } from '../../services/api';
|
||||
import { Card } from '../../components/ui/card';
|
||||
import Button from '../../components/ui/button/Button';
|
||||
import FormModal, { FormField } from '../../components/common/FormModal';
|
||||
import Badge from '../../components/ui/badge/Badge';
|
||||
import { PlusIcon, BoltIcon, UserIcon, ShootingStarIcon, ImageIcon } from '../../icons';
|
||||
import { PlusIcon, UserIcon } from '../../icons';
|
||||
|
||||
export default function AuthorProfiles() {
|
||||
const toast = useToast();
|
||||
@@ -99,21 +98,13 @@ export default function AuthorProfiles() {
|
||||
{ name: 'is_active', label: 'Active', type: 'checkbox', required: false },
|
||||
];
|
||||
|
||||
// Thinker navigation tabs
|
||||
const thinkerTabs = [
|
||||
{ label: 'Prompts', path: '/thinker/prompts', icon: <BoltIcon /> },
|
||||
{ label: 'Author Profiles', path: '/thinker/author-profiles', icon: <UserIcon /> },
|
||||
{ label: 'Strategies', path: '/thinker/strategies', icon: <ShootingStarIcon /> },
|
||||
{ label: 'Image Testing', path: '/thinker/image-testing', icon: <ImageIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="p-6">
|
||||
<PageMeta title="Writing Styles" />
|
||||
<PageHeader
|
||||
title="Writing Styles"
|
||||
badge={{ icon: <UserIcon />, color: 'blue' }}
|
||||
navigation={<ModuleNavigationTabs tabs={thinkerTabs} />}
|
||||
breadcrumb="Thinker / Author Profiles"
|
||||
/>
|
||||
<div className="mb-6 flex justify-between items-center">
|
||||
<Button onClick={handleCreate} variant="primary">
|
||||
|
||||
@@ -1,25 +1,16 @@
|
||||
import PageMeta from "../../components/common/PageMeta";
|
||||
import PageHeader from "../../components/common/PageHeader";
|
||||
import ModuleNavigationTabs from "../../components/navigation/ModuleNavigationTabs";
|
||||
import ComponentCard from "../../components/common/ComponentCard";
|
||||
import { BoltIcon, UserIcon, ShootingStarIcon, ImageIcon } from "../../icons";
|
||||
import { ImageIcon } from "../../icons";
|
||||
|
||||
export default function ImageTesting() {
|
||||
// Thinker navigation tabs
|
||||
const thinkerTabs = [
|
||||
{ label: 'Prompts', path: '/thinker/prompts', icon: <BoltIcon /> },
|
||||
{ label: 'Author Profiles', path: '/thinker/author-profiles', icon: <UserIcon /> },
|
||||
{ label: 'Strategies', path: '/thinker/strategies', icon: <ShootingStarIcon /> },
|
||||
{ label: 'Image Testing', path: '/thinker/image-testing', icon: <ImageIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Image Settings - IGNY8" description="Configure image generation" />
|
||||
<PageHeader
|
||||
title="Image Settings"
|
||||
badge={{ icon: <ImageIcon />, color: 'indigo' }}
|
||||
navigation={<ModuleNavigationTabs tabs={thinkerTabs} />}
|
||||
breadcrumb="Thinker / Image Testing"
|
||||
/>
|
||||
<ComponentCard title="Coming Soon" desc="AI image testing">
|
||||
<div className="text-center py-8">
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import PageMeta from '../../components/common/PageMeta';
|
||||
import PageHeader from '../../components/common/PageHeader';
|
||||
import ModuleNavigationTabs from '../../components/navigation/ModuleNavigationTabs';
|
||||
import Button from '../../components/ui/button/Button';
|
||||
import TextArea from '../../components/form/input/TextArea';
|
||||
import { useToast } from '../../components/ui/toast/ToastContainer';
|
||||
import { BoltIcon, UserIcon, ShootingStarIcon, ImageIcon } from '../../icons';
|
||||
import { BoltIcon } from '../../icons';
|
||||
import { fetchAPI } from '../../services/api';
|
||||
|
||||
interface PromptData {
|
||||
@@ -199,21 +198,13 @@ export default function Prompts() {
|
||||
);
|
||||
}
|
||||
|
||||
// Thinker navigation tabs
|
||||
const thinkerTabs = [
|
||||
{ label: 'Prompts', path: '/thinker/prompts', icon: <BoltIcon /> },
|
||||
{ label: 'Author Profiles', path: '/thinker/author-profiles', icon: <UserIcon /> },
|
||||
{ label: 'Strategies', path: '/thinker/strategies', icon: <ShootingStarIcon /> },
|
||||
{ label: 'Image Testing', path: '/thinker/image-testing', icon: <ImageIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Prompt Library - IGNY8" description="Manage your AI writing prompts" />
|
||||
<PageHeader
|
||||
title="Prompt Library"
|
||||
badge={{ icon: <BoltIcon />, color: 'orange' }}
|
||||
navigation={<ModuleNavigationTabs tabs={thinkerTabs} />}
|
||||
breadcrumb="Thinker / Prompts"
|
||||
/>
|
||||
<div className="p-6">
|
||||
|
||||
|
||||
@@ -1,25 +1,16 @@
|
||||
import PageMeta from "../../components/common/PageMeta";
|
||||
import PageHeader from "../../components/common/PageHeader";
|
||||
import ModuleNavigationTabs from "../../components/navigation/ModuleNavigationTabs";
|
||||
import ComponentCard from "../../components/common/ComponentCard";
|
||||
import { BoltIcon, UserIcon, ShootingStarIcon, ImageIcon } from "../../icons";
|
||||
import { ShootingStarIcon } from "../../icons";
|
||||
|
||||
export default function Strategies() {
|
||||
// Thinker navigation tabs
|
||||
const thinkerTabs = [
|
||||
{ label: 'Prompts', path: '/thinker/prompts', icon: <BoltIcon /> },
|
||||
{ label: 'Author Profiles', path: '/thinker/author-profiles', icon: <UserIcon /> },
|
||||
{ label: 'Strategies', path: '/thinker/strategies', icon: <ShootingStarIcon /> },
|
||||
{ label: 'Image Testing', path: '/thinker/image-testing', icon: <ImageIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Content Plans - IGNY8" description="Plan your content strategy" />
|
||||
<PageHeader
|
||||
title="Content Plans"
|
||||
badge={{ icon: <ShootingStarIcon />, color: 'purple' }}
|
||||
navigation={<ModuleNavigationTabs tabs={thinkerTabs} />}
|
||||
breadcrumb="Thinker / Strategies"
|
||||
/>
|
||||
<ComponentCard title="Coming Soon" desc="Content strategies">
|
||||
<div className="text-center py-8">
|
||||
|
||||
Reference in New Issue
Block a user