π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix copilotkit
Nevo Davida0d0466944aa
diff --git a/apps/frontend/src/components/launches/add.edit.model.tsx b/apps/frontend/src/components/launches/add.edit.model.tsxindex 0b9b7992e..554bfd7cd 100644--- a/apps/frontend/src/components/launches/add.edit.model.tsx+++ b/apps/frontend/src/components/launches/add.edit.model.tsx@@ -536,7 +536,14 @@ export const AddEditModal: FC<{title: 'AI Content Assistant',}}className="!z-[499]"- instructions="You are an assistant that help the user to schedule their social media posts, everytime somebody write something, try to use a function call, if not prompt the user that the request is invalid and you are here to assists with social media posts"+ instructions={`+You are an assistant that help the user to schedule their social media posts,+Here are the things you can do:+- Add a new comment / post to the list of posts+- Delete a comment / post from the list of posts+- Add content to the comment / post+- Activate or deactivate the comment / post+`}/>)}<div@@ -651,15 +658,6 @@ export const AddEditModal: FC<{<Editororder={index}height={value.length > 1 ? 150 : 250}- commands={- [- // ...commands- // .getCommands()- // .filter((f) => f.name === 'image'),- // newImage,- // postSelector(dateState),- ]- }value={p.content}preview="edit"onPaste={pasteImages(index, p.image || [])}diff --git a/apps/frontend/src/components/launches/add.post.button.tsx b/apps/frontend/src/components/launches/add.post.button.tsxindex ac3b96759..48b0f8c99 100644--- a/apps/frontend/src/components/launches/add.post.button.tsx+++ b/apps/frontend/src/components/launches/add.post.button.tsx@@ -9,7 +9,7 @@ export const AddPostButton: FC<{ onClick: () => void; num: number }> = (useCopilotAction({name: 'addPost_' + num,- description: 'Add a post after the post number ' + (num + 1),+ description: 'Add a post after the post number ' + num,handler: () => {onClick();},diff --git a/apps/frontend/src/components/launches/editor.tsx b/apps/frontend/src/components/launches/editor.tsxindex 11cf49183..63d59c1e4 100644--- a/apps/frontend/src/components/launches/editor.tsx+++ b/apps/frontend/src/components/launches/editor.tsx@@ -32,12 +32,16 @@ export const Editor = forwardRef<useCopilotReadable({description: 'Content of the post number ' + (props.order + 1),- value: props.value,+ value: JSON.stringify({+ content: props.value,+ order: props.order,+ allowAddContent: props?.value?.length === 0,+ })});useCopilotAction({name: 'editPost_' + props.order,- description: `Edit the content of post number ${props.order + 1}`,+ description: `Edit the content of post number ${props.order}`,parameters: [{name: 'content',