690326:2139 Fixing Refactor ADR-019 Naming convention uuid #07
CI / CD Pipeline / build (push) Successful in 10m6s
CI / CD Pipeline / deploy (push) Failing after 1m16s

This commit is contained in:
2026-03-26 21:39:03 +07:00
parent 25ea2fcd0f
commit 0a1ea1e4bb
8 changed files with 190 additions and 34 deletions
@@ -33,8 +33,7 @@ import {
import { Skeleton } from '@/components/ui/skeleton';
interface Project {
uuid: string;
id?: number; // Excluded from API responses (ADR-019)
id: string; // ADR-019: uuid exposed as 'id'
projectCode: string;
projectName: string;
isActive: boolean;
@@ -72,7 +71,7 @@ export default function ProjectsPage() {
const confirmDelete = () => {
if (projectToDelete) {
deleteProject.mutate(projectToDelete.uuid, {
deleteProject.mutate(projectToDelete.id, {
onSuccess: () => {
setDeleteDialogOpen(false);
setProjectToDelete(null);
@@ -146,7 +145,7 @@ export default function ProjectsPage() {
];
const handleEdit = (project: Project) => {
setEditingUuid(project.uuid);
setEditingUuid(project.id);
reset({
projectCode: project.projectCode,
projectName: project.projectName,