diff --git a/src/app/(dashboard)/jobs/[jobId]/page.tsx b/src/app/(dashboard)/jobs/[jobId]/page.tsx index 252301e..01893fa 100644 --- a/src/app/(dashboard)/jobs/[jobId]/page.tsx +++ b/src/app/(dashboard)/jobs/[jobId]/page.tsx @@ -259,33 +259,55 @@ export default async function JobDetailPage({ - {history.length > 0 && ( - - - Aşama Geçmişi - Tamamlanan aşamaların kaydı. - - -
    - {history.map((h) => ( -
  1. -
    - {JOB_STEP_LABELS[h.step]} - - {dateFormatter.format(new Date(h.completedAt))} - -
    - {h.note && ( -

    - {h.note} -

    - )} -
  2. - ))} + + + Akış Geçmişi + + İşin aşama transition'ları, kim yaptı ve hangi notla. + + + + {history.length === 0 ? ( +

    + Henüz aşama tamamlanmadı. +

    + ) : ( +
      + {history.map((h) => { + const isRevision = h.note?.startsWith("[Düzeltme talebi]"); + return ( +
    1. + +
      + + {JOB_STEP_LABELS[h.step]} + + {isRevision && ( + + Düzeltme talebi + + )} + + {dateFormatter.format(new Date(h.completedAt))} + +
      + {h.note && ( +

      + {h.note.replace(/^\[Düzeltme talebi\]\s*/, "")} +

      + )} +
    2. + ); + })}
    -
    -
    - )} + )} + +