Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Fix 3 UI polish issues from frontend audit

whfa321b0a21f97
diff --git a/web/components/learning/CreateModuleDialog.tsx b/web/components/learning/CreateModuleDialog.tsx
index 672649143..f4416c1fe 100644
--- a/web/components/learning/CreateModuleDialog.tsx
+++ b/web/components/learning/CreateModuleDialog.tsx
@@ -43,7 +43,7 @@ export default function CreateModuleDialog({
// ── Manual tab state ──
const [moduleName, setModuleName] = useState("");
const [kpRows, setKpRows] = useState<KpRow[]>([{ name: "", type: "concept" }]);
- const [manualBookId, setManualBookId] = useState("manual");
+ const [manualBookId, setManualBookId] = useState("");
// ── Book tab state ──
const [books, setBooks] = useState<Book[]>([]);
@@ -281,7 +281,7 @@ export default function CreateModuleDialog({
</div>
<div>
<label className="block text-xs font-medium text-[var(--muted-foreground)] mb-2">
- {t("guidedLearning.knowledgePoints")}
+ {t("guidedLearning.knowledgePointsLabel")}
</label>
{kpRows.map((row, i) => (
<div key={i} className="flex items-center gap-2 mb-2">
diff --git a/web/locales/en/app.json b/web/locales/en/app.json
index cee8b11a8..d78807877 100644
--- a/web/locales/en/app.json
+++ b/web/locales/en/app.json
@@ -1614,6 +1614,7 @@
"guidedLearning.startLearning": "Start Learning",
"guidedLearning.modules": "Modules",
"guidedLearning.knowledgePoints": "knowledge points",
+ "guidedLearning.knowledgePointsLabel": "Knowledge Points",
"guidedLearning.mastered": "mastered",
"guidedLearning.stages": "Learning Stages",
"guidedLearning.ready": "Ready to start learning",
diff --git a/web/locales/zh/app.json b/web/locales/zh/app.json
index a5aea5030..8acdf7085 100644
--- a/web/locales/zh/app.json
+++ b/web/locales/zh/app.json
@@ -1614,6 +1614,7 @@
"guidedLearning.startLearning": "开始学习",
"guidedLearning.modules": "学习模块",
"guidedLearning.knowledgePoints": "个知识点",
+ "guidedLearning.knowledgePointsLabel": "知识点",
"guidedLearning.mastered": "已掌握",
"guidedLearning.stages": "学习阶段",
"guidedLearning.ready": "准备开始学习",