-
Notifications
You must be signed in to change notification settings - Fork 6
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
Variable view rewrite & consistent data source coloring #311
Conversation
frostyfan109
commented
Jul 22, 2024
- Rewrite/cleanup variable view w/context so that we can support filters and other features that weren't otherwise feasible
- Add infinite scroll to variable view
- Fix study data source (e.g., HEAL studies vs Non-HEAL studies) coloring
- Group by study/collapse into variable list
- Add filters:
- Subsearch filter
- Data source filtering
- Sort by score/data source, with ascending/descending options
…o feature/sort-variable-view-study-types
|
I can't review the many code changes in this PR, but the end results look great! Some thoughts:
|
npm ci is just an alias of clean-install as far as I know. I think we just need to rebuild the package lock |
(1) Good note about the fuzziness. I was noticing something similar happening with another term (interim vs interval) so I looked into the code, and it turns out Lunr stems each term before making it into the index, which ultimately results in the fuzziness being a bit more forgiving than perhaps intended. I think we could turn down the fuzziness by 1 edit distance. (2) I agree, group by study as default makes sense as that's the appearance of variable view prior to this PR, so it's what people expect. I was wondering if you had any feedback about the placement of the button? I'm not super happy with putting it in the filter menu but couldn't find a better position for it. (3) That's an oversight on my part, I'll change it so the counts reflect the amounts actually being displayed. (4) Ping me when these changes are implemented :) |
…y_name to subsearch index (remove study_id)
Regarding fuzziness, we were by default using 1 LD if < 5 chars, otherwise 2 LD. I've fixed it to use 1 edit distance (LD) regardless of term length. |
src/components/search/results/variable-view-layout/variable-view-layout.js
Outdated
Show resolved
Hide resolved
src/components/search/results/variable-view-layout/variable-view-layout.js
Outdated
Show resolved
Hide resolved
src/components/search/results/variable-view-layout/variable-results-new.tsx
Outdated
Show resolved
Hide resolved
src/components/search/results/variable-view-layout/variable-results-new.tsx
Show resolved
Hide resolved
Thanks for all the work @frostyfan109 ! A few cleanup things, but other than that I think we should be okay. |
|
I'm not sure, but I don't see it mentioned in newer commits so probably not. I'll check |
@hina-shah can you approve? |
…o feature/sort-variable-view-study-types