OBOFoundry.github.io icon indicating copy to clipboard operation
OBOFoundry.github.io copied to clipboard

Dashboard status indicator

Open erik-whiting opened this issue 1 year ago • 2 comments

Working towards #2499

@matentzn can you take a quick look at my first pass? Here's basically what I'm doing:

  1. Parse the HTML of the OBO dashboard to find the pass/fail status of a specific ontology. (I know you said to translate the YML to JSON but as I mentioned, JavaScript doesn't work well with YML so translating it to JSON would present the same problem I had with just parsing the YML file, only with an extra step).
  2. Use the parsed data to set a status indicator and success sort order value.
  3. Use those values in the sortable table

With the current code, it looks like this:

image

I don't actually want to show the "success sort order" column, it will be hidden eventually. My challenge right now is setting that to be the default sort value, but I cannot figure out how to do that since we are using a custom data table, I don't think there's a "default column to sort by" function. Do you have any tips for getting me started on that?

Also, let me know if the color doesn't work.

erik-whiting avatar Dec 30 '23 05:12 erik-whiting

@erik-whiting Happy New Year, and thanks a ton for getting this going.

Some thoughts:

  • Can you check if you can use this as your new data source instead of scraping the HTML? https://github.com/OBOFoundry/obo-dash.github.io/blob/gh-pages/dashboard/dashboard-results.json
  • Instead of adding the checkbox for the dashboard in the "Dashboard status" column, can you try to see how it would look like to add the shield.io badge? see #2499
  • The grey looks great - some people may prefer a tiny bit lighter, but this is a detail we can postpone to the final review.
  • The success order column should indeed be hidden, but I have no idea how to set "default sort orders"

matentzn avatar Jan 02 '24 16:01 matentzn

@jsstevenson this is the draft PR, you can use or not as much of this as you like!

matentzn avatar Mar 09 '24 18:03 matentzn