Skip to content
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

Implementing downloading/previewing metrics and geometries #13

Merged
merged 70 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
9c6c5ff
Add popgetter to backend, add example interface for countries
sgreenbury Aug 10, 2024
138c0d2
Update popgetter and polars git deps
sgreenbury Sep 10, 2024
0ca595b
Move get countries to title page
sgreenbury Sep 10, 2024
93e1d34
Remove JSON parse and add todo
sgreenbury Sep 10, 2024
415145f
Add buffer, return metdata as JSON string
sgreenbury Sep 30, 2024
e394056
Update deps
sgreenbury Oct 8, 2024
f252f82
Add API for searching metadata and downloading data
sgreenbury Oct 8, 2024
84ace2b
Add JS API, add rust_backend as local dep
sgreenbury Oct 9, 2024
116e43e
Remove local dep on `rust_backend`
sgreenbury Oct 14, 2024
2ed76fa
Add CountriesMode and display dataframe
sgreenbury Oct 14, 2024
17069bb
Initial search mode
sgreenbury Oct 14, 2024
29ff1d4
doc: adding build info to `README.md`
spool Oct 18, 2024
f454700
fix: include `Cargo.lock` in repository
spool Oct 18, 2024
5018f9e
Initial DownloadMode and SearchParams
sgreenbury Oct 18, 2024
55a36f5
Begin selected country logic
sgreenbury Oct 18, 2024
33212db
Adding example download for a data request spec
sgreenbury Oct 23, 2024
562eba8
Begin metadata cache implementation
sgreenbury Nov 4, 2024
5e2588b
Add download data request methods
sgreenbury Nov 4, 2024
cabaa34
Begin show data on map
sgreenbury Nov 4, 2024
b339a0a
Add tailwind
sgreenbury Nov 4, 2024
ba905a2
Revise workflow, add country and level selection
sgreenbury Nov 5, 2024
b9e5bd9
Remove class for levels dropdown
sgreenbury Nov 5, 2024
f6b4654
Add selected metrics and preview drawer
sgreenbury Nov 5, 2024
49afde7
Remove search params and countries mode
sgreenbury Nov 5, 2024
dd9022f
Begin adding preview
sgreenbury Nov 5, 2024
1e60d21
Add workflow back
sgreenbury Nov 5, 2024
647e4c4
Fixing preview
sgreenbury Nov 5, 2024
521e4d5
Revise style of country and geometry selection modes
sgreenbury Nov 5, 2024
7ed0683
Fix preview
sgreenbury Nov 5, 2024
f5d5d9a
Begin adding preview for map
sgreenbury Nov 5, 2024
866535f
Fix preview for map
sgreenbury Nov 6, 2024
dcba8fa
Begin fixing automated scaling, remove unused imports
sgreenbury Nov 6, 2024
b26e134
Set min max from data
sgreenbury Nov 6, 2024
7d4de3a
Replace strings with constants
sgreenbury Nov 6, 2024
191be79
Fix text colours
sgreenbury Nov 6, 2024
9f15e04
Add github workflow from web app template
sgreenbury Nov 6, 2024
bab7d0b
Remove dep on duckdb api server for static site
sgreenbury Nov 6, 2024
63e32af
Update request to use bound box from map bounds
sgreenbury Nov 6, 2024
0ca69ed
Add publish to workflow
sgreenbury Nov 6, 2024
da0d496
Add rust_backend pkg
sgreenbury Nov 6, 2024
6d736fa
Fix publish_dir for sveltekit
sgreenbury Nov 6, 2024
542e7a3
Update cache path, remove map_err
sgreenbury Nov 6, 2024
539b422
Add debounce
sgreenbury Nov 7, 2024
746a7b3
Add line layer
sgreenbury Nov 7, 2024
a4cb4e1
Add subtitle
sgreenbury Nov 7, 2024
4c994b7
Fix tailwind and flowbite, add reactivity, layout
sgreenbury Nov 7, 2024
24290ea
Add wrapping and fix buttons style
sgreenbury Nov 7, 2024
d0731aa
Add duckdb-wasm for metric previews
sgreenbury Nov 7, 2024
ac421eb
Refactor duckdb-wasm metrics request
sgreenbury Nov 7, 2024
5d3be72
Refactor and fix table style
sgreenbury Nov 8, 2024
7190e33
Add pmtiles, implement client side join with color mapping
sgreenbury Nov 8, 2024
f1d80d6
Add backend functionality for pmtiles
sgreenbury Nov 9, 2024
ebfd763
Make map component reactive to URL updates
sgreenbury Nov 9, 2024
e3a0571
Fix config path
sgreenbury Nov 9, 2024
90f8140
Format and remove obsolete code
sgreenbury Nov 10, 2024
030f100
Refactor duckdb with backend
sgreenbury Nov 10, 2024
205031b
Rename Map to TilesMap
sgreenbury Nov 10, 2024
05af840
Replace map with object types
sgreenbury Nov 10, 2024
fa5ae80
Initial download tab
sgreenbury Nov 10, 2024
fb498e7
Add download button and impl
sgreenbury Nov 11, 2024
c3f2043
Add todos and hoverState filter
sgreenbury Nov 11, 2024
ee48310
Begin hover
sgreenbury Nov 12, 2024
6de3c86
Fix bounding box impl
sgreenbury Nov 12, 2024
4e79dbe
Refactor download and save
sgreenbury Nov 12, 2024
9c4ec3b
Add description, consts for classes, remove obsolete code
sgreenbury Nov 12, 2024
73a2ad3
Fix search when no selected metrics, add pagination
sgreenbury Nov 13, 2024
21e090c
Update backends with throw method
sgreenbury Dec 11, 2024
516312b
Set default tileUrl to null
sgreenbury Dec 11, 2024
d69ce60
Set tileUrl to null in TitleMode
sgreenbury Dec 13, 2024
45f8814
Include VectorTileSource if tileUrl not null
sgreenbury Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
pull_request:
branches: [main]

push:
branches: [main]

defaults:
run:
working-directory: popgetter-browser

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install wasm-pack
uses: jetli/[email protected]

- name: Cache WASM build
uses: actions/cache@v3
with:
path: popgetter-browser/rust_backend/target
key: rust_backend

- name: Install dependencies for all packages
run: |
cd web/
pnpm install

- name: Build web app
run: |
cd web
pnpm rust-release
pnpm build

- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: popgetter-browser/web/build/
1 change: 0 additions & 1 deletion popgetter-browser/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ test-results/
package-lock.json
.svelte-kit/

rust_backend/Cargo.lock
rust_backend/target/
14 changes: 12 additions & 2 deletions popgetter-browser/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# My new web app!
# Popgetter-browser

This is a simple web app that I have created using the UATP template.
A web interface for the Popgetter project ([popgetter (data)](https://www.github.com/Urban-Analytics-Technology-Platform/popgetter), [popgetter (CLI, library, Python)](https://github.com/Urban-Analytics-Technology-Platform/popgetter-cli)).

## Quickstart
- Install [Rust](https://doc.rust-lang.org/book/ch01-01-installation.html) (Minimum Supported Version: 1.80)
- Install [pnpm](https://pnpm.io/installation)
- Run:
```shell
cd web
pnpm rust
pnpm dev
```
Loading
Loading