fix: make standup dashboard deployable to Plotly Cloud

- Add server = app.server for WSGI/Gunicorn discovery
- Commit data.json so deploy doesn't need gh CLI or GitHub token
- Make load_data() resilient when generate.py can't reach GitHub
- Add plotly-cloud.toml config
This commit is contained in:
Kevin Turcios 2026-04-23 16:15:11 -05:00
parent b9556b9ded
commit 4800f35c5c
4 changed files with 1855 additions and 4 deletions

View file

@ -1 +1 @@
data.json
__pycache__/

View file

@ -77,14 +77,20 @@ def _notes_changed() -> bool:
def load_data() -> dict:
if DATA_FILE.exists():
return json.loads(DATA_FILE.read_text(encoding="utf-8"))
try:
from generate import main as regenerate
regenerate()
return json.loads(DATA_FILE.read_text(encoding="utf-8"))
except Exception:
return {}
app = Dash(__name__)
app.title = "Codeflash Weekly Eng Meeting"
server = app.server
def hero_card(label: str, value: str | int, color: str = ACCENT) -> html.Div:

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,5 @@
name = "preliminary weekly eng meeting"
app_id = "2831a881-092f-48d7-957a-7f0a582ec045"
app_url = ""
team_id = "8f15f7b6-beb0-4337-a247-5db6c5102a3f"
team_name = "Codeflash"