Skip to content

Commit

Permalink
Merge pull request #1815 from MetaPhase-Consulting/feature/assignee
Browse files Browse the repository at this point in the history
Display assignee on PV cards and details
  • Loading branch information
elizabeth-jimenez committed Oct 25, 2021
2 parents 76ad40d + 53a2505 commit fc6a18c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Components/PositionDetailsItem/PositionDetailsItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const PositionDetailsItem = (props) => {
const differentials = <Differentials {...diffProps} />;

const incumbent = get(position, 'current_assignment.user') || NO_USER_LISTED;
const assignee = get(position, 'assignee') || NO_USER_LISTED;
const cycle = get(position, 'latest_bidcycle.name', 'None Listed');

const getPostedDate = () => {
Expand Down Expand Up @@ -152,6 +153,7 @@ const PositionDetailsItem = (props) => {
<CondensedCardDataPoint title={isProjectedVacancy ? 'Bid Season' : 'Bid Cycle'} content={cycle} />
<CondensedCardDataPoint title="TED" content={formattedTourEndDate} />
<CondensedCardDataPoint title="Incumbent" content={incumbent} />
{ isProjectedVacancy && <CondensedCardDataPoint title="Assignee" content={assignee} /> }
{ !isProjectedVacancy && <CondensedCardDataPoint title="Posted" content={postedDate} />}
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion src/Components/ResultsCard/ResultsCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,13 @@ class ResultsCard extends Component {
/* eslint-enable quote-props */
];

if (isProjectedVacancy) { delete sections[2].Posted; }
if (isProjectedVacancy) {
delete sections[2].Posted;
sections[1] = {
...sections[1],
Assignee: getResult(pos, 'assignee', NO_USER_LISTED),
};
}

options.favorite = {
compareArray: [],
Expand Down

0 comments on commit fc6a18c

Please sign in to comment.