AshameTheDestroyer commited on
Commit
ab5962a
·
1 Parent(s): 4b49912

Application's Assessment's Title Displayed.

Browse files
frontend/app/components/application-card.tsx CHANGED
@@ -9,9 +9,10 @@ export function ApplicationCard({ application, aid, jid, isStatic = false } : {
9
  return (
10
  <div
11
  tabIndex={isStatic ? -1 : 0}
12
- className={cn("p-4 flex flex-wrap justify-evenly gap-4 place-items-center", isStatic ? "" : "border rounded bg-indigo-100 dark:bg-gray-700 [:is(:hover,:focus)]:shadow-lg [:is(:hover,:focus)]:scale-101 transition-all cursor-pointer")}
13
  onClick={() => isStatic || Navigate(`/jobs/${jid}/assessments/${aid}/applications/${application.id}`)}
14
  >
 
15
  <div className="group-data-[collapsible=icon]:-mx-4 flex gap-2">
16
  <Avatar.Avatar className="shrink-0 cursor-pointer" tabIndex={0}>
17
  <Avatar.AvatarFallback className="rounded-full bg-indigo-200 dark:bg-gray-800 size-10 group-data-[collapsible=icon]:size-8 flex items-center justify-center">
 
9
  return (
10
  <div
11
  tabIndex={isStatic ? -1 : 0}
12
+ className={cn("p-4 flex flex-wrap justify-between gap-4 place-items-center", isStatic ? "" : "border rounded bg-indigo-100 dark:bg-gray-700 [:is(:hover,:focus)]:shadow-lg [:is(:hover,:focus)]:scale-101 transition-all cursor-pointer")}
13
  onClick={() => isStatic || Navigate(`/jobs/${jid}/assessments/${aid}/applications/${application.id}`)}
14
  >
15
+ <h1 className={cn("grow font-bold w-full", isStatic ? "text-3xl" : "text-xl")}>{application.assessment_details.title}</h1>
16
  <div className="group-data-[collapsible=icon]:-mx-4 flex gap-2">
17
  <Avatar.Avatar className="shrink-0 cursor-pointer" tabIndex={0}>
18
  <Avatar.AvatarFallback className="rounded-full bg-indigo-200 dark:bg-gray-800 size-10 group-data-[collapsible=icon]:size-8 flex items-center justify-center">
frontend/app/services/useGetJobAssessmentApplicationByID.ts CHANGED
@@ -21,6 +21,11 @@ export type DetailedApplication = {
21
  options: Array<string>;
22
  rationale: string;
23
  }>;
 
 
 
 
 
24
  user: User;
25
  score: number;
26
  passing_score: number;
 
21
  options: Array<string>;
22
  rationale: string;
23
  }>;
24
+ assessment_details: {
25
+ id: string;
26
+ title: string;
27
+ passing_score: number;
28
+ };
29
  user: User;
30
  score: number;
31
  passing_score: number;
frontend/app/services/useGetJobAssessmentApplications.ts CHANGED
@@ -11,6 +11,11 @@ export type Application = {
11
  user: User;
12
  score: number;
13
  passing_score: number;
 
 
 
 
 
14
  };
15
 
16
  export const useGetJobAssessmentApplications = ({ jid, aid }: { jid: string, aid: string }) => {
 
11
  user: User;
12
  score: number;
13
  passing_score: number;
14
+ assessment_details: {
15
+ id: string;
16
+ title: string;
17
+ passing_score: number;
18
+ };
19
  };
20
 
21
  export const useGetJobAssessmentApplications = ({ jid, aid }: { jid: string, aid: string }) => {