@danhachuel/thunderbolt 0.3.6 → 0.3.7
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/.streamlit/config.toml +17 -2
- package/app/main.py +15 -12
- package/package.json +1 -1
package/.streamlit/config.toml
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
[theme]
|
|
2
|
-
|
|
2
|
+
font = "sans serif"
|
|
3
|
+
|
|
4
|
+
[theme.dark]
|
|
3
5
|
primaryColor = "#35A7FF"
|
|
4
6
|
backgroundColor = "#0B1118"
|
|
5
7
|
secondaryBackgroundColor = "#121B26"
|
|
6
8
|
textColor = "#F4F8FB"
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
[theme.dark.sidebar]
|
|
11
|
+
backgroundColor = "#0B1118"
|
|
12
|
+
secondaryBackgroundColor = "#121B26"
|
|
13
|
+
|
|
14
|
+
[theme.light]
|
|
15
|
+
primaryColor = "#1677C8"
|
|
16
|
+
backgroundColor = "#FFFFFF"
|
|
17
|
+
secondaryBackgroundColor = "#F1F5F9"
|
|
18
|
+
textColor = "#17212B"
|
|
19
|
+
|
|
20
|
+
[theme.light.sidebar]
|
|
21
|
+
backgroundColor = "#F8FAFC"
|
|
22
|
+
secondaryBackgroundColor = "#EEF2F7"
|
|
8
23
|
|
|
9
24
|
[client]
|
|
10
25
|
toolbarMode = "auto"
|
package/app/main.py
CHANGED
|
@@ -183,10 +183,10 @@ st.markdown("""
|
|
|
183
183
|
[data-testid="stSidebar"] [data-testid="stExpander"] summary p { margin:0; line-height:1; }
|
|
184
184
|
[data-testid="stSidebar"] [data-testid="stExpander"] > div { padding:0 0 0 0.42rem !important; }
|
|
185
185
|
[data-testid="stSidebar"] [data-testid="stExpander"] > div [data-testid="stButton"] button { padding-left:0.92rem; font-size:0.83rem; min-height:1.62rem; height:1.62rem; }
|
|
186
|
-
.content-card { box-sizing:border-box; padding:1rem 1.1rem; border:1px solid
|
|
187
|
-
.content-label { color
|
|
188
|
-
.content-value { color
|
|
189
|
-
.content-card .small-muted { color
|
|
186
|
+
.content-card { box-sizing:border-box; padding:1rem 1.1rem; border:1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius:14px; background:color-mix(in srgb, currentColor 5%, transparent); color:inherit; min-height:110px; box-shadow:0 4px 14px color-mix(in srgb, currentColor 12%, transparent); }
|
|
187
|
+
.content-label { color:inherit; opacity:.72; font-size:.8rem; text-transform:uppercase; letter-spacing:.07em; }
|
|
188
|
+
.content-value { color:inherit; font-size:1.8rem; font-weight:700; margin-top:.3rem; }
|
|
189
|
+
.content-card .small-muted { color:inherit; opacity:.72; }
|
|
190
190
|
.stage { border-left:3px solid var(--tb-accent); padding:.65rem .8rem; margin:.4rem 0; background:color-mix(in srgb, currentColor 4%, transparent); border-radius:8px; }
|
|
191
191
|
.small-muted { color:inherit; opacity:.65; font-size:.85rem; }
|
|
192
192
|
.tb-cuts-hero { max-width:860px; margin:0 auto 1.1rem; padding:1.6rem 1.4rem 1.35rem; text-align:center; border:1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius:18px; background:radial-gradient(circle at 50% 0, color-mix(in srgb, var(--tb-gold) 16%, transparent), transparent 58%), color-mix(in srgb, currentColor 4%, transparent); box-shadow:0 18px 48px color-mix(in srgb, currentColor 12%, transparent); }
|
|
@@ -2838,7 +2838,7 @@ def render_python_editor():
|
|
|
2838
2838
|
|
|
2839
2839
|
|
|
2840
2840
|
def render_videos():
|
|
2841
|
-
st.subheader("Vídeos
|
|
2841
|
+
st.subheader("Backlog Vídeos")
|
|
2842
2842
|
st.caption("Acompanhamento dos vídeos criados, estados da pipeline e controlos de execução.")
|
|
2843
2843
|
st.caption(f"Os vídeos são guardados em `{STORAGE / 'videos'}`.")
|
|
2844
2844
|
tasks = read_json("tasks.json", [])
|
|
@@ -2866,13 +2866,16 @@ def render_videos():
|
|
|
2866
2866
|
with cols[2]: st.write(task.get("stage", "—"))
|
|
2867
2867
|
with cols[3]: st.write(task.get("state", "—"))
|
|
2868
2868
|
with cols[4]:
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
st.
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2869
|
+
state = str(task.get("state") or "")
|
|
2870
|
+
start_col, stop_col = st.columns(2)
|
|
2871
|
+
with start_col:
|
|
2872
|
+
if st.button("Start", key=f"automation_start_{task['id']}", use_container_width=True, disabled=state not in {"to_do", "blocked", "failed"}):
|
|
2873
|
+
transition_task(task["id"], "doing")
|
|
2874
|
+
st.rerun()
|
|
2875
|
+
with stop_col:
|
|
2876
|
+
if st.button("Stop", key=f"automation_stop_{task['id']}", use_container_width=True, disabled=state != "doing"):
|
|
2877
|
+
transition_task(task["id"], "blocked")
|
|
2878
|
+
st.rerun()
|
|
2876
2879
|
|
|
2877
2880
|
|
|
2878
2881
|
def render_automation():
|
package/package.json
CHANGED