From ab8d4870168503234d4c74542bc3b3cc9e5ebd26 Mon Sep 17 00:00:00 2001
From: Yared Yemane
Date: Sat, 1 Aug 2026 00:20:40 -0700
Subject: [PATCH] Show unassigned instead of dashes for missing admin values.
Co-authored-by: Cursor
---
.../DynamicTableBuilder.tsx | 2 +-
.../NotificationDetailDialog.tsx | 4 +--
src/lib/activityLogActor.ts | 20 ++++++------
src/lib/appVersions.ts | 2 +-
src/lib/displayValue.ts | 17 ++++++++--
src/lib/emailTemplatePreview.ts | 2 +-
src/lib/faqDisplay.ts | 2 +-
src/lib/notificationDisplay.ts | 4 +--
src/lib/payments.ts | 4 +--
src/lib/personaDisplay.ts | 4 +--
src/lib/ratingsDisplay.ts | 4 +--
src/lib/subscriptionAdminPermissions.ts | 2 +-
src/lib/teamInvitation.ts | 2 +-
src/pages/ProfilePage.tsx | 8 ++---
.../content-management/AddNewLessonPage.tsx | 6 ++--
.../content-management/CourseDetailPage.tsx | 4 +--
.../CourseManagementPage.tsx | 4 +--
.../CourseModuleDetailPage.tsx | 8 ++---
src/pages/content-management/CoursesPage.tsx | 2 +-
.../HumanLanguageSubModulePage.tsx | 12 +++----
.../InitialAssessmentPage.tsx | 2 +-
.../content-management/LearnEnglishPage.tsx | 2 +-
.../content-management/ModuleDetailPage.tsx | 6 ++--
.../PracticeDetailsPage.tsx | 2 +-
.../PracticeQuestionsPage.tsx | 2 +-
.../content-management/ProgramCoursesPage.tsx | 2 +-
.../content-management/ProgramDetailPage.tsx | 8 ++---
.../content-management/QuestionsPage.tsx | 10 +++---
src/pages/content-management/SpeakingPage.tsx | 32 +++++++++----------
.../SubCourseContentPage.tsx | 2 +-
.../content-management/UnitManagementPage.tsx | 4 +--
.../components/AddNewPracticeReviewStep.tsx | 2 +-
.../components/ContentPageDescription.tsx | 2 +-
.../components/QuestionTypeCard.tsx | 2 +-
.../QuestionTypeDefinitionPracticesDialog.tsx | 4 +--
.../PracticeSequentialReview.tsx | 6 ++--
.../components/practice-steps/ReviewStep.tsx | 2 +-
.../SelectPracticeToAttachStep.tsx | 2 +-
.../QuestionTypeReviewPublishStep.tsx | 10 +++---
.../QuestionTypeValidatePreviewStep.tsx | 8 ++---
.../video-steps/ReviewPublishStep.tsx | 10 +++---
src/pages/faqs/FaqsPage.tsx | 2 +-
src/pages/faqs/components/FaqForm.tsx | 8 ++---
src/pages/issues/IssuesPage.tsx | 4 +--
.../notifications/AllNotificationsPage.tsx | 12 +++----
src/pages/notifications/NotificationsPage.tsx | 2 +-
.../ScheduledNotificationsPage.tsx | 4 +--
.../components/BulkSendSummaryPanel.tsx | 4 +--
src/pages/payments/PaymentsPage.tsx | 8 ++---
src/pages/team/TeamManagementPage.tsx | 6 ++--
.../components/ActivityLogListPanel.tsx | 10 +++---
.../user-management/DeletionRequestsPage.tsx | 12 +++----
src/pages/user-management/UserDetailPage.tsx | 2 +-
src/pages/user-management/UsersListPage.tsx | 18 +++++------
.../components/ExtendSubscriptionDialog.tsx | 4 +--
src/types/user.types.ts | 2 +-
56 files changed, 172 insertions(+), 159 deletions(-)
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({
{[
{ k: "Type", v: formatNotificationTypeLabel(notification.type) },
- { k: "Channel", v: notification.delivery_channel || "—" },
+ { k: "Channel", v: notification.delivery_channel || "unassigned" },
{ k: "Status", v: notification.is_read ? "Read" : "Unread" },
- { k: "Delivery", v: notification.delivery_status || "—" },
+ { k: "Delivery", v: notification.delivery_status || "unassigned" },
...(notification.receiver_type
? [{ k: "Receiver", v: notification.receiver_type }]
: []),
diff --git a/src/lib/activityLogActor.ts b/src/lib/activityLogActor.ts
index f0f4e95..1bfc873 100644
--- a/src/lib/activityLogActor.ts
+++ b/src/lib/activityLogActor.ts
@@ -68,10 +68,10 @@ function teamMemberToProfile(
return {
kind: "team",
id: member.id,
- name: [member.first_name, member.last_name].filter(Boolean).join(" ") || "—",
- email: member.email || "—",
+ name: [member.first_name, member.last_name].filter(Boolean).join(" ") || "unassigned",
+ email: member.email || "unassigned",
roleLabel: formatTeamRoleLabel(member.team_role),
- status: member.status || "—",
+ status: member.status || "unassigned",
emailVerified: Boolean(member.email_verified),
createdAt: member.created_at,
}
@@ -81,17 +81,17 @@ function userToProfile(user: UserProfileData): ActorProfile {
return {
kind: "user",
id: user.id,
- name: [user.first_name, user.last_name].filter(Boolean).join(" ") || "—",
- email: user.email || "—",
+ name: [user.first_name, user.last_name].filter(Boolean).join(" ") || "unassigned",
+ email: user.email || "unassigned",
roleLabel: user.role
? user.role.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())
- : "—",
- status: user.status || "—",
+ : "unassigned",
+ status: user.status || "unassigned",
emailVerified: Boolean(user.email_verified),
- country: user.country || "—",
- region: user.region || "—",
+ country: user.country || "unassigned",
+ region: user.region || "unassigned",
lastLogin: user.last_login,
- subscriptionStatus: user.subscription_status?.trim() || "—",
+ subscriptionStatus: user.subscription_status?.trim() || "unassigned",
createdAt: user.created_at,
}
}
diff --git a/src/lib/appVersions.ts b/src/lib/appVersions.ts
index bcc68c6..eb57308 100644
--- a/src/lib/appVersions.ts
+++ b/src/lib/appVersions.ts
@@ -58,7 +58,7 @@ export function formatVersionStatus(status: string): string {
}
export function formatAppVersionCreatedAt(raw: string): string {
- if (!raw) return "—"
+ if (!raw) return "unassigned"
const normalized = raw.replace(" +0000 UTC", "Z").replace(/^(\d{4}-\d{2}-\d{2}) /, "$1T")
const d = new Date(normalized)
if (Number.isNaN(d.getTime())) {
diff --git a/src/lib/displayValue.ts b/src/lib/displayValue.ts
index 7bfac1d..4a18d81 100644
--- a/src/lib/displayValue.ts
+++ b/src/lib/displayValue.ts
@@ -1,6 +1,19 @@
-export const NOT_ASSIGNED_LABEL = "Not assigned"
+export const UNASSIGNED_LABEL = "unassigned"
+
+/** @deprecated Prefer UNASSIGNED_LABEL */
+export const NOT_ASSIGNED_LABEL = UNASSIGNED_LABEL
+
+const LEGACY_EMPTY_LABELS = new Set(["—", "-", "Not assigned", "not assigned"])
export function displayValue(value: string | null | undefined): string {
const trimmed = value?.trim()
- return trimmed ? trimmed : NOT_ASSIGNED_LABEL
+ if (!trimmed || LEGACY_EMPTY_LABELS.has(trimmed) || trimmed === UNASSIGNED_LABEL) {
+ return UNASSIGNED_LABEL
+ }
+ return trimmed
+}
+
+export function isUnassignedLabel(value: string | null | undefined): boolean {
+ const trimmed = value?.trim()
+ return !trimmed || trimmed === UNASSIGNED_LABEL || LEGACY_EMPTY_LABELS.has(trimmed)
}
diff --git a/src/lib/emailTemplatePreview.ts b/src/lib/emailTemplatePreview.ts
index 7ab7fc0..a605c1d 100644
--- a/src/lib/emailTemplatePreview.ts
+++ b/src/lib/emailTemplatePreview.ts
@@ -35,7 +35,7 @@ export function renderEmailTemplatePreview(
export function formatEmailTemplateDate(raw: string | null | undefined) {
if (raw == null || String(raw).trim() === "") {
- return "—"
+ return "unassigned"
}
const text = String(raw)
const parsed = new Date(text)
diff --git a/src/lib/faqDisplay.ts b/src/lib/faqDisplay.ts
index 6bed16c..b3c213e 100644
--- a/src/lib/faqDisplay.ts
+++ b/src/lib/faqDisplay.ts
@@ -15,7 +15,7 @@ export function faqStatusLabel(status: FAQStatus | string): string {
export function formatFaqDate(raw: string | null | undefined): string {
if (raw == null || String(raw).trim() === "") {
- return "—"
+ return "unassigned"
}
const text = String(raw)
const parsed = new Date(text)
diff --git a/src/lib/notificationDisplay.ts b/src/lib/notificationDisplay.ts
index 8706204..7fedba7 100644
--- a/src/lib/notificationDisplay.ts
+++ b/src/lib/notificationDisplay.ts
@@ -55,7 +55,7 @@ export function getNotificationLevelBadge(level: string) {
export function formatNotificationTimestamp(ts: string) {
const date = new Date(ts)
- if (Number.isNaN(date.getTime())) return "—"
+ if (Number.isNaN(date.getTime())) return "unassigned"
const now = new Date()
const diffMs = now.getTime() - date.getTime()
const diffMin = Math.floor(diffMs / 60_000)
@@ -83,7 +83,7 @@ export function formatNotificationTypeLabel(type: string) {
export function formatNotificationDateTime(ts: string) {
const date = new Date(ts)
- if (Number.isNaN(date.getTime())) return "—"
+ if (Number.isNaN(date.getTime())) return "unassigned"
return date.toLocaleString(undefined, {
year: "numeric",
month: "short",
diff --git a/src/lib/payments.ts b/src/lib/payments.ts
index 9fa4fd3..0013a2d 100644
--- a/src/lib/payments.ts
+++ b/src/lib/payments.ts
@@ -10,7 +10,7 @@ export function formatPaymentAmount(payment: Pick
c.toUpperCase())
}
diff --git a/src/lib/personaDisplay.ts b/src/lib/personaDisplay.ts
index 923f365..a5a8b4a 100644
--- a/src/lib/personaDisplay.ts
+++ b/src/lib/personaDisplay.ts
@@ -90,7 +90,7 @@ export function mapPersonaToCard(persona: PersonaListItem): PersonaCardModel {
}
export function formatPersonaDate(dateStr: string | null | undefined): string {
- if (!dateStr?.trim()) return "—"
+ if (!dateStr?.trim()) return "unassigned"
const d = new Date(dateStr)
if (Number.isNaN(d.getTime())) return dateStr
return d.toLocaleDateString(undefined, {
@@ -106,7 +106,7 @@ export function personaStatusLabel(isActive: boolean): string {
export function personaGenderLabel(gender: string | null | undefined): string {
const value = gender?.trim()
- return value ? value : "—"
+ return value ? value : "unassigned"
}
export function unwrapPersonasList(
diff --git a/src/lib/ratingsDisplay.ts b/src/lib/ratingsDisplay.ts
index f2fa85f..16d0370 100644
--- a/src/lib/ratingsDisplay.ts
+++ b/src/lib/ratingsDisplay.ts
@@ -7,7 +7,7 @@ export function formatAverageStars(value: number): string {
export function formatRatingDate(dateStr: string): string {
const d = new Date(dateStr)
- if (Number.isNaN(d.getTime())) return dateStr || "—"
+ if (Number.isNaN(d.getTime())) return dateStr || "unassigned"
return d.toLocaleDateString(undefined, {
year: "numeric",
month: "short",
@@ -17,7 +17,7 @@ export function formatRatingDate(dateStr: string): string {
export function formatRatingDateTime(dateStr: string): string {
const d = new Date(dateStr)
- if (Number.isNaN(d.getTime())) return dateStr || "—"
+ if (Number.isNaN(d.getTime())) return dateStr || "unassigned"
return d.toLocaleString(undefined, {
year: "numeric",
month: "short",
diff --git a/src/lib/subscriptionAdminPermissions.ts b/src/lib/subscriptionAdminPermissions.ts
index 60e1930..578534a 100644
--- a/src/lib/subscriptionAdminPermissions.ts
+++ b/src/lib/subscriptionAdminPermissions.ts
@@ -39,6 +39,6 @@ export function formatAdminPaymentMethod(method: string | null | undefined): str
const value = String(method ?? "").trim().toUpperCase()
if (value === "ADMIN_GRANT") return "Admin grant"
if (value === "ADMIN_EXTEND") return "Admin extend"
- if (!value) return "—"
+ if (!value) return "unassigned"
return method!.trim()
}
diff --git a/src/lib/teamInvitation.ts b/src/lib/teamInvitation.ts
index ddd1f7f..d272e9f 100644
--- a/src/lib/teamInvitation.ts
+++ b/src/lib/teamInvitation.ts
@@ -1,7 +1,7 @@
import type { VerifyInvitationData } from "../types/teamInvitation.types"
export function formatTeamRoleLabel(role: string | undefined): string {
- if (!role) return "—"
+ if (!role) return "unassigned"
return role.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())
}
diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx
index bc116cd..dcdcbc5 100644
--- a/src/pages/ProfilePage.tsx
+++ b/src/pages/ProfilePage.tsx
@@ -26,7 +26,7 @@ import { ProfileAvatarUpload } from "../components/profile/ProfileAvatarUpload";
import { PersonaProfilePictureUploadField } from "./personas/components/PersonaProfilePictureUploadField";
function formatDate(dateStr: string | null | undefined): string {
- if (!dateStr) return "—";
+ if (!dateStr) return "unassigned";
const date = new Date(dateStr);
if (Number.isNaN(date.getTime())) return dateStr;
return date.toLocaleDateString(undefined, {
@@ -37,7 +37,7 @@ function formatDate(dateStr: string | null | undefined): string {
}
function formatDateTime(dateStr: string | null | undefined): string {
- if (!dateStr) return "—";
+ if (!dateStr) return "unassigned";
const date = new Date(dateStr);
if (Number.isNaN(date.getTime())) return dateStr;
return date.toLocaleString(undefined, {
@@ -51,7 +51,7 @@ function formatDateTime(dateStr: string | null | undefined): string {
function formatRoleLabel(role: string): string {
const value = role.trim();
- if (!value) return "—";
+ if (!value) return "unassigned";
return value
.split("_")
.map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase())
@@ -60,7 +60,7 @@ function formatRoleLabel(role: string): string {
function displayValue(value: string | null | undefined): string {
const trimmed = value?.trim();
- return trimmed ? trimmed : "—";
+ return trimmed ? trimmed : "unassigned";
}
function FieldGroup({
diff --git a/src/pages/content-management/AddNewLessonPage.tsx b/src/pages/content-management/AddNewLessonPage.tsx
index bd5f58e..9b09a21 100644
--- a/src/pages/content-management/AddNewLessonPage.tsx
+++ b/src/pages/content-management/AddNewLessonPage.tsx
@@ -606,16 +606,16 @@ export function AddNewLessonPage() {
Description
- {lessonDescription || "—"}
+ {lessonDescription || "unassigned"}
Intro video URL
- {introVideoUrl || "—"}
+ {introVideoUrl || "unassigned"}
Sub-module
- {subModuleId ?? "—"}
+ {subModuleId ?? "unassigned"}
diff --git a/src/pages/content-management/CourseDetailPage.tsx b/src/pages/content-management/CourseDetailPage.tsx
index 4728b62..68c441a 100644
--- a/src/pages/content-management/CourseDetailPage.tsx
+++ b/src/pages/content-management/CourseDetailPage.tsx
@@ -490,7 +490,7 @@ export function CourseDetailPage() {
(!loading && !course
? "This course could not be loaded."
: !course?.description?.trim() && course
- ? "—"
+ ? "unassigned"
: "");
return (
@@ -787,7 +787,7 @@ export function CourseDetailPage() {
{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"}
diff --git a/src/pages/content-management/HumanLanguageSubModulePage.tsx b/src/pages/content-management/HumanLanguageSubModulePage.tsx
index 4b18eda..c962073 100644
--- a/src/pages/content-management/HumanLanguageSubModulePage.tsx
+++ b/src/pages/content-management/HumanLanguageSubModulePage.tsx
@@ -44,7 +44,7 @@ function formatTableDate(dateStr: string) {
}
function formatVideoDuration(seconds: number) {
- if (!Number.isFinite(seconds) || seconds < 0) return "—"
+ if (!Number.isFinite(seconds) || seconds < 0) return "unassigned"
const m = Math.floor(seconds / 60)
const s = Math.floor(seconds % 60)
return m > 0 ? `${m}:${s.toString().padStart(2, "0")}` : `${s}s`
@@ -526,12 +526,12 @@ export function HumanLanguageSubModulePage() {
{questionSetStatusBadge(item.status)}
- {item.description?.trim() ? item.description : "—"}
+ {item.description?.trim() ? item.description : "unassigned"}
- {item.persona?.trim() ? item.persona : "—"}
+ {item.persona?.trim() ? item.persona : "unassigned"}
@@ -673,7 +673,7 @@ export function HumanLanguageSubModulePage() {
{lessonStatusBadge(lesson.is_active)}
- {lesson.description?.trim() ? lesson.description : "—"}
+ {lesson.description?.trim() ? lesson.description : "unassigned"}
@@ -985,7 +985,7 @@ export function HumanLanguageSubModulePage() {
- {v.description?.trim() ? v.description : "—"}
+ {v.description?.trim() ? v.description : "unassigned"}
@@ -1031,7 +1031,7 @@ export function HumanLanguageSubModulePage() {
) : (
- —
+ unassigned
)}
diff --git a/src/pages/content-management/InitialAssessmentPage.tsx b/src/pages/content-management/InitialAssessmentPage.tsx
index 71b8357..eb2e5c0 100644
--- a/src/pages/content-management/InitialAssessmentPage.tsx
+++ b/src/pages/content-management/InitialAssessmentPage.tsx
@@ -817,7 +817,7 @@ export function InitialAssessmentPage() {
>
{(() => {
const value = String(q.difficultyLevel ?? "").trim()
- if (!value || value === "—" || value === "-") return "unassigned"
+ if (!value || value === "unassigned" || value === "-") return "unassigned"
return value.toLowerCase()
})()}
diff --git a/src/pages/content-management/LearnEnglishPage.tsx b/src/pages/content-management/LearnEnglishPage.tsx
index ee7e9c4..bfd333e 100644
--- a/src/pages/content-management/LearnEnglishPage.tsx
+++ b/src/pages/content-management/LearnEnglishPage.tsx
@@ -732,7 +732,7 @@ export function LearnEnglishPage() {
{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"}
{quickTipParts.length > 0 && (
diff --git a/src/pages/content-management/PracticeQuestionsPage.tsx b/src/pages/content-management/PracticeQuestionsPage.tsx
index 289656b..d641716 100644
--- a/src/pages/content-management/PracticeQuestionsPage.tsx
+++ b/src/pages/content-management/PracticeQuestionsPage.tsx
@@ -647,7 +647,7 @@ export function PracticeQuestionsPage() {
Points: {question.points ?? 0}
- Difficulty: {question.difficulty_level || "—"}
+ Difficulty: {question.difficulty_level || "unassigned"}
diff --git a/src/pages/content-management/ProgramCoursesPage.tsx b/src/pages/content-management/ProgramCoursesPage.tsx
index 5977aca..2fd9237 100644
--- a/src/pages/content-management/ProgramCoursesPage.tsx
+++ b/src/pages/content-management/ProgramCoursesPage.tsx
@@ -759,7 +759,7 @@ export function ProgramCoursesPage() {
{course.name}
- {course.description?.trim() ? course.description : "—"}
+ {course.description?.trim() ? course.description : "unassigned"}
diff --git a/src/pages/content-management/ProgramDetailPage.tsx b/src/pages/content-management/ProgramDetailPage.tsx
index 9c694cd..b76c42c 100644
--- a/src/pages/content-management/ProgramDetailPage.tsx
+++ b/src/pages/content-management/ProgramDetailPage.tsx
@@ -116,7 +116,7 @@ export function ProgramDetailPage() {
list.map((row) => ({
id: Number(row.id),
name: row.name?.trim() || `Course ${row.id}`,
- description: row.description?.trim() || "—",
+ description: row.description?.trim() || "unassigned",
thumbnail: row.thumbnail?.trim() || null,
sortOrder: Number(row.sort_order ?? 0),
publishStatus: row.publish_status ?? null,
@@ -310,7 +310,7 @@ export function ProgramDetailPage() {
{
id: row.id,
name: row.name ?? name,
- description: row.description?.trim() || "—",
+ description: row.description?.trim() || "unassigned",
thumbnail: row.thumbnail?.trim() || null,
sortOrder: Number(row.sort_order ?? 0),
unitsCount: Number(row.units_count ?? 0),
@@ -393,7 +393,7 @@ export function ProgramDetailPage() {
const minioThumbnail = await resolveThumbnailToMinioUrl(editThumbnail);
const existing = createdCourses.find((c) => c.id === editingCourseId);
const preservedDescription =
- existing?.description && existing.description !== "—"
+ existing?.description && existing.description !== "unassigned"
? existing.description
: null;
const response = await updateExamPrepCatalogCourse(editingCourseId, {
@@ -409,7 +409,7 @@ export function ProgramDetailPage() {
? {
...course,
name: row?.name ?? name,
- description: row?.description?.trim() || preservedDescription || "—",
+ description: row?.description?.trim() || preservedDescription || "unassigned",
thumbnail: row?.thumbnail?.trim() || null,
sortOrder: Number(row?.sort_order ?? sortOrderNum),
unitsCount: Number(row?.units_count ?? course.unitsCount ?? 0),
diff --git a/src/pages/content-management/QuestionsPage.tsx b/src/pages/content-management/QuestionsPage.tsx
index 1dbd468..8ac50f6 100644
--- a/src/pages/content-management/QuestionsPage.tsx
+++ b/src/pages/content-management/QuestionsPage.tsx
@@ -523,7 +523,7 @@ export function QuestionsPage() {
)}
- {question.status || "—"}
+ {question.status || "unassigned"}
{question.points ?? 0}
@@ -696,10 +696,10 @@ export function QuestionsPage() {
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"}
{detailData.explanation ? (
@@ -755,7 +755,7 @@ export function QuestionsPage() {
: (answer as { acceptable_answer?: string }).acceptable_answer || ""
return (
- {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() {
AUDIO
- Difficulty: {question.difficulty_level || "—"}
+ Difficulty: {question.difficulty_level || "unassigned"}
Points: {question.points ?? 0}
- Status: {question.status || "—"}
+ Status: {question.status || "unassigned"}
{question.image_url && imagePreviewByQuestionId[question.id] ? (
@@ -1788,19 +1788,19 @@ 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"}
{selectedQuestionDetail.audio_correct_answer_text ? (
@@ -2440,11 +2440,11 @@ export function SpeakingPage() {
Practice
-
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}
@@ -2467,27 +2467,27 @@ export function SpeakingPage() {
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"}
diff --git a/src/pages/content-management/SubCourseContentPage.tsx b/src/pages/content-management/SubCourseContentPage.tsx
index ae3e466..82b44c4 100644
--- a/src/pages/content-management/SubCourseContentPage.tsx
+++ b/src/pages/content-management/SubCourseContentPage.tsx
@@ -625,7 +625,7 @@ export function SubModuleContentPage() {
day: "numeric",
year: "numeric",
})
- : "—"}
+ : "unassigned"}
e.stopPropagation()}>
- {guidanceText.trim() || "—"}
+ {guidanceText.trim() || "unassigned"}
@@ -303,7 +303,7 @@ export function PracticeSequentialReview({
Text prompt
- {question.questionText.trim() || "—"}
+ {question.questionText.trim() || "unassigned"}
{question.voicePrompt.trim() ? (
@@ -358,7 +358,7 @@ export function PracticeSequentialReview({
/>
) : (
- —
+ 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({
Description
- {payload.description || "—"}
+ {payload.description || "unassigned"}
Groups
- {groupName || "—"}
+ {groupName || "unassigned"}
Status
@@ -143,15 +143,15 @@ export function QuestionTypeReviewPublishStep({
Runtime type
- {runtime ?? "—"}
+ {runtime ?? "unassigned"}
Stimulus kinds
- {payload.stimulus_component_kinds.join(", ") || "—"}
+ {payload.stimulus_component_kinds.join(", ") || "unassigned"}
Response kinds
- {payload.response_component_kinds.join(", ") || "—"}
+ {payload.response_component_kinds.join(", ") || "unassigned"}
diff --git a/src/pages/content-management/components/question-type-steps/QuestionTypeValidatePreviewStep.tsx b/src/pages/content-management/components/question-type-steps/QuestionTypeValidatePreviewStep.tsx
index ca858a9..8283d77 100644
--- a/src/pages/content-management/components/question-type-steps/QuestionTypeValidatePreviewStep.tsx
+++ b/src/pages/content-management/components/question-type-steps/QuestionTypeValidatePreviewStep.tsx
@@ -118,13 +118,13 @@ export function QuestionTypeValidatePreviewStep({
Stimulus kinds
- {payload.stimulus_component_kinds.join(", ") || "—"}
+ {payload.stimulus_component_kinds.join(", ") || "unassigned"}
Response kinds
- {payload.response_component_kinds.join(", ") || "—"}
+ {payload.response_component_kinds.join(", ") || "unassigned"}
@@ -132,7 +132,7 @@ export function QuestionTypeValidatePreviewStep({
{payload.stimulus_schema.length
? payload.stimulus_schema.map((r) => r.label).join(" · ")
- : "—"}
+ : "unassigned"}
@@ -140,7 +140,7 @@ export function QuestionTypeValidatePreviewStep({
{payload.response_schema.length
? payload.response_schema.map((r) => r.label).join(" · ")
- : "—"}
+ : "unassigned"}
diff --git a/src/pages/content-management/components/video-steps/ReviewPublishStep.tsx b/src/pages/content-management/components/video-steps/ReviewPublishStep.tsx
index 8b034bb..a0b1da0 100644
--- a/src/pages/content-management/components/video-steps/ReviewPublishStep.tsx
+++ b/src/pages/content-management/components/video-steps/ReviewPublishStep.tsx
@@ -115,7 +115,7 @@ export function ReviewPublishStep({
) : (
- —
+ 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 ? (
{faq.category}
) : (
- —
+ unassigned
)}
diff --git a/src/pages/faqs/components/FaqForm.tsx b/src/pages/faqs/components/FaqForm.tsx
index 39b77b8..22006de 100644
--- a/src/pages/faqs/components/FaqForm.tsx
+++ b/src/pages/faqs/components/FaqForm.tsx
@@ -127,10 +127,10 @@ export function FaqForm({
Preview
- {draft.question || "—"}
+ {draft.question || "unassigned"}
- {draft.answer || "—"}
+ {draft.answer || "unassigned"}
{(draft.category || draft.display_order) && (
@@ -149,10 +149,10 @@ export function FaqForm({
Preview
- {draft.question || "—"}
+ {draft.question || "unassigned"}
- {draft.answer || "—"}
+ {draft.answer || "unassigned"}
{(draft.category || draft.display_order) && (
diff --git a/src/pages/issues/IssuesPage.tsx b/src/pages/issues/IssuesPage.tsx
index 5a817ed..0ee50c6 100644
--- a/src/pages/issues/IssuesPage.tsx
+++ b/src/pages/issues/IssuesPage.tsx
@@ -178,7 +178,7 @@ function getRelativeTime(dateStr: string): string {
function formatRoleLabel(role: string | null | undefined): string {
const r = String(role ?? "").trim();
- if (!r) return "—";
+ if (!r) return "unassigned";
return r
.split("_")
.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase())
@@ -532,7 +532,7 @@ export function IssuesPage() {
- {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"}
- {channelLabel(notification.delivery_channel) || "—"}
+ {channelLabel(notification.delivery_channel) || "unassigned"}
{formatNotificationTypeLabel(notification.type)}
@@ -372,7 +372,7 @@ export function AllNotificationsPage() {
variant={getNotificationLevelBadge(notification.level)}
className="text-[10px]"
>
- {notification.level || "—"}
+ {notification.level || "unassigned"}
@@ -381,7 +381,7 @@ export function AllNotificationsPage() {
- {notification.delivery_status || "—"}
+ {notification.delivery_status || "unassigned"}
{formatNotificationTimestamp(notification.timestamp)}
diff --git a/src/pages/notifications/NotificationsPage.tsx b/src/pages/notifications/NotificationsPage.tsx
index fa52716..4bd68ff 100644
--- a/src/pages/notifications/NotificationsPage.tsx
+++ b/src/pages/notifications/NotificationsPage.tsx
@@ -520,7 +520,7 @@ export function NotificationsPage() {
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"}
diff --git a/src/pages/notifications/ScheduledNotificationsPage.tsx b/src/pages/notifications/ScheduledNotificationsPage.tsx
index 493f99d..4b2ba0c 100644
--- a/src/pages/notifications/ScheduledNotificationsPage.tsx
+++ b/src/pages/notifications/ScheduledNotificationsPage.tsx
@@ -133,7 +133,7 @@ export function ScheduledNotificationsPage() {
if (job.target_raw?.emails?.length) {
return `${job.target_raw.emails.length} email(s)`
}
- return "—"
+ return "unassigned"
}
const activeFilterCount = countActiveFilters([
@@ -261,7 +261,7 @@ export function ScheduledNotificationsPage() {
{channelLabel(job.channel)}
- {job.title || "—"}
+ {job.title || "unassigned"}
{job.message}
{job.channel === "email" && job.email_template_slug ? (
diff --git a/src/pages/notifications/components/BulkSendSummaryPanel.tsx b/src/pages/notifications/components/BulkSendSummaryPanel.tsx
index 43f7124..9f5f1a1 100644
--- a/src/pages/notifications/components/BulkSendSummaryPanel.tsx
+++ b/src/pages/notifications/components/BulkSendSummaryPanel.tsx
@@ -177,9 +177,9 @@ export function BulkSendSummaryPanel({ summary, onDismiss }: BulkSendSummaryPane
Content
- {summary.titlePreview || "—"}
+ {summary.titlePreview || "unassigned"}
- {summary.messagePreview || "—"}
+ {summary.messagePreview || "unassigned"}
{!isImmediate && summary.emailTemplateSlug ? (
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"}
|
@@ -716,11 +716,11 @@ export function PaymentsPage() {
{[
{ k: "Customer", v: paymentCustomerName(selected) },
- { k: "Email", v: selected.user_email || "—" },
+ { k: "Email", v: selected.user_email || "unassigned" },
{ k: "Plan", v: selected.plan_name || `Plan #${selected.plan_id}` },
{ k: "Category", v: formatPaymentPlanCategory(selected.plan_category) },
- { k: "Transaction", v: selected.transaction_id || "—", mono: true },
- { k: "Session", v: selected.session_id || "—", mono: true },
+ { k: "Transaction", v: selected.transaction_id || "unassigned", mono: true },
+ { k: "Session", v: selected.session_id || "unassigned", mono: true },
{ k: "Subscription", v: `#${selected.subscription_id}` },
{ k: "Paid", v: formatPaymentDate(selected.paid_at ?? selected.created_at) },
...(selected.expires_at ? [{ k: "Expires", v: formatPaymentDate(selected.expires_at) }] : []),
diff --git a/src/pages/team/TeamManagementPage.tsx b/src/pages/team/TeamManagementPage.tsx
index 5feecdd..f38adce 100644
--- a/src/pages/team/TeamManagementPage.tsx
+++ b/src/pages/team/TeamManagementPage.tsx
@@ -388,10 +388,10 @@ export function TeamManagementPage() {
- {member.department || "—"}
+ {member.department || "unassigned"}
- {member.job_title || "—"}
+ {member.job_title || "unassigned"}
{member.last_login ? (
@@ -406,7 +406,7 @@ export function TeamManagementPage() {
) : (
)}
diff --git a/src/pages/user-log/components/ActivityLogListPanel.tsx b/src/pages/user-log/components/ActivityLogListPanel.tsx
index add6d14..a7108d5 100644
--- a/src/pages/user-log/components/ActivityLogListPanel.tsx
+++ b/src/pages/user-log/components/ActivityLogListPanel.tsx
@@ -281,7 +281,7 @@ export function ActivityLogListPanel({
- {logs[0]?.created_at ? getRelativeActivityTime(logs[0].created_at) : "—"}
+ {logs[0]?.created_at ? getRelativeActivityTime(logs[0].created_at) : "unassigned"}
Latest on this page
@@ -450,7 +450,7 @@ export function ActivityLogListPanel({
scrollable ? "whitespace-nowrap" : "max-w-[280px] truncate",
)}
>
- {log.message || "—"}
+ {log.message || "unassigned"}
{showActorColumn ? (
@@ -583,7 +583,7 @@ export function ActivityLogListPanel({
icon={}
label="Role"
value={
- selectedLog.actor_role ? formatRoleLabel(selectedLog.actor_role) : "—"
+ selectedLog.actor_role ? formatRoleLabel(selectedLog.actor_role) : "unassigned"
}
/>
}
label="IP address"
- value={selectedLog.ip_address || "—"}
+ value={selectedLog.ip_address || "unassigned"}
/>
}
label="User agent"
value={
- selectedLog.user_agent ? truncateUA(selectedLog.user_agent) : "—"
+ selectedLog.user_agent ? truncateUA(selectedLog.user_agent) : "unassigned"
}
title={selectedLog.user_agent ?? undefined}
/>
diff --git a/src/pages/user-management/DeletionRequestsPage.tsx b/src/pages/user-management/DeletionRequestsPage.tsx
index 4240602..a83042a 100644
--- a/src/pages/user-management/DeletionRequestsPage.tsx
+++ b/src/pages/user-management/DeletionRequestsPage.tsx
@@ -542,21 +542,21 @@ export function DeletionRequestsPage() {
{item.first_name} {item.last_name}
{item.email}
- {item.phone_number || "—"}
+ {item.phone_number || "unassigned"}
- {item.role || "—"}
- {item.status || "—"}
+ {item.role || "unassigned"}
+ {item.status || "unassigned"}
- {item.deletion_requested_at || "—"}
+ {item.deletion_requested_at || "unassigned"}
- {item.deletion_scheduled_at || "—"}
+ {item.deletion_scheduled_at || "unassigned"}
- {item.deletion_state || "—"}
+ {item.deletion_state || "unassigned"}
diff --git a/src/pages/user-management/UserDetailPage.tsx b/src/pages/user-management/UserDetailPage.tsx
index 444a350..1e50681 100644
--- a/src/pages/user-management/UserDetailPage.tsx
+++ b/src/pages/user-management/UserDetailPage.tsx
@@ -102,7 +102,7 @@ function formatDateTime(value?: string | null, emptyLabel = NOT_ASSIGNED_LABEL):
function formatActivityOccurredAt(iso: string): string {
const d = new Date(iso);
- if (Number.isNaN(d.getTime())) return "—";
+ if (Number.isNaN(d.getTime())) return "unassigned";
const now = new Date();
const startToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
diff --git a/src/pages/user-management/UsersListPage.tsx b/src/pages/user-management/UsersListPage.tsx
index b5e5e5a..695b9f0 100644
--- a/src/pages/user-management/UsersListPage.tsx
+++ b/src/pages/user-management/UsersListPage.tsx
@@ -28,9 +28,9 @@ import { EXPORT_PERMISSIONS, EXPORT_ROUTES } from "../../lib/csv-export"
import { usersExportQuery } from "../../lib/csvExportFilters"
function formatJoinedAt(iso: string): string {
- if (!iso?.trim()) return "—"
+ if (!iso?.trim()) return "unassigned"
const d = new Date(iso)
- if (Number.isNaN(d.getTime())) return "—"
+ if (Number.isNaN(d.getTime())) return "unassigned"
return d.toLocaleString(undefined, { dateStyle: "medium", timeStyle: "short" })
}
@@ -365,7 +365,7 @@ export function UsersListPage() {
const hasPhone = Boolean(phone?.trim())
const hasEmail = Boolean(email?.trim())
if (!hasPhone && !hasEmail) {
- return —
+ return unassigned
}
return (
@@ -406,7 +406,7 @@ export function UsersListPage() {
) : userSummary ? (
formatSummaryNum(userSummary.total_users)
) : (
- "—"
+ "unassigned"
)}
@@ -426,7 +426,7 @@ export function UsersListPage() {
) : activeUsersTotal !== null ? (
formatSummaryNum(activeUsersTotal)
) : (
- "—"
+ "unassigned"
)}
@@ -446,7 +446,7 @@ export function UsersListPage() {
) : userSummary ? (
formatSummaryNum(userSummary.new_month)
) : (
- "—"
+ "unassigned"
)}
@@ -665,15 +665,15 @@ export function UsersListPage() {
{renderContactDetails(u.phoneNumber, u.email)}
- {u.country || "-"}
- {u.region || "-"}
+ {u.country || "unassigned"}
+ {u.region || "unassigned"}
{formatJoinedAt(u.createdAt)}
({
country: u.country ?? "",
lastLogin: null,
status: u.status,
- subscriptionStatus: u.subscription_status?.trim() ? u.subscription_status.trim() : "—",
+ subscriptionStatus: u.subscription_status?.trim() ? u.subscription_status.trim() : "unassigned",
createdAt: u.created_at ?? "",
})
|