forked from simonw/sf-tree-history
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e10ec93
commit 804a03e
Showing
6 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.11.x" | ||
python-version: "3.12.x" | ||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install uv | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"sqltools.connections": [ | ||
{ | ||
"name": "dbtree", | ||
"accessMode": "Read Only", | ||
"previewLimit": 50, | ||
"driver": "DuckDB", | ||
"databaseFilePath": "/Users/winnie/dev/dbtree/dbtree.db" | ||
} | ||
], | ||
"sqltools.useNodeRuntime": true | ||
} |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Species | ||
--- | ||
|
||
<script> | ||
let myColors = [ | ||
"#D7E4C0", | ||
"#C6DCBA", | ||
"#BBC3A4", | ||
"#B3A398", | ||
"#638889" | ||
] | ||
</script> | ||
|
||
This page lets you scope the data to a single species of tree. It's a bit of a work in progress, but I'm excited to see where it goes! | ||
|
||
**NB:** This list is filtered to species with a scientific name in the data, to support the Wikipedia links. | ||
|
||
<Dropdown | ||
data={species} | ||
name=species_select | ||
title="Select a species" | ||
defaultValue="Blue Oak" | ||
value=species_friendly_name | ||
/> | ||
|
||
The <Value data={selected_species} column=species_friendly_name /> is an amazing tree! | ||
|
||
<LinkButton url={selected_species[0].wikipedia_link}> | ||
Read more on Wikipedia! | ||
</LinkButton> | ||
|
||
The Wikipedia links are inferred from the listed scientific name in the data, so they're not perfect and may take you to a non-existent page. Sorry! Hopefully I'll find a way around this soon. | ||
|
||
```sql selected_species | ||
select * from species where species_friendly_name = '${inputs.species_select.value}' | ||
``` | ||
|
||
```sql species | ||
select * from dbtree.species | ||
where species_scientific_name is not null | ||
``` |