diff --git a/src/components/content-management/DynamicTableBuilder.tsx b/src/components/content-management/DynamicTableBuilder.tsx index 06c7db1..27fcbe2 100644 --- a/src/components/content-management/DynamicTableBuilder.tsx +++ b/src/components/content-management/DynamicTableBuilder.tsx @@ -236,7 +236,7 @@ export function DynamicTableBuilder({ key={`preview-c-${ri}-${ci}`} className="border border-grayScale-100 px-3 py-2 text-sm" > - {cell || —} + {cell || unassigned} ))} diff --git a/src/components/notifications/NotificationDetailDialog.tsx b/src/components/notifications/NotificationDetailDialog.tsx index 714fd03..f9f573d 100644 --- a/src/components/notifications/NotificationDetailDialog.tsx +++ b/src/components/notifications/NotificationDetailDialog.tsx @@ -187,9 +187,9 @@ function DetailsTab({
{module.description?.trim() ? module.description - : "—"} + : "unassigned"}
diff --git a/src/pages/content-management/CourseManagementPage.tsx b/src/pages/content-management/CourseManagementPage.tsx index bf42ed5..6968b98 100644 --- a/src/pages/content-management/CourseManagementPage.tsx +++ b/src/pages/content-management/CourseManagementPage.tsx @@ -166,7 +166,7 @@ export function CourseManagementPage() { list.map((row, index) => ({ id: Number(row.id), name: row.name?.trim() || `Unit ${row.id}`, - description: row.description?.trim() || "—", + description: row.description?.trim() || "unassigned", thumbnail: row.thumbnail?.trim() || "", sortOrder: Number(row.sort_order ?? 0), publishStatus: row.publish_status ?? null, @@ -466,7 +466,7 @@ export function CourseManagementPage() { try { const existing = units.find((u) => u.id === editingUnitId); const preservedDescription = - existing?.description && existing.description !== "—" + existing?.description && existing.description !== "unassigned" ? existing.description : null; const minioThumbnail = await resolveThumbnailToMinioUrl(editThumbnail); diff --git a/src/pages/content-management/CourseModuleDetailPage.tsx b/src/pages/content-management/CourseModuleDetailPage.tsx index f01fdc5..3c26914 100644 --- a/src/pages/content-management/CourseModuleDetailPage.tsx +++ b/src/pages/content-management/CourseModuleDetailPage.tsx @@ -79,7 +79,7 @@ export function CourseModuleDetailPage() { [lessonPracticeChoice], ); const [moduleTitle, setModuleTitle] = useState("Module"); - const [moduleDescription, setModuleDescription] = useState("—"); + const [moduleDescription, setModuleDescription] = useState("unassigned"); const [modulePublishStatus, setModulePublishStatus] = useState< PracticePublishStatus | string | null >(null); @@ -173,17 +173,17 @@ export function CourseModuleDetailPage() { const row = list.find((m) => Number(m.id) === parsedModuleId); if (row) { setModuleTitle(row.name?.trim() || `Module ${parsedModuleId}`); - setModuleDescription(row.description?.trim() || "—"); + setModuleDescription(row.description?.trim() || "unassigned"); setModulePublishStatus(row.publish_status ?? null); } else { setModuleTitle(`Module ${parsedModuleId}`); - setModuleDescription("—"); + setModuleDescription("unassigned"); setModulePublishStatus(null); } } catch (error) { console.error(error); setModuleTitle(`Module ${parsedModuleId}`); - setModuleDescription("—"); + setModuleDescription("unassigned"); } }, [parsedModuleId, parsedUnitId]); diff --git a/src/pages/content-management/CoursesPage.tsx b/src/pages/content-management/CoursesPage.tsx index 5f13e05..5c67fa0 100644 --- a/src/pages/content-management/CoursesPage.tsx +++ b/src/pages/content-management/CoursesPage.tsx @@ -415,7 +415,7 @@ export function CoursesPage() {- {sub.description?.trim() ? sub.description : "—"} + {sub.description?.trim() ? sub.description : "unassigned"}
- {item.description?.trim() ? item.description : "—"} + {item.description?.trim() ? item.description : "unassigned"}
- {item.persona?.trim() ? item.persona : "—"} + {item.persona?.trim() ? item.persona : "unassigned"}
- {lesson.description?.trim() ? lesson.description : "—"} + {lesson.description?.trim() ? lesson.description : "unassigned"}
- {v.description?.trim() ? v.description : "—"} + {v.description?.trim() ? v.description : "unassigned"}
{program.description?.trim() ? program.description - : "—"} + : "unassigned"}
{ if (hasNavName) { - return navState?.moduleDescription?.trim() || "—"; + return navState?.moduleDescription?.trim() || "unassigned"; } if (!moduleListResolved) { return "Loading…"; } if (loadedModuleDescription !== null) { - return loadedModuleDescription.trim() || "—"; + return loadedModuleDescription.trim() || "unassigned"; } - return "—"; + return "unassigned"; })(); useEffect(() => { diff --git a/src/pages/content-management/PracticeDetailsPage.tsx b/src/pages/content-management/PracticeDetailsPage.tsx index 148fce0..dd47499 100644 --- a/src/pages/content-management/PracticeDetailsPage.tsx +++ b/src/pages/content-management/PracticeDetailsPage.tsx @@ -994,7 +994,7 @@ export function PracticeDetailsPage() {Story
- {practice.story_description?.trim() || "—"} + {practice.story_description?.trim() || "unassigned"}
- {course.description?.trim() ? course.description : "—"} + {course.description?.trim() ? course.description : "unassigned"}
ID: {detailData.id}
Type: {typeLabels[detailData.question_type] || detailData.question_type}
-Difficulty: {detailData.difficulty_level || "—"}
+Difficulty: {detailData.difficulty_level || "unassigned"}
Points: {detailData.points ?? 0}
-Status: {detailData.status || "—"}
-Created: {detailData.created_at || "—"}
+Status: {detailData.status || "unassigned"}
+Created: {detailData.created_at || "unassigned"}
- {value || "—"} + {value || "unassigned"}
) })} diff --git a/src/pages/content-management/SpeakingPage.tsx b/src/pages/content-management/SpeakingPage.tsx index 951c574..6fd3489 100644 --- a/src/pages/content-management/SpeakingPage.tsx +++ b/src/pages/content-management/SpeakingPage.tsx @@ -1498,13 +1498,13 @@ export function SpeakingPage() {Status
-{selectedQuestionDetail.status || "—"}
+{selectedQuestionDetail.status || "unassigned"}
Points
-{selectedQuestionDetail.points ?? "—"}
+{selectedQuestionDetail.points ?? "unassigned"}
Difficulty
-{selectedQuestionDetail.difficulty_level || "—"}
+{selectedQuestionDetail.difficulty_level || "unassigned"}
Type
-{selectedQuestionDetail.question_type || "—"}
+{selectedQuestionDetail.question_type || "unassigned"}
Title: {setTitle || "—"}
-Course ID: {subCourseId || "—"}
-Description: {setDescription || "—"}
+Title: {setTitle || "unassigned"}
+Course ID: {subCourseId || "unassigned"}
+Description: {setDescription || "unassigned"}
- Intro video URL: {introVideoUrl.trim() || "—"} + Intro video URL: {introVideoUrl.trim() || "unassigned"}
Status: {setStatus}
Status: {setStatus}
Voice Prompt:{" "} - {draft.voicePrompt.trim() || "—"} + {draft.voicePrompt.trim() || "unassigned"}
Sample Answer Voice Prompt:{" "} - {draft.sampleAnswerVoicePrompt.trim() || "—"} + {draft.sampleAnswerVoicePrompt.trim() || "unassigned"}
Image URL:{" "} - {draft.imageUrl.trim() || "—"} + {draft.imageUrl.trim() || "unassigned"}
Audio Correct Answer Text:{" "} - {draft.audioCorrectAnswerText.trim() || "—"} + {draft.audioCorrectAnswerText.trim() || "unassigned"}
Tips:{" "} - {draft.tips.trim() || "—"} + {draft.tips.trim() || "unassigned"}
Explanation:{" "} - {draft.explanation.trim() || "—"} + {draft.explanation.trim() || "unassigned"}
- {guidanceText.trim() || "—"} + {guidanceText.trim() || "unassigned"}
- {question.questionText.trim() || "—"} + {question.questionText.trim() || "unassigned"}
—
+unassigned
)} ))} diff --git a/src/pages/content-management/components/practice-steps/ReviewStep.tsx b/src/pages/content-management/components/practice-steps/ReviewStep.tsx index 0727c87..90dc6ae 100644 --- a/src/pages/content-management/components/practice-steps/ReviewStep.tsx +++ b/src/pages/content-management/components/practice-steps/ReviewStep.tsx @@ -96,7 +96,7 @@ export function ReviewStep({ const guidanceText = formData.tips?.trim() || (!isLessonPractice ? formData.description?.trim() : "") || - "—"; + "unassigned"; const thumbnailUrl = isLessonPractice ? null diff --git a/src/pages/content-management/components/practice-steps/SelectPracticeToAttachStep.tsx b/src/pages/content-management/components/practice-steps/SelectPracticeToAttachStep.tsx index c1d79c1..369bfe3 100644 --- a/src/pages/content-management/components/practice-steps/SelectPracticeToAttachStep.tsx +++ b/src/pages/content-management/components/practice-steps/SelectPracticeToAttachStep.tsx @@ -254,7 +254,7 @@ export function SelectPracticeToAttachStep({ publishStatusClass(practice.publish_status), )} > - {(practice.publish_status || "—").toString()} + {(practice.publish_status || "unassigned").toString()} {alreadyLinked ? ( diff --git a/src/pages/content-management/components/question-type-steps/QuestionTypeReviewPublishStep.tsx b/src/pages/content-management/components/question-type-steps/QuestionTypeReviewPublishStep.tsx index 9a02431..595bbda 100644 --- a/src/pages/content-management/components/question-type-steps/QuestionTypeReviewPublishStep.tsx +++ b/src/pages/content-management/components/question-type-steps/QuestionTypeReviewPublishStep.tsx @@ -131,11 +131,11 @@ export function QuestionTypeReviewPublishStep({—
+unassigned
)} @@ -148,7 +148,7 @@ export function ReviewPublishStep({ ) : ( -—
+unassigned
)} @@ -176,7 +176,7 @@ export function ReviewPublishStep({ Title- {formData.title || "—"} + {formData.title || "unassigned"}
@@ -187,7 +187,7 @@ export function ReviewPublishStep({{formData.sortOrder.trim() !== "" ? formData.sortOrder.trim() - : "—"} + : "unassigned"}
@@ -199,7 +199,7 @@ export function ReviewPublishStep({ className="text-[14px] text-grayScale-600 leading-relaxed max-w-4xl" dangerouslySetInnerHTML={{ __html: - formData.description || "—
", + formData.description || "unassigned
", }} /> diff --git a/src/pages/faqs/FaqsPage.tsx b/src/pages/faqs/FaqsPage.tsx index 66053f7..26fcbb5 100644 --- a/src/pages/faqs/FaqsPage.tsx +++ b/src/pages/faqs/FaqsPage.tsx @@ -339,7 +339,7 @@ export function FaqsPage() { {faq.category ? (- {draft.question || "—"} + {draft.question || "unassigned"}
- {draft.answer || "—"} + {draft.answer || "unassigned"}
{(draft.category || draft.display_order) && (- {draft.question || "—"} + {draft.question || "unassigned"}
- {draft.answer || "—"} + {draft.answer || "unassigned"}
{(draft.category || draft.display_order) && (- {issue.subject?.trim() ? issue.subject : "—"} + {issue.subject?.trim() ? issue.subject : "unassigned"}
{issue.description?.trim() ? issue.description : "No description"}
diff --git a/src/pages/notifications/AllNotificationsPage.tsx b/src/pages/notifications/AllNotificationsPage.tsx
index 07e25d3..e107487 100644
--- a/src/pages/notifications/AllNotificationsPage.tsx
+++ b/src/pages/notifications/AllNotificationsPage.tsx
@@ -72,7 +72,7 @@ function recipientLabel(notification: Notification): string {
if (notification.reciever) {
parts.push(notification.reciever)
}
- return parts.length > 0 ? parts.join(" · ") : "—"
+ return parts.length > 0 ? parts.join(" · ") : "unassigned"
}
export function AllNotificationsPage() {
@@ -355,14 +355,14 @@ export function AllNotificationsPage() {
- {getNotificationTitle(notification) || "—"}
+ {getNotificationTitle(notification) || "unassigned"}
- {getNotificationMessage(notification) || "—"}
+ {getNotificationMessage(notification) || "unassigned"}
Channels used
- {Array.from(new Set(notifications.map((n) => n.delivery_channel))).length || "—"}
+ {Array.from(new Set(notifications.map((n) => n.delivery_channel))).length || "unassigned"}
- {job.title || "—"}
+ {job.title || "unassigned"}
{job.message}
- {summary.titlePreview || "—"}
+ {summary.titlePreview || "unassigned"}
{summary.messagePreview || "—"} {summary.messagePreview || "unassigned"}
Template: {summary.emailTemplateSlug}
diff --git a/src/pages/payments/PaymentsPage.tsx b/src/pages/payments/PaymentsPage.tsx
index 4e9b9de..dfc0cb2 100644
--- a/src/pages/payments/PaymentsPage.tsx
+++ b/src/pages/payments/PaymentsPage.tsx
@@ -518,7 +518,7 @@ export function PaymentsPage() {
#{payment.id}
- {payment.transaction_id || payment.session_id || "—"}
+ {payment.transaction_id || payment.session_id || "unassigned"}
- {logs[0]?.created_at ? getRelativeActivityTime(logs[0].created_at) : "—"}
+ {logs[0]?.created_at ? getRelativeActivityTime(logs[0].created_at) : "unassigned"}
Latest on this page {item.email} {item.phone_number || "—"} {item.phone_number || "unassigned"} {item.role || "—"} {item.status || "—"} {item.role || "unassigned"} {item.status || "unassigned"}
@@ -716,11 +716,11 @@ export function PaymentsPage() {