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

Techsoup dc website customizations #2783

Draft
wants to merge 100 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
39fe76e
Initial custom dc config
caravansteve Apr 16, 2023
ebacf7e
WIP - issue landing page and topic page for food sec
caravansteve May 5, 2023
c7ac2a1
Food sec topic page WIP
caravansteve May 7, 2023
b8f5952
Food sec landing page WIP
caravansteve May 7, 2023
7b34956
initial site structure and landing page content
caravansteve May 8, 2023
f5bad76
Update callout heading
caravansteve May 8, 2023
bd4d138
Merge branch 'master' into sync_from_master_20230531
caravansteve May 31, 2023
a4ddae3
Merge pull request #2 from CaravanStudios/master
caravansteve Jun 1, 2023
3d59df8
Update ts deployment config
caravansteve Jun 1, 2023
844bcd5
Merge pull request #4 from CaravanStudios/sync_from_master_20230531
caravansteve Jun 6, 2023
adb05ce
Merge pull request #5 from CaravanStudios/master
caravansteve Jun 6, 2023
6745233
Update env
caravansteve Jun 6, 2023
547203f
updated mixer
caravansteve Jun 7, 2023
e6ef5f0
add ts served np import
caravansteve Jul 11, 2023
d4325e3
Merge pull request #9 from CaravanStudios/sync_from_master_20230531
caravansteve Jul 11, 2023
d9d3810
DC2.1 WIP
caravansteve Jul 14, 2023
5576e55
DC2.1 topic demo wip
caravansteve Jul 17, 2023
d41f32d
Draft DC2 topic pages
caravansteve Aug 2, 2023
8bc51b1
Merge pull request #10 from CaravanStudios/dc2-topic-pages
caravansteve Aug 2, 2023
6bca525
Updating git hash
caravansteve Aug 2, 2023
63abbe5
Merge branch 'master' into sync_from_master_20230802_2
caravansteve Aug 3, 2023
f0e716e
Merge pull request #14 from CaravanStudios/sync_from_master_20230802_2
caravansteve Aug 3, 2023
0270bc0
Support markdown on DESCRIPTION tiles
caravansteve Aug 7, 2023
d32879a
DC2_4 initial scaffolding
caravansteve Aug 7, 2023
a246bf5
Read in DC2.4 config
caravansteve Aug 7, 2023
d981592
Add state drill down
caravansteve Aug 8, 2023
7d6bd63
Draft categories 2 and 3
caravansteve Aug 9, 2023
d6337e4
Draft category 3
caravansteve Aug 9, 2023
ed58ccb
Update git hash
caravansteve Aug 9, 2023
ee84e90
Merge pull request #16 from CaravanStudios/topicpage_enhancements
caravansteve Aug 9, 2023
512fa30
Add devcontainer for codespaces
caravansteve Aug 9, 2023
e07818a
Fix issue with COL map not showing on topic page
caravansteve Aug 16, 2023
d718ffd
Updated DC2.1 topic page
caravansteve Aug 19, 2023
be08568
Merge pull request #21 from CaravanStudios/topicpage_enhancements
caravansteve Aug 19, 2023
bf45973
Update git hash
caravansteve Aug 23, 2023
27732f6
Add search bar and child places to topic page
caravansteve Aug 23, 2023
50654ac
Update DC2_2 topic page
caravansteve Aug 23, 2023
53c9f98
Update DC2.4 topic page
caravansteve Aug 23, 2023
a0b6344
Remove date from highlight tile
caravansteve Aug 24, 2023
a07c52a
DC2_1 updates
caravansteve Aug 24, 2023
1679907
DC2_1 changes
caravansteve Aug 24, 2023
f71ae83
git hash update
caravansteve Aug 24, 2023
b934003
Remove block title from water withdrawal block
caravansteve Aug 24, 2023
4cbff41
inital dc2_5 all vars page
caravansteve Aug 25, 2023
705d284
show child places
caravansteve Aug 25, 2023
a4a589b
Updates to colombia file
caseylivingood Aug 25, 2023
0683306
Show all child places and sort by name
caravansteve Aug 25, 2023
1838055
Merge branch 'topicpage_enhancements' of https://github.com/CaravanSt…
caravansteve Aug 25, 2023
bec9b94
Updates to food security page
caseylivingood Aug 25, 2023
d6d80b0
Update autocomplete style and limit to US for now
caravansteve Aug 26, 2023
3bc01eb
Merge branch 'topicpage_enhancements' of https://github.com/CaravanSt…
caravansteve Aug 26, 2023
cc69d5a
move dc2_4 to foodsecurity
caravansteve Aug 26, 2023
7b602ff
DC2_5 initial topic page
caravansteve Aug 27, 2023
74368bd
add footer links
caravansteve Aug 27, 2023
a4e2077
Updates to colombian topic page
caseylivingood Aug 28, 2023
0c30c9c
Updates to US food security topic page
caseylivingood Aug 28, 2023
8b89a5f
Updated climate topic page
caravansteve Aug 29, 2023
26fc036
remove extra space
caravansteve Aug 29, 2023
14a8167
Updated dc2_2 topic page
caravansteve Aug 29, 2023
a3d4d97
Update git hash
caravansteve Aug 29, 2023
2b6cac9
updated css
caravansteve Aug 29, 2023
c8c03f7
Climate topic page updates
caravansteve Aug 29, 2023
1a6bcce
Updated poverty line mentions on food topic page
caseylivingood Aug 29, 2023
1b2f2ac
Merge branch 'topicpage_enhancements' of https://github.com/CaravanSt…
caravansteve Aug 29, 2023
e829384
minor copyedits
caravansteve Aug 31, 2023
6999e0a
climate landing page initial commit
caravansteve Aug 31, 2023
3e57223
git commit hash
caravansteve Aug 31, 2023
9386976
Add GTM script
caravansteve Aug 31, 2023
bdc2cfc
minor copyedits
caravansteve Aug 31, 2023
8a1065b
Couple more copyedits
caravansteve Aug 31, 2023
7b468e9
Content updates to the Nigeria topic page
caseylivingood Aug 31, 2023
14ebfc1
Home page and landing page updates
caravansteve Sep 1, 2023
bf61a34
minor content update
caravansteve Sep 1, 2023
e771774
change donate cta
caravansteve Sep 1, 2023
2a342e0
Add Place explorer to header
caravansteve Sep 1, 2023
ce88316
minor updates
caravansteve Sep 1, 2023
8ad2655
Minor copyedits
caravansteve Sep 1, 2023
75aad0f
change the order of stories
caravansteve Sep 1, 2023
cd72d88
Small update to food security topic page
caseylivingood Sep 2, 2023
255b0f9
Don't show the story section for now
caravansteve Sep 2, 2023
d24451f
Merge branch 'topicpage_enhancements' of https://github.com/CaravanSt…
caravansteve Sep 2, 2023
53b0211
Fixed a typo
caravansteve Sep 2, 2023
dd04f85
Commenting out the final block for now
caravansteve Sep 2, 2023
4f154de
A few styling updates
caravansteve Sep 4, 2023
ebe9c9a
set height of banner images
caravansteve Sep 4, 2023
ec8aed7
Remove American Samoa from US places
caravansteve Sep 4, 2023
9fb5ff7
Don't reload configs on every page load in prod
caravansteve Sep 5, 2023
dcec248
Support drill down to city level
caravansteve Sep 5, 2023
2e07e3e
git hash
caravansteve Sep 5, 2023
2bab294
Change place autocomplete placeholder text
caravansteve Sep 5, 2023
ab436ac
City drill down for climate page
caravansteve Sep 5, 2023
997d73e
Updated food topic page ai footer note
caseylivingood Sep 5, 2023
7591a8c
small update to food security topic page ai note
caseylivingood Sep 5, 2023
e33c531
Updated footer for topic pages
caseylivingood Sep 12, 2023
bdf5b7c
Update homepage story links
caravansteve Sep 12, 2023
9d68d9f
Merge pull request #27 from CaravanStudios/topicpage_enhancements
caravansteve Sep 24, 2023
179650a
Add NGA story to homepage
caravansteve Sep 25, 2023
1aa51df
Add debug logging for missing visualizations
caravansteve Sep 25, 2023
5d69d34
Fix for disappearing charts
caravansteve Sep 25, 2023
4c6233a
Merge pull request #28 from CaravanStudios/topicpage_enhancements
caravansteve Sep 25, 2023
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
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"features": {
"ghcr.io/devcontainers/features/node:1": { "version": "18.4.0" },
"ghcr.io/devcontainers-contrib/features/protoc:1": {},
"ghcr.io/dhoeric/features/google-cloud-cli:1": {}

}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

1 change: 1 addition & 0 deletions deploy/git/mixer_hash.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5af6f16
1 change: 1 addition & 0 deletions deploy/git/website_hash.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c7ac2a1
25 changes: 25 additions & 0 deletions deploy/gke/techsoup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# This is a yaml template to create gcp/gke configuration.
# Copy this file to `config.yaml` and use that.
project: techsoup-data-commons
ip: 34.111.225.45
domain: datacommons.techsoup.org
region:
primary: us-central1
others:
nodes: 1

9 changes: 6 additions & 3 deletions deploy/helm_charts/envs/techsoup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace:
website:
image:
project: techsoup-data-commons
tag: f5bad76
tag: 1aa51df
flaskEnv: custom
replicas: 1

Expand Down Expand Up @@ -56,9 +56,12 @@ kgStoreConfig:
project: techsoup-data-commons
instance: dc-graph
tables:
- freemeals_2023_04_11_14_09_49
- mealsites_2023_05_25_20_51_17
- mealsites_places_exp_2023_06_02_18_41_11
- usda_grocery_access_2023_05_22_11_28_04
- fea_grocery_access_2023_06_01_18_49_10
- fea_store_availabili_2023_06_06_12_25_22
- irs_registered_nonpr_2023_06_07_11_02_15
- techsoup_served_nonp_2023_06_07_13_27_15

svg:
blocklistFile: ["dc/g/Uncategorized", "oecd/g/OECD"]
3 changes: 2 additions & 1 deletion server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def register_routes_base_dc(app):

def register_routes_custom_dc(app):
## apply the blueprints for custom dc instances
pass
from server.routes import ts_issue_landing
app.register_blueprint(ts_issue_landing.bp)


def register_routes_disasters(app):
Expand Down
10 changes: 5 additions & 5 deletions server/app_env/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@

class Config(_base.Config):
CUSTOM = True
NAME = "Custom Data Commons"
NAME = "Data Commons for Civil Society"
OVERRIDE_CSS_PATH = '/custom_dc/custom/overrides.css'
LOGO_PATH = "/custom_dc/custom/logo.png"
LOGO_PATH = "/custom_dc/custom/techsoup-logo.svg"
SHOW_DISASTER = False


class LocalConfig(Config, local.Config):
LITE = True
#LITE = True
API_ROOT = 'https://api.datacommons.org'
# NEED TO DO THE FOLLOWING CHANGES:
# 1. Send an email to <[email protected]> to get an API key
# for Data Commons API.
# 2. In the custom GCP project, store the API key in secret manager
# `printf "<API_KEY>" | gcloud secrets create mixer-api-key --data-file=-`
# 3. Update SECRET_PROJECT to be the custom GCP project id.
SECRET_PROJECT = ''
SECRET_PROJECT = 'techsoup-data-commons'


class ComposeConfig(Config, local.Config):
pass
pass
287 changes: 287 additions & 0 deletions server/config/topic_page/climate/USA.textproto

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions server/config/topic_page/climate_allvars/USA.textproto

Large diffs are not rendered by default.

Loading