Improve homepage dataset summary and searchable preview#33
Open
ANAMASGARD wants to merge 1 commit into
Open
Conversation
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Improves the homepage so its summary reflects records represented in
traitsview, rather than counting every row in the full species, sites, and citations tables.This PR:
checked,result_type, notes, timestamps, and other internal fields from the preview;DTto the suggested dependencies and Quarto publishing workflow.The summary values are calculated directly from
traitsview:species_idvaluessite_idvaluescitation_idvaluesNo species, site, citation, PFT, or junction tables are joined when calculating these metrics.
Related Issue(s)
Addresses #26
Type of Change
Checklist
devtools::check()with no new errors or warningsValidation
devtools::test()quarto render --executedevtools::check(args = c("--no-manual", "--no-build-vignettes"))git diff --checkScreenshots
Observation-backed homepage summary
Searchable observation preview
The preview below is filtered using
Panicum, showing that client-side search works across the observation table.Dataset diversity summaries
Data Changes
No packaged datasets or files under
data-raw/were modified.Additional Notes
Biome and PFT summaries are not included because the packaged observation data does not contain a direct biome classification and the species-to-PFT relationship is many-to-many.
A map or biome/PFT summary would require maintainer guidance on the authoritative classification and how species assigned to multiple PFTs should be counted. These can be handled as follow-up work if requested.