Add ReputationRadar community contribution (demo replaced by link)

This commit is contained in:
Parth Verma
2025-10-22 15:30:00 +05:30
parent 9b84cc62c0
commit a3ee215468
22 changed files with 1794 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
"""Loading indicators and status helpers."""
from __future__ import annotations
from contextlib import contextmanager
from typing import Iterator
import streamlit as st
@contextmanager
def source_status(label: str) -> Iterator[st.delta_generator.DeltaGenerator]:
"""Context manager that yields a status widget for source fetching."""
status = st.status(label, expanded=True)
try:
yield status
status.update(label=f"{label}", state="complete")
except Exception as exc: # noqa: BLE001
status.update(label=f"{label} ⚠️ {exc}", state="error")
raise
def show_empty_state(message: str) -> None:
"""Render a friendly empty-state callout."""
st.info(message, icon="🔎")