Skip to content

Commit

Permalink
fix: insert for happos fixed, projectTableRow status value added
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZorkin committed Jan 14, 2022
1 parent 3a7794f commit be608d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion app/components/Project/ProjectTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const ProjectTableRow: React.FC<Props> = ({ project }) => {
id,
projectName,
rfpNumber,
projectStatusByProjectStatusId: { name },
operatorByOperatorId: { tradeName },
} = useFragment(
graphql`
Expand All @@ -23,6 +24,9 @@ const ProjectTableRow: React.FC<Props> = ({ project }) => {
operatorByOperatorId {
tradeName
}
projectStatusByProjectStatusId {
name
}
}
`,
project
Expand All @@ -40,7 +44,7 @@ const ProjectTableRow: React.FC<Props> = ({ project }) => {
<td className="op-trade-name">{tradeName}</td>
<td className="rfp-number">{rfpNumber}</td>
<td className="status-container">
<span className="status-badge">Status Here</span>
<span className="status-badge">{name}</span>
</td>
<td>
J. Doeloremipsum,
Expand Down
10 changes: 5 additions & 5 deletions schema/data/dev/003_cif_project.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
begin;

insert into cif.project(operator_id, funding_stream_rfp_id, rfp_number, summary, project_name) values
(1, 1, '2019-RFP-1-000-ABCD', 'summary', 'project 1'),
(2, 1, '2019-RFP-0-000-EFGH', 'summary', 'project 2'),
(3, 1, '2019-RFP-0-000-ZXCV', 'summary', 'project 3'),
(1, 1, '2019-RFP-0-000-ABCD', 'summary', 'lorem ipsum dolor sit amet consectetur adipiscing elit');
insert into cif.project(operator_id, funding_stream_rfp_id, project_status_id, rfp_number, summary, project_name) values
(1, 1, 1, '2019-RFP-1-000-ABCD', 'summary', 'project 1'),
(2, 1, 1, '2019-RFP-0-000-EFGH', 'summary', 'project 2'),
(3, 1, 1, '2019-RFP-0-000-ZXCV', 'summary', 'project 3'),
(1, 1, 1, '2019-RFP-0-000-ABCD', 'summary', 'lorem ipsum dolor sit amet consectetur adipiscing elit');

commit;

0 comments on commit be608d5

Please sign in to comment.