diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index ec601b2c..1bf2b322 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -1,15 +1,20 @@ module.exports = { - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - 'plugin:react-hooks/recommended', + "env": { "browser": true, "es2020": true }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react/jsx-runtime", + "plugin:react-hooks/recommended" ], - parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, - settings: { react: { version: '18.2' } }, - plugins: ['react-refresh'], - rules: { - 'react-refresh/only-export-components': 'warn', - }, + "files": ["**/*.js", "**/*.jsx"], + "linterOptions": { "reportUnusedDisableDirectives": true }, + "parserOptions": { "ecmaVersion": "latest", "sourceType": "module", "ecmaFeatures": { "jsx": true } }, + "settings": { "react": { "version": '18.2' } }, + "plugins": [ + "react-refresh", + "react-hooks" + ], + "rules": { + "react-refresh/only-export-components": "warn" + } } diff --git a/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx b/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx index 1ff13e77..7dfc2ccc 100644 --- a/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx +++ b/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx @@ -1,6 +1,7 @@ import React, { useState, useRef, useEffect } from "react"; import Workspace from "../../../../models/workspace"; import paths from "../../../../utils/paths"; +import { chatPrompt } from "../../../../utils/chat"; export default function WorkspaceSettings({ workspace }) { const formEl = useRef(null); @@ -141,6 +142,35 @@ export default function WorkspaceSettings({ workspace }) { /> +
+
+ +

+ The prompt that will be used on this workspace. Define the + context and instructions for the AI to generate a response. + You should to provide a carefully crafted prompt so the AI can + generate a relevant and accurate response. +

+
+