diff --git a/.github/ISSUE_TEMPLATE/designer_feedback_fe.yml b/.github/ISSUE_TEMPLATE/designer_feedback_fe.yml new file mode 100644 index 000000000..cca06c778 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/designer_feedback_fe.yml @@ -0,0 +1,64 @@ +name: Designer Feedback(FE) +description: Submit feedback, report issues, or request features +title: "[Feedback]: " +labels: ["tman designer"] +assignees: + - shczhen +body: + - type: markdown + attributes: + value: | + Thank you for taking time to provide feedback! Please fill out this form as detailed as possible. + + - type: dropdown + id: feedback-type + attributes: + label: Feedback Type + description: What kind of feedback are you providing? + options: + - Bug Report + - Feature Request + - Improvement Suggestion + - Question + - Other + validations: + required: true + + - type: textarea + id: description + attributes: + label: Description + description: Please describe your feedback in detail + placeholder: Provide a clear and detailed explanation of your feedback... + validations: + required: true + + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: What did you expect to happen? + placeholder: Describe what you expected... + + - type: textarea + id: current + attributes: + label: Current Behavior + description: What actually happened? + placeholder: Describe the current behavior... + + - type: input + id: version + attributes: + label: Version + description: What version of the software are you using? + placeholder: e.g., v1.0.0 + + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this feedback, you agree to follow our Code of Conduct + options: + - label: I agree to follow this project's Code of Conduct + required: true \ No newline at end of file diff --git a/core/src/ten_manager/designer_frontend/public/locales/en-US/common.json b/core/src/ten_manager/designer_frontend/public/locales/en-US/common.json index b144b56b5..ea303fee2 100644 --- a/core/src/ten_manager/designer_frontend/public/locales/en-US/common.json +++ b/core/src/ten_manager/designer_frontend/public/locales/en-US/common.json @@ -270,6 +270,9 @@ "title": "Currently Working in", "baseDir": "Base Dir", "graphName": "Graph Name" + }, + "feedback": { + "title": "Feedback" } }, "preferences": { @@ -296,4 +299,4 @@ "enterValueToCreate": "Enter a value to create a new one" } } -} \ No newline at end of file +} diff --git a/core/src/ten_manager/designer_frontend/public/locales/ja-JP/common.json b/core/src/ten_manager/designer_frontend/public/locales/ja-JP/common.json index bc14a53bb..f70062246 100644 --- a/core/src/ten_manager/designer_frontend/public/locales/ja-JP/common.json +++ b/core/src/ten_manager/designer_frontend/public/locales/ja-JP/common.json @@ -270,6 +270,9 @@ "title": "現在の作業場所", "baseDir": "ベースディレクトリ", "graphName": "グラフ名" + }, + "feedback": { + "title": "フィードバック" } }, "preferences": { diff --git a/core/src/ten_manager/designer_frontend/public/locales/zh-CN/common.json b/core/src/ten_manager/designer_frontend/public/locales/zh-CN/common.json index e1e5c1972..024ff4558 100644 --- a/core/src/ten_manager/designer_frontend/public/locales/zh-CN/common.json +++ b/core/src/ten_manager/designer_frontend/public/locales/zh-CN/common.json @@ -270,6 +270,9 @@ "title": "当前工作区", "baseDir": "基础目录", "graphName": "图谱名称" + }, + "feedback": { + "title": "反馈" } }, "preferences": { diff --git a/core/src/ten_manager/designer_frontend/public/locales/zh-TW/common.json b/core/src/ten_manager/designer_frontend/public/locales/zh-TW/common.json index dd748fe97..db55905e6 100644 --- a/core/src/ten_manager/designer_frontend/public/locales/zh-TW/common.json +++ b/core/src/ten_manager/designer_frontend/public/locales/zh-TW/common.json @@ -270,6 +270,9 @@ "title": "目前工作區", "baseDir": "基礎目錄", "graphName": "圖譜名稱" + }, + "feedback": { + "title": "回饋" } }, "preferences": { diff --git a/core/src/ten_manager/designer_frontend/src/components/StatusBar/index.tsx b/core/src/ten_manager/designer_frontend/src/components/StatusBar/index.tsx index e6e87b26e..8f673e393 100644 --- a/core/src/ten_manager/designer_frontend/src/components/StatusBar/index.tsx +++ b/core/src/ten_manager/designer_frontend/src/components/StatusBar/index.tsx @@ -5,7 +5,12 @@ // Refer to the "LICENSE" file in the root directory for more information. // import * as React from "react"; -import { FolderTreeIcon, FolderOpenIcon, ChevronRightIcon } from "lucide-react"; +import { + FolderTreeIcon, + FolderOpenIcon, + ChevronRightIcon, + MessageSquareShareIcon, +} from "lucide-react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; @@ -28,6 +33,7 @@ import { CONTAINER_DEFAULT_ID, GRAPH_SELECT_WIDGET_ID, } from "@/constants/widgets"; +import { TEN_FRAMEWORK_DESIGNER_FEEDBACK_ISSUE_URL } from "@/constants"; import { useWidgetStore, useAppStore } from "@/store"; import { GraphSelectPopupTitle } from "@/components/Popup/Default/GraphSelect"; import { LoadedAppsPopupTitle } from "../Popup/Default/App"; @@ -51,6 +57,9 @@ export default function StatusBar(props: { className?: string }) { +
+ +
); } @@ -199,3 +208,23 @@ const StatusWorkspace = () => { ); }; + +const Feedback = () => { + const { t } = useTranslation(); + + return ( + <> + + + ); +}; diff --git a/core/src/ten_manager/designer_frontend/src/constants/index.ts b/core/src/ten_manager/designer_frontend/src/constants/index.ts index 9546a6142..8dc561123 100644 --- a/core/src/ten_manager/designer_frontend/src/constants/index.ts +++ b/core/src/ten_manager/designer_frontend/src/constants/index.ts @@ -11,6 +11,8 @@ export const TEN_FRAMEWORK_RELEASE_URL = export const TEN_AGENT_URL = "https://agent.theten.ai/"; export const TEN_AGENT_GITHUB_URL = "https://github.com/TEN-framework/TEN-Agent"; +export const TEN_FRAMEWORK_DESIGNER_FEEDBACK_ISSUE_URL = + TEN_FRAMEWORK_GITHUB_URL + "issues/new?template=designer_feedback_fe.yml"; export const TEN_DEFAULT_APP_RUN_SCRIPT = "start";