Sync Telegram profile fields to Supabase and show user IDs

This commit is contained in:
2569718930@qq.com
2026-04-01 02:13:17 +08:00
parent a8462e188b
commit 3bbd8774a4
3 changed files with 234 additions and 4 deletions
+4 -1
View File
@@ -810,6 +810,7 @@ export function OpsDashboard() {
<div className="font-semibold text-slate-100">{item.email || "-"}</div>
<div className="mt-1 text-xs text-slate-500">{item.username || "-"}</div>
<div className="mt-3 grid gap-2">
<MobileField label="User ID" value={item.user_id || "-"} mono />
<MobileField label="注册时间" value={formatDateTime(item.registered_at)} />
<MobileField label="到期时间" value={formatDateTime(item.expires_at)} />
</div>
@@ -827,6 +828,7 @@ export function OpsDashboard() {
<tr>
<th className="px-4 py-3"></th>
<th className="px-4 py-3"></th>
<th className="px-4 py-3">User ID</th>
<th className="px-4 py-3"></th>
<th className="px-4 py-3"></th>
</tr>
@@ -836,13 +838,14 @@ export function OpsDashboard() {
<tr key={`${item.user_id}-${item.expires_at || ""}`}>
<td className="px-4 py-3">{item.email || "-"}</td>
<td className="px-4 py-3">{item.username || "-"}</td>
<td className="px-4 py-3 font-mono text-xs text-slate-300">{item.user_id || "-"}</td>
<td className="px-4 py-3">{formatDateTime(item.registered_at)}</td>
<td className="px-4 py-3">{formatDateTime(item.expires_at)}</td>
</tr>
))}
{!memberships.length ? (
<tr>
<td className="px-4 py-4 text-slate-500" colSpan={4}>
<td className="px-4 py-4 text-slate-500" colSpan={5}>
</td>
</tr>