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

Producer Details Page - Order supporting evidence by evidence start date #70

Open
mariocarabotta opened this issue Jun 19, 2024 · 1 comment

Comments

@mariocarabotta
Copy link

mariocarabotta commented Jun 19, 2024

3 new fields have been added to the Airtable base - assurances:

  • Start date
  • End date
  • Present evidence

They have also already been added to Miniextensions as well.

We want the supporting evidence list in the producer details page to be ordered by start date, and this range of dates to be displayed in the frontend.

Certifications are also listed at the bottom of the list. For now we are not going to make changes to this type of information (except a minor UI update).

Sorting logic

  • always display evidence with start date above the one without a starting date, and certifications always at the bottom
  • evidence without a sorting date, and certifications will keep the current sorting (by creation date)
  • evidence with the most recent starting date should be shown at the top

Date range string logic

Data available Format
Doesn't have start date don't display any date
Has start date, no end date, Present evidence=yes Jan 2023 - Present
Has start date, no end date Jan 2023
Has start date, has end date Jan 2023 - Oct 2023

UI changes

  • replace Creation date with the string described above
  • move date under title
  • if no start date is available, hide the date string altogether (this affects Certifications as well)

Example below

Image

@mariocarabotta mariocarabotta converted this from a draft issue Jun 19, 2024
@mariocarabotta mariocarabotta moved this from Todo to Ready for dev in Discover Regenerative Jun 19, 2024
@mkllnk
Copy link
Member

mkllnk commented Jun 20, 2024

I added the sorting to the evidence view in Airtable. Looking at Amida's test enterprise, which is the only one with test data so far, it seems to do the right thing and list the newer one first.

@mkllnk mkllnk added this to the SiB Fixes round 1 milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for dev
Development

No branches or pull requests

2 participants