diff --git a/.Jules/palette.md b/.Jules/palette.md index a237026..41b6b4e 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -3,3 +3,11 @@ ## 2025-05-20 - [Accessible Streamlit Inputs] **Learning:** Streamlit `text_input` fields with empty strings for labels (`""`) are inaccessible to screen readers as they lack a programmatic label. **Action:** Use `label_visibility="collapsed"` with a descriptive label string instead of an empty label to maintain visual design while ensuring accessibility. + +## 2025-05-22 - [Accessible Decorative SVGs] +**Learning:** Raw SVG strings injected via `st.markdown` are treated as content by screen readers, often leading to verbose and confusing announcements of path data if not properly labeled. +**Action:** Always add `role="img"` and `aria-hidden="true"` (for decorative icons) or `aria-label` (for informative icons) to `` tags used in Streamlit markdown. + +## 2025-05-22 - [Hiding Mock UIs] +**Learning:** Visual teasers or "mock" UI elements (like blurred previews of the app) can be extremely confusing for screen reader users if they contain readable text that is not interactive or relevant. +**Action:** Use `aria-hidden="true"` on the container of any visual-only mock UI or decorative preview to completely hide it from assistive technologies. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fde2a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +__pycache__/ +*.pyc +.venv/ +.streamlit/ +streamlit.log +*.png +verification/ diff --git a/__pycache__/animated_earth.cpython-312.pyc b/__pycache__/animated_earth.cpython-312.pyc new file mode 100644 index 0000000..1c154ce Binary files /dev/null and b/__pycache__/animated_earth.cpython-312.pyc differ diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc new file mode 100644 index 0000000..b712ce6 Binary files /dev/null and b/__pycache__/app.cpython-312.pyc differ diff --git a/__pycache__/climate_algorithms.cpython-312.pyc b/__pycache__/climate_algorithms.cpython-312.pyc new file mode 100644 index 0000000..6ba34b4 Binary files /dev/null and b/__pycache__/climate_algorithms.cpython-312.pyc differ diff --git a/__pycache__/climate_resilience.cpython-312.pyc b/__pycache__/climate_resilience.cpython-312.pyc new file mode 100644 index 0000000..66f05f8 Binary files /dev/null and b/__pycache__/climate_resilience.cpython-312.pyc differ diff --git a/__pycache__/embedded_earth_nullschool.cpython-312.pyc b/__pycache__/embedded_earth_nullschool.cpython-312.pyc new file mode 100644 index 0000000..65b57b3 Binary files /dev/null and b/__pycache__/embedded_earth_nullschool.cpython-312.pyc differ diff --git a/__pycache__/embedded_felt_map.cpython-312.pyc b/__pycache__/embedded_felt_map.cpython-312.pyc new file mode 100644 index 0000000..826441d Binary files /dev/null and b/__pycache__/embedded_felt_map.cpython-312.pyc differ diff --git a/__pycache__/felt_inspired_maps.cpython-312.pyc b/__pycache__/felt_inspired_maps.cpython-312.pyc new file mode 100644 index 0000000..6fcf1e0 Binary files /dev/null and b/__pycache__/felt_inspired_maps.cpython-312.pyc differ diff --git a/__pycache__/felt_map_demo.cpython-312.pyc b/__pycache__/felt_map_demo.cpython-312.pyc new file mode 100644 index 0000000..2847a54 Binary files /dev/null and b/__pycache__/felt_map_demo.cpython-312.pyc differ diff --git a/__pycache__/globe_map.cpython-312.pyc b/__pycache__/globe_map.cpython-312.pyc new file mode 100644 index 0000000..24c7800 Binary files /dev/null and b/__pycache__/globe_map.cpython-312.pyc differ diff --git a/__pycache__/interactive_contour_map.cpython-312.pyc b/__pycache__/interactive_contour_map.cpython-312.pyc new file mode 100644 index 0000000..6803967 Binary files /dev/null and b/__pycache__/interactive_contour_map.cpython-312.pyc differ diff --git a/__pycache__/load_docs.cpython-312.pyc b/__pycache__/load_docs.cpython-312.pyc new file mode 100644 index 0000000..739caa7 Binary files /dev/null and b/__pycache__/load_docs.cpython-312.pyc differ diff --git a/__pycache__/nasa_data.cpython-312.pyc b/__pycache__/nasa_data.cpython-312.pyc index 5bf9b2e..f07d258 100644 Binary files a/__pycache__/nasa_data.cpython-312.pyc and b/__pycache__/nasa_data.cpython-312.pyc differ diff --git a/__pycache__/nasa_ee_elevation.cpython-312.pyc b/__pycache__/nasa_ee_elevation.cpython-312.pyc new file mode 100644 index 0000000..d54a559 Binary files /dev/null and b/__pycache__/nasa_ee_elevation.cpython-312.pyc differ diff --git a/__pycache__/noaa_nws.cpython-312.pyc b/__pycache__/noaa_nws.cpython-312.pyc new file mode 100644 index 0000000..f948499 Binary files /dev/null and b/__pycache__/noaa_nws.cpython-312.pyc differ diff --git a/__pycache__/openai_helper.cpython-312.pyc b/__pycache__/openai_helper.cpython-312.pyc new file mode 100644 index 0000000..cb39ab5 Binary files /dev/null and b/__pycache__/openai_helper.cpython-312.pyc differ diff --git a/__pycache__/satellite_homepage.cpython-312.pyc b/__pycache__/satellite_homepage.cpython-312.pyc new file mode 100644 index 0000000..5c1532d Binary files /dev/null and b/__pycache__/satellite_homepage.cpython-312.pyc differ diff --git a/__pycache__/simple_artistic_map_demo.cpython-312.pyc b/__pycache__/simple_artistic_map_demo.cpython-312.pyc new file mode 100644 index 0000000..9b6bc84 Binary files /dev/null and b/__pycache__/simple_artistic_map_demo.cpython-312.pyc differ diff --git a/__pycache__/simple_artistic_maps.cpython-312.pyc b/__pycache__/simple_artistic_maps.cpython-312.pyc new file mode 100644 index 0000000..d0d116a Binary files /dev/null and b/__pycache__/simple_artistic_maps.cpython-312.pyc differ diff --git a/__pycache__/srtm_elevation.cpython-312.pyc b/__pycache__/srtm_elevation.cpython-312.pyc new file mode 100644 index 0000000..56f3a87 Binary files /dev/null and b/__pycache__/srtm_elevation.cpython-312.pyc differ diff --git a/__pycache__/test_api_status.cpython-312.pyc b/__pycache__/test_api_status.cpython-312.pyc new file mode 100644 index 0000000..86d484b Binary files /dev/null and b/__pycache__/test_api_status.cpython-312.pyc differ diff --git a/app.py b/app.py index 253b607..c94997d 100644 --- a/app.py +++ b/app.py @@ -639,7 +639,7 @@ # Generate SVG icons for each industry industry_icons = { - "aerospace": """ + "aerospace": """""", - "agriculture": """ + "agriculture": """""", - "energy": """ + "energy": """""", - "insurance": """ + "insurance": """""", - "forestry": """ + "forestry": """""", - "catastrophes": """ + "catastrophes": """
-