260322:1648 Correct Coresspondence / Doing RFA / Correct CI
CI Pipeline / build (push) Failing after 12m41s
Build and Deploy / deploy (push) Failing after 2m44s

This commit is contained in:
admin
2026-03-22 16:48:12 +07:00
parent e5deedb42e
commit 11984bfa29
683 changed files with 105251 additions and 29068 deletions
+17 -19
View File
@@ -1,36 +1,36 @@
import { NotificationResponse } from "@/types/notification";
import { NotificationResponse } from '@/types/notification';
// Mock Data
let mockNotifications = [
{
uuid: "019575a0-0001-7000-8000-000000000001",
uuid: '019575a0-0001-7000-8000-000000000001',
notificationId: 1,
title: "RFA Approved",
message: "RFA-001 has been approved by the Project Manager.",
type: "SUCCESS" as const,
title: 'RFA Approved',
message: 'RFA-001 has been approved by the Project Manager.',
type: 'SUCCESS' as const,
isRead: false,
createdAt: new Date(Date.now() - 1000 * 60 * 15).toISOString(), // 15 mins ago
link: "/rfas/1",
link: '/rfas/1',
},
{
uuid: "019575a0-0002-7000-8000-000000000002",
uuid: '019575a0-0002-7000-8000-000000000002',
notificationId: 2,
title: "New Correspondence",
message: "You have received a new correspondence from Contractor A.",
type: "INFO" as const,
title: 'New Correspondence',
message: 'You have received a new correspondence from Contractor A.',
type: 'INFO' as const,
isRead: false,
createdAt: new Date(Date.now() - 1000 * 60 * 60).toISOString(), // 1 hour ago
link: "/correspondences/3",
link: '/correspondences/3',
},
{
uuid: "019575a0-0003-7000-8000-000000000003",
uuid: '019575a0-0003-7000-8000-000000000003',
notificationId: 3,
title: "Drawing Revision Required",
message: "Drawing S-201 requires revision based on recent comments.",
type: "WARNING" as const,
title: 'Drawing Revision Required',
message: 'Drawing S-201 requires revision based on recent comments.',
type: 'WARNING' as const,
isRead: true,
createdAt: new Date(Date.now() - 1000 * 60 * 60 * 24).toISOString(), // 1 day ago
link: "/drawings/2",
link: '/drawings/2',
},
];
@@ -46,8 +46,6 @@ export const notificationApi = {
markAsRead: async (id: number) => {
await new Promise((resolve) => setTimeout(resolve, 200));
mockNotifications = mockNotifications.map((n) =>
n.notificationId === id ? { ...n, isRead: true } : n
);
mockNotifications = mockNotifications.map((n) => (n.notificationId === id ? { ...n, isRead: true } : n));
},
};