From 04d3ecf49c31442b6723245e3965157d04af70c1 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sun, 1 Feb 2026 01:10:45 +0000
Subject: [PATCH] Improve image accessibility by adding alt attributes
Co-authored-by: cmonteverde <83616016+cmonteverde@users.noreply.github.com>
---
.Jules/palette.md | 4 ++++
.gitignore | 5 +++++
__pycache__/nasa_data.cpython-312.pyc | Bin 18004 -> 18004 bytes
...st_api_status.cpython-312-pytest-9.0.2.pyc | Bin 3321 -> 3321 bytes
...est_nasa_data.cpython-312-pytest-9.0.2.pyc | Bin 2398 -> 2398 bytes
app.py | 4 ++--
satellite_homepage.py | 2 +-
7 files changed, 12 insertions(+), 3 deletions(-)
create mode 100644 .gitignore
diff --git a/.Jules/palette.md b/.Jules/palette.md
index a237026..a2f4ab1 100644
--- a/.Jules/palette.md
+++ b/.Jules/palette.md
@@ -3,3 +3,7 @@
## 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-21 - [Image Accessibility]
+**Learning:** Images embedded via raw HTML in Streamlit (using `st.markdown`) often lack `alt` attributes, making them inaccessible to screen readers.
+**Action:** Always add `alt` attributes to `
` tags in raw HTML, using empty strings (`alt=""`) for decorative images and descriptive text for informative ones.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..22a5c1e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+__pycache__/
+*.pyc
+.venv/
+.pytest_cache/
+.DS_Store
diff --git a/__pycache__/nasa_data.cpython-312.pyc b/__pycache__/nasa_data.cpython-312.pyc
index 5bf9b2e0248a1840f770d7292bfab374d733da07..d06191053bdffff4819f21d439e090ed3bac6b25 100644
GIT binary patch
delta 24
ecmcc8!+52Kk@qw&FBbz4tXo=_X}pow-3
-
+
""".format(topo_base64=b64encode(open("assets/topography.png", "rb").read()).decode()), unsafe_allow_html=True)
@@ -559,7 +559,7 @@
st.markdown(f"""
-
CECE: YOUR CLIMATE & WEATHER AGENT
diff --git a/satellite_homepage.py b/satellite_homepage.py
index a58dbc9..6fe7de2 100644
--- a/satellite_homepage.py
+++ b/satellite_homepage.py
@@ -312,7 +312,7 @@ def create_satellite_homepage():
# Build a mock screenshot of the main interface elements
preview_logo = ""
if logo_base64:
- preview_logo = f'
'
+ preview_logo = f'
'
st.markdown(f"""