Skip to content

Commit 92f39d7

Browse files
committed
[feat] Fix up sidebar to match best practices
1 parent 058e27d commit 92f39d7

27 files changed

Lines changed: 123 additions & 106 deletions

app/bug_explorer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
from app.utils.github_utils import get_all_github_issues
1010

11-
st.set_page_config(page_title="Bug Prioritization", page_icon="🐛", layout="wide")
11+
st.set_page_config(page_title="Bug prioritization", page_icon="🐛", layout="wide")
1212

1313
title_row = st.container(horizontal=True, horizontal_alignment="distribute", vertical_alignment="center")
1414
with title_row:
15-
st.title("🐛 Bug Prioritization")
15+
st.title("🐛 Bug prioritization")
1616
if st.button(":material/refresh: Refresh Data", type="tertiary"):
1717
get_all_github_issues.clear()
1818

app/company_requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
from app.utils.github_utils import get_headers, get_issue_comments, get_issue_data
1010

1111
st.set_page_config(
12-
page_title="Company Requests",
12+
page_title="Company requests",
1313
page_icon="🏢",
1414
)
1515

16-
st.title("🏢 Company Requests")
16+
st.title("🏢 Company requests")
1717
st.caption("Analyze which companies engaged with a GitHub issue through reactions and comments.")
1818

1919
# Input field

app/flaky_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
fetch_workflow_runs_ids,
1515
)
1616

17-
st.set_page_config(page_title="Flaky Tests", page_icon="🧫")
17+
st.set_page_config(page_title="Flaky tests", page_icon="🧫")
1818

1919
title_row = st.container(horizontal=True, horizontal_alignment="distribute", vertical_alignment="center")
2020
with title_row:
21-
st.title("🧫 Flaky Tests")
21+
st.title("🧫 Flaky tests")
2222
if st.button(":material/refresh: Refresh Data", type="tertiary"):
2323
fetch_workflow_runs.clear()
2424

app/frontend_bundle_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
fetch_workflow_runs_for_commit,
1919
)
2020

21-
st.set_page_config(page_title="Frontend Bundle Analysis", page_icon="📦", layout="wide")
21+
st.set_page_config(page_title="Frontend bundle analysis", page_icon="📦", layout="wide")
2222

2323
title_row = st.container(horizontal=True, horizontal_alignment="distribute", vertical_alignment="center")
2424
with title_row:
25-
st.title("📦 Frontend Bundle Analysis")
25+
st.title("📦 Frontend bundle analysis")
2626
if st.button(":material/refresh: Refresh Data", type="tertiary"):
2727
fetch_workflow_runs.clear()
2828

app/github_stats.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
# Define the repo URL
2020
GITHUB_REPO = "streamlit/streamlit"
2121

22+
st.set_page_config(page_title="GitHub stats", page_icon="📊", layout="wide")
23+
2224
REACTION_EMOJI = {
2325
"+1": "👍",
2426
"-1": "👎",
@@ -97,7 +99,7 @@ def fetch_pr_metrics(merged_since: date) -> pd.DataFrame:
9799

98100
title_row = st.container(horizontal=True, horizontal_alignment="distribute", vertical_alignment="center")
99101
with title_row:
100-
st.title("📊 GitHub Stats")
102+
st.title("📊 GitHub stats")
101103
if st.button(":material/refresh: Refresh Data", type="tertiary"):
102104
get_git_fame_stats.clear()
103105
fetch_pr_metrics.clear()

app/interrupt_rotation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
)
2222

2323
# Set page configuration
24-
st.set_page_config(page_title="Interrupt Rotation - Dashboard", page_icon="🩺", layout="wide")
24+
st.set_page_config(page_title="Interrupt rotation", page_icon="🩺", layout="wide")
2525

2626
# Main app
27-
st.title("🩺 Interrupt Rotation - Dashboard")
27+
st.title("🩺 Interrupt rotation")
2828
st.caption("This dashboard provides an overview of repository health and areas that require attention.")
2929

3030
st.session_state.setdefault("interrupt_refresh_nonce", 0)

app/issue_explorer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from app.utils.github_utils import get_issue_data
99

10-
st.set_page_config(page_title="Streamlit Issue", page_icon="🚧")
11-
st.title("🚧 Streamlit Issues")
10+
st.set_page_config(page_title="Issue explorer", page_icon="🚧")
11+
st.title("🚧 Issue explorer")
1212

1313
st.caption(
1414
f"""

app/issue_reactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
PATH_TO_ISSUES = pathlib.Path(PATH_OF_SCRIPT).parent.joinpath(DEFAULT_ISSUES_FOLDER).resolve()
1515

1616
st.set_page_config(
17-
page_title="Issue Reactions",
17+
page_title="Issue reactions",
1818
page_icon="👍",
1919
)
2020

2121
title_row = st.container(horizontal=True, horizontal_alignment="distribute", vertical_alignment="center")
2222
with title_row:
23-
st.title("🫶 Issue Reactions")
23+
st.title("🫶 Issue reactions")
2424
if st.button(":material/refresh: Refresh Data", type="tertiary"):
2525
get_all_github_issues.clear()
2626
st.caption("This page analyzes user reactions on Github issues (emoji reaction or comment).")

app/open_issues.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
PATH_TO_ISSUES = pathlib.Path(PATH_OF_SCRIPT).parent.joinpath(DEFAULT_ISSUES_FOLDER).resolve()
1818

1919
st.set_page_config(
20-
page_title="Open Issues",
20+
page_title="Open issues",
2121
page_icon="🗃",
2222
initial_sidebar_state="collapsed",
2323
)
24+
st.title("🗃 Open issues")
2425

2526

2627
GROWTH_PERIODS = {

app/perf/lighthouse_interpreting_results.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import streamlit as st
22

3-
TITLE = "Interpreting Lighthouse Results"
3+
TITLE = "Interpreting Lighthouse results"
44

55
DOCS_1 = """
66
## What is Lighthouse?
@@ -72,8 +72,8 @@ def render_interpreting_results() -> None:
7272

7373

7474
def _standalone() -> None:
75-
st.set_page_config(page_title=f"Streamlit Performance - {TITLE}")
76-
st.header(f"Streamlit Performance - {TITLE}")
75+
st.set_page_config(page_title=TITLE)
76+
st.header(TITLE)
7777
render_interpreting_results()
7878

7979

0 commit comments

Comments
 (0)