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 5bf9b2e..d061910 100644 Binary files a/__pycache__/nasa_data.cpython-312.pyc and b/__pycache__/nasa_data.cpython-312.pyc differ diff --git a/__pycache__/test_api_status.cpython-312-pytest-9.0.2.pyc b/__pycache__/test_api_status.cpython-312-pytest-9.0.2.pyc index 86b2b16..2d93470 100644 Binary files a/__pycache__/test_api_status.cpython-312-pytest-9.0.2.pyc and b/__pycache__/test_api_status.cpython-312-pytest-9.0.2.pyc differ diff --git a/__pycache__/test_nasa_data.cpython-312-pytest-9.0.2.pyc b/__pycache__/test_nasa_data.cpython-312-pytest-9.0.2.pyc index 6e3fb84..748724a 100644 Binary files a/__pycache__/test_nasa_data.cpython-312-pytest-9.0.2.pyc and b/__pycache__/test_nasa_data.cpython-312-pytest-9.0.2.pyc differ diff --git a/app.py b/app.py index 253b607..d1c5fb9 100644 --- a/app.py +++ b/app.py @@ -287,7 +287,7 @@ # Add topography decoration st.markdown("""
- +
""".format(topo_base64=b64encode(open("assets/topography.png", "rb").read()).decode()), unsafe_allow_html=True) @@ -559,7 +559,7 @@ st.markdown(f"""
- CeCe Avatar 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'Climate Copilot Logo' st.markdown(f"""