@danhachuel/thunderbolt 0.7.13 → 0.7.14

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 +7 -6
  2. package/package.json +1 -1
package/app/main.py CHANGED
@@ -3096,7 +3096,7 @@ def render_channels():
3096
3096
  channel_id = str(channel["id"])
3097
3097
  edit_key = f"edit_channel_{channel_id}"
3098
3098
  with st.container(border=True):
3099
- header_cols = st.columns([0.7, 2.75, 1.1, 1.0, 1.35, 1.35])
3099
+ header_cols = st.columns([0.7, 2.75, 1.15, 1.1, 1.0, 1.35, 1.35])
3100
3100
  channel_url = str(channel.get("url") or "").strip()
3101
3101
  if not channel_url:
3102
3102
  channel_id_or_handle = str(channel.get("youtube_channel_id") or channel.get("youtube_id") or channel.get("handle") or "").strip()
@@ -3119,14 +3119,15 @@ def render_channels():
3119
3119
  st.caption(channel_niche_label(channel))
3120
3120
  st.caption(f"{channel.get('handle') or channel.get('url') or 'sem URL'} · {channel.get('metrics_source', 'manual')}")
3121
3121
  with header_cols[2]:
3122
- st.metric("Inscritos", _format_channel_count(channel.get("subscriber_count")))
3122
+ if channel_url:
3123
+ st.link_button("Abrir canal", channel_url, type="primary", width="content")
3123
3124
  with header_cols[3]:
3124
- st.metric("Vídeos", _format_channel_count(channel.get("video_count")))
3125
+ st.metric("Inscritos", _format_channel_count(channel.get("subscriber_count")))
3125
3126
  with header_cols[4]:
3126
- st.metric("Visualizações", _format_channel_count(channel.get("view_count")))
3127
+ st.metric("Vídeos", _format_channel_count(channel.get("video_count")))
3127
3128
  with header_cols[5]:
3128
- if channel_url:
3129
- st.link_button("Abrir canal", channel_url, type="primary", width="content")
3129
+ st.metric("Visualizações", _format_channel_count(channel.get("view_count")))
3130
+ with header_cols[6]:
3130
3131
  if st.button("↻", key=f"refresh_youtube_metrics_{channel_id}", help="Actualizar Inscritos, Vídeos e Visualizações", width="stretch"):
3131
3132
  with st.spinner("A actualizar métricas YouTube…"):
3132
3133
  refreshed, message = _refresh_youtube_channel_metrics(channel, youtube)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
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",