Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #1229] Dynamic tag format in search results #1525

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

andycochran
Copy link
Collaborator

Summary

Fixes #1229

Time to review: 5 mins

Changes proposed

  • Add a new component for SearchResultsListItem
  • Conditionally render and format the dates with "tag" styles

Context for reviewers

--

Additional information

image

Copy link
Contributor

@rylew1 rylew1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! like the small PRs . Only have nit comments really.

nit: Add component test as a stretch? Which is basically this ticket #1471
(There's a separate ticket to work on the server component tests)

</div>
</div>
<li key={opportunity?.opportunity_id}>
<SearchResultsListItem opportunity={opportunity} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

: "--"}
</span>
)}
{opportunity?.opportunity_status === "posted" && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you might try getPosted() getArchived() functions that return the JSX. And/or a javascript switch statement to clean some of this up. Just a nit though

@andycochran andycochran merged commit ffb9b8f into main Mar 22, 2024
6 checks passed
@andycochran andycochran deleted the andycochran/1229--results-tags branch March 22, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Dynamic tag format in search results
2 participants