@danhachuel/thunderbolt 0.4.50 → 0.4.52

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.
Files changed (2) hide show
  1. package/app/main.py +12 -16
  2. package/package.json +1 -1
package/app/main.py CHANGED
@@ -1907,30 +1907,26 @@ def render_tiktok_channels():
1907
1907
  current_prompt = str(channel.get("default_prompt_master") or channel.get("prompt_master") or "")
1908
1908
  selected_prompt = st.selectbox("Prompt Master", prompt_ids, index=prompt_ids.index(current_prompt) if current_prompt in prompt_ids else 0, format_func=lambda item: prompt_labels.get(item, item), key=f"tiktok_import_card_prompt_{channel_id}")
1909
1909
  with card_cols[5]:
1910
- st.caption("Formato")
1911
- st.write("Portrait 9:16")
1912
- if st.button("Guardar", key=f"tiktok_import_card_save_{channel_id}", use_container_width=True, type="primary"):
1913
- update_channel(channel_id, {"platform": "tiktok", "default_prompt_master": selected_prompt, "prompt_master": selected_prompt, "video_aspect_ratio": "Portrait 9:16", "style_wide": "portrait"})
1914
- st.success("Prompt Master do canal guardado.")
1915
- st.rerun()
1916
- actions = st.columns([1.0, 1.0, 1.0, 1.0])
1917
- with actions[0]:
1918
1910
  active = st.toggle("Activo", value=bool(channel.get("active", True)), key=f"tiktok_import_card_active_{channel_id}")
1919
1911
  if active != bool(channel.get("active", True)):
1920
1912
  update_channel(channel_id, {"active": active})
1921
1913
  st.rerun()
1922
- with actions[1]:
1923
- if st.button("Editar", key=f"tiktok_import_card_edit_{channel_id}", use_container_width=True):
1914
+ if st.button("Editar", key=f"tiktok_import_card_edit_{channel_id}"):
1924
1915
  st.session_state[f"tiktok_edit_{channel_id}"] = not st.session_state.get(f"tiktok_edit_{channel_id}", False)
1925
1916
  st.rerun()
1926
- with actions[2]:
1927
- if st.button("Editar nicho", key=f"tiktok_import_card_niche_{channel_id}", use_container_width=True):
1928
- st.session_state[f"tiktok_niche_{channel_id}"] = not st.session_state.get(f"tiktok_niche_{channel_id}", False)
1929
- st.rerun()
1930
- with actions[3]:
1931
- if st.button("Apagar card", key=f"tiktok_import_card_delete_{channel_id}", use_container_width=True):
1917
+ if st.button("Apagar card", key=f"tiktok_import_card_delete_{channel_id}"):
1932
1918
  st.session_state[f"tiktok_delete_{channel_id}"] = True
1933
1919
  st.rerun()
1920
+ st.caption("Formato: Portrait 9:16")
1921
+ if st.button("Guardar", key=f"tiktok_import_card_save_{channel_id}", use_container_width=True, type="primary"):
1922
+ update_channel(channel_id, {"platform": "tiktok", "default_prompt_master": selected_prompt, "prompt_master": selected_prompt, "video_aspect_ratio": "Portrait 9:16", "style_wide": "portrait"})
1923
+ st.success("Prompt Master do canal guardado.")
1924
+ st.rerun()
1925
+ niche_action = st.columns([1.0, 4.0])
1926
+ with niche_action[0]:
1927
+ if st.button("Editar nicho", key=f"tiktok_import_card_niche_{channel_id}"):
1928
+ st.session_state[f"tiktok_niche_{channel_id}"] = not st.session_state.get(f"tiktok_niche_{channel_id}", False)
1929
+ st.rerun()
1934
1930
  if st.session_state.get(f"tiktok_delete_{channel_id}"):
1935
1931
  st.warning("Apagar este canal TikTok e os dados locais associados?")
1936
1932
  confirm_cols = st.columns(2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.4.50",
3
+ "version": "0.4.52",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",