Skip to content

Commit 3b7f295

Browse files
authored
feat: add feedback template & entry (#1012)
1 parent 27e5dc3 commit 3b7f295

File tree

7 files changed

+109
-2
lines changed

7 files changed

+109
-2
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Designer Feedback(FE)
2+
description: Submit feedback, report issues, or request features
3+
title: "[Feedback]: "
4+
labels: ["tman designer"]
5+
assignees:
6+
- shczhen
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for taking time to provide feedback! Please fill out this form as detailed as possible.
12+
13+
- type: dropdown
14+
id: feedback-type
15+
attributes:
16+
label: Feedback Type
17+
description: What kind of feedback are you providing?
18+
options:
19+
- Bug Report
20+
- Feature Request
21+
- Improvement Suggestion
22+
- Question
23+
- Other
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: description
29+
attributes:
30+
label: Description
31+
description: Please describe your feedback in detail
32+
placeholder: Provide a clear and detailed explanation of your feedback...
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
id: expected
38+
attributes:
39+
label: Expected Behavior
40+
description: What did you expect to happen?
41+
placeholder: Describe what you expected...
42+
43+
- type: textarea
44+
id: current
45+
attributes:
46+
label: Current Behavior
47+
description: What actually happened?
48+
placeholder: Describe the current behavior...
49+
50+
- type: input
51+
id: version
52+
attributes:
53+
label: Version
54+
description: What version of the software are you using?
55+
placeholder: e.g., v1.0.0
56+
57+
- type: checkboxes
58+
id: terms
59+
attributes:
60+
label: Code of Conduct
61+
description: By submitting this feedback, you agree to follow our Code of Conduct
62+
options:
63+
- label: I agree to follow this project's Code of Conduct
64+
required: true

core/src/ten_manager/designer_frontend/public/locales/en-US/common.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
"title": "Currently Working in",
271271
"baseDir": "Base Dir",
272272
"graphName": "Graph Name"
273+
},
274+
"feedback": {
275+
"title": "Feedback"
273276
}
274277
},
275278
"preferences": {
@@ -296,4 +299,4 @@
296299
"enterValueToCreate": "Enter a value to create a new one"
297300
}
298301
}
299-
}
302+
}

core/src/ten_manager/designer_frontend/public/locales/ja-JP/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
"title": "現在の作業場所",
271271
"baseDir": "ベースディレクトリ",
272272
"graphName": "グラフ名"
273+
},
274+
"feedback": {
275+
"title": "フィードバック"
273276
}
274277
},
275278
"preferences": {

core/src/ten_manager/designer_frontend/public/locales/zh-CN/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
"title": "当前工作区",
271271
"baseDir": "基础目录",
272272
"graphName": "图谱名称"
273+
},
274+
"feedback": {
275+
"title": "反馈"
273276
}
274277
},
275278
"preferences": {

core/src/ten_manager/designer_frontend/public/locales/zh-TW/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
"title": "目前工作區",
271271
"baseDir": "基礎目錄",
272272
"graphName": "圖譜名稱"
273+
},
274+
"feedback": {
275+
"title": "回饋"
273276
}
274277
},
275278
"preferences": {

core/src/ten_manager/designer_frontend/src/components/StatusBar/index.tsx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
// Refer to the "LICENSE" file in the root directory for more information.
66
//
77
import * as React from "react";
8-
import { FolderTreeIcon, FolderOpenIcon, ChevronRightIcon } from "lucide-react";
8+
import {
9+
FolderTreeIcon,
10+
FolderOpenIcon,
11+
ChevronRightIcon,
12+
MessageSquareShareIcon,
13+
} from "lucide-react";
914
import { useTranslation } from "react-i18next";
1015
import { toast } from "sonner";
1116

@@ -28,6 +33,7 @@ import {
2833
CONTAINER_DEFAULT_ID,
2934
GRAPH_SELECT_WIDGET_ID,
3035
} from "@/constants/widgets";
36+
import { TEN_FRAMEWORK_DESIGNER_FEEDBACK_ISSUE_URL } from "@/constants";
3137
import { useWidgetStore, useAppStore } from "@/store";
3238
import { GraphSelectPopupTitle } from "@/components/Popup/Default/GraphSelect";
3339
import { LoadedAppsPopupTitle } from "../Popup/Default/App";
@@ -51,6 +57,9 @@ export default function StatusBar(props: { className?: string }) {
5157
<StatusApps />
5258
<StatusWorkspace />
5359
</div>
60+
<div className="flex w-fit gap-2 px-2">
61+
<Feedback />
62+
</div>
5463
</footer>
5564
);
5665
}
@@ -199,3 +208,23 @@ const StatusWorkspace = () => {
199208
</TooltipProvider>
200209
);
201210
};
211+
212+
const Feedback = () => {
213+
const { t } = useTranslation();
214+
215+
return (
216+
<>
217+
<Button asChild variant="ghost" size="status" className="truncate">
218+
<a
219+
target="_blank"
220+
referrerPolicy="no-referrer"
221+
href={TEN_FRAMEWORK_DESIGNER_FEEDBACK_ISSUE_URL}
222+
className="animate-[pulse_1s_ease-in-out_5]"
223+
>
224+
<MessageSquareShareIcon className="size-3" />
225+
<span>{t("statusBar.feedback.title")}</span>
226+
</a>
227+
</Button>
228+
</>
229+
);
230+
};

core/src/ten_manager/designer_frontend/src/constants/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const TEN_FRAMEWORK_RELEASE_URL =
1111
export const TEN_AGENT_URL = "https://agent.theten.ai/";
1212
export const TEN_AGENT_GITHUB_URL =
1313
"https://github.com/TEN-framework/TEN-Agent";
14+
export const TEN_FRAMEWORK_DESIGNER_FEEDBACK_ISSUE_URL =
15+
TEN_FRAMEWORK_GITHUB_URL + "issues/new?template=designer_feedback_fe.yml";
1416

1517
export const TEN_DEFAULT_APP_RUN_SCRIPT = "start";
1618

0 commit comments

Comments
 (0)