feat(web): add prior archive promote actions
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -186,21 +186,17 @@ const auth = useAuthStore();
|
||||
const priorArchiveOn = computed(() => Boolean(auth.user?.priorArchive));
|
||||
|
||||
function isPriorActivity(row: ActivityDto) {
|
||||
if (row.importSource !== 'didar') return false;
|
||||
if (row.status === 'open' && row.dueAt && new Date(row.dueAt).getTime() > Date.now()) return false;
|
||||
return true;
|
||||
const cutoff = auth.user?.priorArchive?.cutoffAt;
|
||||
if (!auth.user?.priorArchive || !cutoff) return false;
|
||||
if (row.promotedFromPriorAt) return false;
|
||||
return new Date(row.createdAt).getTime() < new Date(cutoff).getTime();
|
||||
}
|
||||
|
||||
function isPriorDeal(row: DealDto) {
|
||||
if (row.importSource !== 'didar') return false;
|
||||
if (
|
||||
row.status === 'open' &&
|
||||
row.expectedCloseAt &&
|
||||
new Date(row.expectedCloseAt).getTime() > Date.now()
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
const cutoff = auth.user?.priorArchive?.cutoffAt;
|
||||
if (!auth.user?.priorArchive || !cutoff) return false;
|
||||
if (row.promotedFromPriorAt) return false;
|
||||
return new Date(row.createdAt).getTime() < new Date(cutoff).getTime();
|
||||
}
|
||||
|
||||
const lastCallAt = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user