|
| 1 | +import streamlit as st |
| 2 | + |
| 3 | +# Initial page configuration |
| 4 | +st.set_page_config( |
| 5 | + page_title="ScanAPI Community Dashboard", |
| 6 | + page_icon="🚀", |
| 7 | + layout="wide", |
| 8 | + initial_sidebar_state="expanded", |
| 9 | +) |
| 10 | + |
| 11 | +# Main Dashboard Title |
| 12 | +st.title("🚀 ScanAPI Community Dashboard") |
| 13 | +st.markdown( |
| 14 | + "Welcome to the community health and velocity dashboard. " |
| 15 | + "This tool monitors ecosystem contributions, project metrics, " |
| 16 | + "and generates social assets." |
| 17 | +) |
| 18 | + |
| 19 | +st.divider() |
| 20 | + |
| 21 | +# Navigation Tabs Creation (Mapping the next project features) |
| 22 | +tab_onboarding, tab_leaderboard, tab_trends, tab_marketing = st.tabs( |
| 23 | + [ |
| 24 | + "📥 Contributor Onboarding", |
| 25 | + "🏆 Wall of Fame & Leaderboard", |
| 26 | + "📈 Issue Trend Analytics", |
| 27 | + "📱 Social Media Assets", |
| 28 | + ] |
| 29 | +) |
| 30 | + |
| 31 | +# TAB CONTENT (Initial boilerplates) |
| 32 | + |
| 33 | +with tab_onboarding: |
| 34 | + st.header("Contributor Onboarding Hub") |
| 35 | + st.subheader("Lowering the barrier to entry") |
| 36 | + st.info( |
| 37 | + "Feature incoming: Dynamic aggregation of " |
| 38 | + "'good first issue' and 'help wanted' labels." |
| 39 | + ) |
| 40 | + |
| 41 | + # Visual example of metric cards (TTFR and TTM) |
| 42 | + col1, col2 = st.columns(2) |
| 43 | + with col1: |
| 44 | + st.metric( |
| 45 | + label="Avg Time-to-First-Response (TTFR)", |
| 46 | + value="⏳ Loading...", |
| 47 | + delta="Target: < 24h", |
| 48 | + ) |
| 49 | + with col2: |
| 50 | + st.metric( |
| 51 | + label="Avg Time-to-Merge (TTM)", |
| 52 | + value="⏳ Loading...", |
| 53 | + delta="Target: < 48h", |
| 54 | + ) |
| 55 | + |
| 56 | +with tab_leaderboard: |
| 57 | + st.header("Community Wall of Fame") |
| 58 | + st.subheader("Celebrating our active contributors") |
| 59 | + st.info( |
| 60 | + "Feature incoming: Interactive leaderboard ranking " |
| 61 | + "active contributors and PR authors." |
| 62 | + ) |
| 63 | + |
| 64 | +with tab_trends: |
| 65 | + st.header("Advanced Issue Trend Analysis") |
| 66 | + st.subheader("Project resolution velocity over time") |
| 67 | + st.info( |
| 68 | + "Feature incoming: Interactive time-series charts " |
| 69 | + "tracking issue activity grouped by labels." |
| 70 | + ) |
| 71 | + |
| 72 | +with tab_marketing: |
| 73 | + st.header("Social Media Helper & Automation") |
| 74 | + st.subheader("Empowering community advocates") |
| 75 | + st.info( |
| 76 | + "Feature incoming: Automated text templates and dynamic " |
| 77 | + "'Contributor of the Week' image generators." |
| 78 | + ) |
| 79 | + |
| 80 | +# Minimalist Sidebar Footer |
| 81 | +st.sidebar.markdown("---") |
| 82 | +st.sidebar.markdown("💡 **ScanAPI Ecosystem**") |
| 83 | +st.sidebar.markdown("[Main Repository](https://github.com/scanapi/scanapi)") |
0 commit comments