mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
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:
parent
b9556b9ded
commit
4800f35c5c
4 changed files with 1855 additions and 4 deletions
2
.codeflash/standups/.gitignore
vendored
2
.codeflash/standups/.gitignore
vendored
|
|
@ -1 +1 @@
|
|||
data.json
|
||||
__pycache__/
|
||||
|
|
|
|||
|
|
@ -77,14 +77,20 @@ def _notes_changed() -> bool:
|
|||
|
||||
|
||||
def load_data() -> dict:
|
||||
from generate import main as regenerate
|
||||
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"))
|
||||
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:
|
||||
|
|
|
|||
1840
.codeflash/standups/data.json
Normal file
1840
.codeflash/standups/data.json
Normal file
File diff suppressed because it is too large
Load diff
5
.codeflash/standups/plotly-cloud.toml
Normal file
5
.codeflash/standups/plotly-cloud.toml
Normal 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"
|
||||
Loading…
Reference in a new issue