@danhachuel/thunderbolt 0.2.97 → 0.2.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/main.py +11 -3
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -2836,7 +2836,7 @@ def render_automation():
|
|
|
2836
2836
|
st.info("Ainda não existem vídeos cadastrados.")
|
|
2837
2837
|
for task in tasks:
|
|
2838
2838
|
with st.container(border=True):
|
|
2839
|
-
task_cols = st.columns([2.
|
|
2839
|
+
task_cols = st.columns([2.45, 1.15, 1.15, 1.85])
|
|
2840
2840
|
with task_cols[0]:
|
|
2841
2841
|
st.write(f"**{task.get('topic', 'Sem tópico')}**")
|
|
2842
2842
|
st.caption(f"{task.get('channel_name', 'Canal')} · {task.get('id', '')}")
|
|
@@ -2847,8 +2847,16 @@ def render_automation():
|
|
|
2847
2847
|
st.caption("Estilo")
|
|
2848
2848
|
st.write(task.get("style_wide", "—"))
|
|
2849
2849
|
with task_cols[3]:
|
|
2850
|
-
|
|
2851
|
-
st.
|
|
2850
|
+
state = str(task.get("state") or "")
|
|
2851
|
+
start_col, stop_col = st.columns(2)
|
|
2852
|
+
with start_col:
|
|
2853
|
+
if st.button("Start", key=f"automation_start_{task['id']}", use_container_width=True, disabled=state not in {"to_do", "blocked", "failed"}):
|
|
2854
|
+
transition_task(task["id"], "doing")
|
|
2855
|
+
st.rerun()
|
|
2856
|
+
with stop_col:
|
|
2857
|
+
if st.button("Stop", key=f"automation_stop_{task['id']}", use_container_width=True, disabled=state != "doing"):
|
|
2858
|
+
transition_task(task["id"], "blocked")
|
|
2859
|
+
st.rerun()
|
|
2852
2860
|
|
|
2853
2861
|
|
|
2854
2862
|
def render_upload_direct():
|
package/package.json
CHANGED