Skip to content

Commit

Permalink
Merge pull request #1444 from TomChapmanGov/my_workplans
Browse files Browse the repository at this point in the history
My workplans
  • Loading branch information
jadmsaadaot authored Dec 12, 2023
2 parents 1189db0 + fb2512e commit 8061efb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions epictrack-api/src/api/services/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def _serialize_work(work, work_staffs, works_statuses, work_phase):
"eao_team",
"title",
"is_active",
"project.name"
)
).dump(work)
if work_phase and len(work_phase) > 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CardHeader = ({ workplan }: CardProps) => {
whiteSpace: "nowrap",
}}
>
{workplan.title}
{workplan?.project?.name}
</ETCaption1>
</Grid>
<Grid item container xs={2} justifyContent="flex-end">
Expand Down
4 changes: 4 additions & 0 deletions epictrack-web/src/models/workplan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export interface WorkPlan {
work_type: WorkType;
work_state: string;

project: {
name: string;
};

phase_info: {
days_left: number;
milestone_progress: number;
Expand Down

0 comments on commit 8061efb

Please sign in to comment.