feat: release v0.2.0 profiles, chat, freeze, and bots

Ship the product pass on the v0.1.3 schema with additive migrations, a replica migration lock, and bot accounts kept out of people lists.
This commit is contained in:
ahp
2026-10-10 16:42:35 +03:30
parent 8586bbafcc
commit 22d92c133d
85 changed files with 10510 additions and 1341 deletions
+11
View File
@@ -22,6 +22,17 @@ export function formatStreakLabel(days: number) {
/** Quiz option letters: الف، ب، ج، د، … */
const FA_OPTION_LETTERS = ["الف", "ب", "ج", "د", "ه", "و"] as const;
/** Jalali day plus clock, for conversation rows. */
export function formatJalaliStamp(iso: string): string {
const d = new Date(iso);
if (Number.isNaN(d.getTime())) {
return "";
}
const day = new Intl.DateTimeFormat("fa-IR", { day: "numeric", month: "short" }).format(d);
const time = new Intl.DateTimeFormat("fa-IR", { hour: "2-digit", minute: "2-digit" }).format(d);
return `${day} · ${time}`;
}
export function formatOptionLetter(index: number): string {
if (index >= 0 && index < FA_OPTION_LETTERS.length) {
return FA_OPTION_LETTERS[index];