@danhachuel/thunderbolt 0.2.70 → 0.2.71
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 +5 -7
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -711,14 +711,13 @@ def render_blueprints():
|
|
|
711
711
|
card_key = _library_card_key("blueprints", path)
|
|
712
712
|
header_cols = st.columns([0.93, 0.07], vertical_alignment="center")
|
|
713
713
|
with header_cols[0]:
|
|
714
|
-
with st.expander(
|
|
715
|
-
st.caption(f"Ficheiro: {path}")
|
|
714
|
+
with st.expander(title):
|
|
716
715
|
st.json(data)
|
|
717
716
|
with header_cols[1]:
|
|
718
717
|
_render_card_pencil(f"rename_blueprints_{card_key}")
|
|
719
718
|
_render_library_name_editor("blueprints", path, title)
|
|
720
719
|
except Exception as exc:
|
|
721
|
-
with st.expander(f"Inválido — {path.
|
|
720
|
+
with st.expander(f"Inválido — {path.stem}"):
|
|
722
721
|
st.error(str(exc))
|
|
723
722
|
with branding_tab:
|
|
724
723
|
st.subheader("Brandings completos")
|
|
@@ -751,7 +750,7 @@ def render_blueprints():
|
|
|
751
750
|
st.caption(f"Blueprint associado: {data.get('blueprint_id') or 'não associado'}")
|
|
752
751
|
st.json(data)
|
|
753
752
|
except Exception as exc:
|
|
754
|
-
with st.expander(f"Inválido — {path.
|
|
753
|
+
with st.expander(f"Inválido — {path.stem}"):
|
|
755
754
|
st.error(str(exc))
|
|
756
755
|
|
|
757
756
|
|
|
@@ -963,8 +962,7 @@ def render_tiktok_prompt_masters():
|
|
|
963
962
|
card_key = _library_card_key("prompt_masters", path)
|
|
964
963
|
header_cols = st.columns([0.93, 0.07], vertical_alignment="center")
|
|
965
964
|
with header_cols[0]:
|
|
966
|
-
with st.expander(
|
|
967
|
-
st.caption(f"Ficheiro TikTok: `{path}`")
|
|
965
|
+
with st.expander(heading, expanded=False):
|
|
968
966
|
edited_content = st.text_area("Conteúdo Markdown", value=content, height=360, key=f"tiktok_prompt_master_editor_{path.stem}")
|
|
969
967
|
prompt_cols = st.columns(3)
|
|
970
968
|
with prompt_cols[0]:
|
|
@@ -984,7 +982,7 @@ def render_tiktok_prompt_masters():
|
|
|
984
982
|
_render_card_pencil(f"rename_prompt_masters_{card_key}")
|
|
985
983
|
_render_library_name_editor("prompt_masters", path, heading)
|
|
986
984
|
except (OSError, ValueError) as exc:
|
|
987
|
-
with st.expander(f"Ficheiro inválido — {path.
|
|
985
|
+
with st.expander(f"Ficheiro inválido — {path.stem}"):
|
|
988
986
|
st.error(str(exc))
|
|
989
987
|
|
|
990
988
|
|
package/package.json
CHANGED