Refactor site#493
Conversation
✅ Deploy Preview for strchive ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @vincerubinetti, this looks great! Here are the things I've noticed. Some could be left for a future PR. Loci table Motif (len): sort by len (numerical) then by motif (alphabetical) Locus pages I don't like the "#" in front of each reference number. I think having the number on the same line as the citation looks nicer, but not super fussed. Raw PubMed search results link is broken (it was already broken before this PR). Should go to data/literature/[GENE]_batch_01.txt e.g. CriTRia table I found it a little hard to visually distinguish between the Strong and Definitive colors. Otherwise, the colors all clearly match the strength of the evidence, so good selections. I think a legend of the categories, their corresponding scores, and colors should be somewhere. e.g. something like this. A download table button would be nice here (could go on a future development list). CriTRia curation page I think Score and Category should be visually grouped. Current: |
I think we can use this as an opportunity to knock out any other changes you were wanting, unless they're very oneroous.
I'm not sure that an icon or color alone can be 100% clear for so much nuance. But I have replaced it with something that might be slightly better. I switched to tabler icons due to some issues with react-icons. If you see anything there that fits better, we can replace it with that.
I removed the # and reverted to the old style. I thought having the same box style as the other fields was nice, but the refs and additional literature are sort of in their own category so it makes sense to let them look different.
Fixed
Fixed.
I tweaked the colors a bit and increase the separation between strong/definitive. I can make strong match the blue you have in your screenshot, but I did enjoy the symmetry of the hue values here (brightness, saturation, hue):
I put a table of this near the top of the criTRia page, this seemed most appropriate. I'll let you fill it out with more details as you see fit.
Added
Fixed |
|
Regarding the in-text citations for evidence, I noticed that there was no |
|
@vincerubinetti would it be helpful to add a |
|
We also added a new field to the locus pages since you started this PR. Something like this is needed: |
I added references |
That seems good for people consuming the json. For me, it doesn't make much of a difference since I have to keep a running list of the references I've extracted from the fields anyway. And I'm thinking it makes sense for me to use my personal lists rather than the
Added a full width box after mechanism.
Changed. What are your thoughts on just making all tables downloadable by default, and making the download button part of the standard controls (and moving all the controls to the top), e.g.:
Changed |
I think this is a good idea. Let me know if you'd like me to add a merge commit or rebase to re-align this branch with main. |











Description
This is a very large change that affects basically everything in the
/sitefolder. When I first scaffolded the site, I avoided adding extra complication since non-web-developers would be editing it. But after encountering several bugs that would've been avoided by type-safety, and accumulating a bunch of utility and one-off style classes, I wanted to just upgrade the code base to modern best practices, even if it makes changes a bit more difficult for others.Unfortunately, we should review the entire site page by page to make sure nothing has broken.
I did make some opinionated changes that may end up being reverted:
If you have any questions or would like an in-person walkthrough of these changes, lmk.
Major Changes
Checklist
CITATION.cff, format X.Y.Z. If any major changes, increment Y. If only minor changes, increment Z. If the breaking change (rare), increment X.