fix: keep birthdays and show Shamsi dates

Imported customers keep their birthday, and assistant text plus remaining calendars use the Jalali date.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-13 18:04:53 +03:30
co-authored by Cursor
parent 5f4cc47c41
commit cf326d1ed9
34 changed files with 637 additions and 105 deletions
@@ -4,6 +4,7 @@ import axios from 'axios';
import { api } from '@/lib/api';
import JalaliDateInput from '@/components/JalaliDateInput.vue';
import { brand, type NoteAiPayloadDto, type NoteAiSuggestionDto } from '@mento/shared';
import { rewriteGregorianDates } from '@/lib/jalali';
const props = defineProps<{
noteId: string;
@@ -142,7 +143,7 @@ async function dismiss() {
function formatPayloadSummary(value: NoteAiPayloadDto | null) {
if (!value?.summary) return '';
return value.summary;
return rewriteGregorianDates(value.summary);
}
</script>