Skip to content

Commit 45975ef

Browse files
agt24claude
andcommitted
Add Journal preset, update funder aliases, and UI improvements
- Add Journal Preset dropdown (Top 5 by count + percent, Top 10 by count, Top 10 by percent) - Update funder aliases from v3 to v4 - Add percent sign to mouseover text for percent metrics - Add page title and description with links to repos - Disable Country filtering (temporarily, ~25% coverage) - Update Aggregation menu labels for clarity - Sort Journal/Funder dropdowns by Data Sharing % - Display Data Sharing % in dropdown labels - Update parquet file to dashboard_20251211-1738.parquet 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d7de899 commit 45975ef

File tree

5 files changed

+363
-185
lines changed

5 files changed

+363
-185
lines changed

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
# only build if the image tag doesn't exist
7070
if: steps.check-image-tag.outputs.found_tag == 1
7171
run: |
72-
aws s3 cp s3://osm-terraform-storage/dashboard_data/dashboard_20251210-1207.parquet dashboard_data/matches.parquet
72+
aws s3 cp s3://osm-terraform-storage/dashboard_data/dashboard_20251211-1738.parquet dashboard_data/matches.parquet
7373
7474
7575
- name: Build and push Docker image

CLAUDE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,38 @@ CI/CD workflows in `.github/workflows/`:
118118
3. XML → RTransparent → 190+ transparency metrics
119119
4. Results → local JSON + OSM API (MongoDB)
120120
5. Dashboard queries MongoDB for visualization
121+
122+
## Dashboard
123+
124+
The Streamlit dashboard (`web/dashboard/streamlit_app.py`) visualizes open science metrics.
125+
126+
### Local Testing
127+
128+
```bash
129+
# Use Python 3.11 venv (matches production Dockerfile)
130+
source ~/claude/venv/bin/activate
131+
132+
# Run with local parquet file
133+
LOCAL_DATA_PATH=/path/to/dashboard.parquet \
134+
streamlit run web/dashboard/streamlit_app.py --server.port 8501 --server.headless true
135+
```
136+
137+
### Updating Dashboard Data
138+
139+
1. Upload new parquet file to S3: `s3://osm-terraform-storage/dashboard_data/`
140+
2. Update `.github/workflows/build-docker.yml` line 72 with new filename
141+
3. Commit, push, create PR, merge
142+
4. Trigger deployment: `gh workflow run deploy-docker.yml -f development-environment=staging`
143+
144+
Or use the automation script: `./scripts/refresh_dashboard.sh dashboard_YYMMDD-HHMM.parquet`
145+
146+
### Dashboard Reference Files
147+
148+
- `web/dashboard/data/funder_aliases_v3.csv` - Funder to country mappings (loaded dynamically)
149+
150+
### Key Dashboard Features
151+
152+
- **Splitting variables**: Affiliation Country, Funder (Journal disabled for performance)
153+
- **Default funders**: Top 5 by Data Sharing % + top 5 by Data Sharing count
154+
- **Default year range**: 2010-2024
155+
- **Funder legend**: Shows country in parenthesis (e.g., "NIH (USA)")

web/dashboard/data/funder_aliases_v3.csv

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)