{loggedInUser.full_name}
+{approverUser?.full_name}
{isUserOrgAdmin ? 'Organization Admin' : 'Member'}
diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/runs/[runId]/page.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/runs/[runId]/page.tsx index d8a753de..050ed0cc 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/runs/[runId]/page.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/runs/[runId]/page.tsx @@ -37,6 +37,7 @@ type ProjectRunDetailsProps = { fullRepoName: string | null planBatchId: string | null applyBatchId: string | null + approverUser: Table<'user_profiles'> | null } @@ -65,9 +66,14 @@ export default async function RunDetailPage({ const [project, userProfile, repoDetails] = await Promise.all([ getSlimProjectById(project_id), getUserProfile(user.id), - getRepoDetails(run.repo_id) + getRepoDetails(run.repo_id), ]); + let approverUserProfile + if (run.approver_user_id) { + approverUserProfile = await getUserProfile(run.approver_user_id); + } + // Fetch organization role and batch IDs in parallel const [organizationRole, planBatchId, applyBatchId] = await Promise.all([ getLoggedInUserOrganizationRole(project.organization_id), @@ -101,6 +107,7 @@ export default async function RunDetailPage({ >