Skip to content

Commit

Permalink
move settings expander down
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Mar 6, 2024
1 parent deb7aaf commit 5e2d2d7
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,33 +1284,6 @@ def integration_test_config_screen(
# "Add a Gooey.AI LLM prompt to automatically analyse and categorize user messages. [Example](https://gooey.ai/compare-large-language-models/how-farmerchat-turns-conversations-to-structured-data/?example_id=lbjnoem7) and [Guide](https://gooey.ai/docs/guides/copilot/conversation-analysis)."
# )

with st.expander("Configure Settings 🛠️"):
if bi.platform == Platform.SLACK:
slack_specific_settings(bi, run_title)
general_integration_settings(bi)

if bi.platform in [Platform.SLACK, Platform.WHATSAPP]:
st.newline()
st.newline()
broadcast_input(bi)

st.write("---")
col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Disconnect")
st.caption(
f"Disconnect {run_title} from {Platform(bi.platform).label} {bi.get_display_name()}."
)
with col2:
if st.button(
"💔️ Disconnect",
key="btn_disconnect",
):
bi.saved_run = None
bi.published_run = None
bi.save()
st.experimental_rerun()

col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Add Integration")
Expand All @@ -1325,9 +1298,9 @@ def integration_test_config_screen(
if bi.platform == Platform.WHATSAPP and bi.wa_business_waba_id:
col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Whatsapp Business Management")
st.write("###### WhatsApp Business Management")
st.caption(
f"Only touch if you know what you're doing. Changing phonenumber(s) will break the Gooey integration."
f"Access your WhatsApp account on Meta to approve message templates, etc."
)
with col2:
st.anchor(
Expand All @@ -1346,6 +1319,33 @@ def integration_test_config_screen(
new_tab=True,
)

with st.expander("Configure Settings 🛠️"):
if bi.platform == Platform.SLACK:
slack_specific_settings(bi, run_title)
general_integration_settings(bi)

if bi.platform in [Platform.SLACK, Platform.WHATSAPP]:
st.newline()
st.newline()
broadcast_input(bi)

st.write("---")
col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Disconnect")
st.caption(
f"Disconnect {run_title} from {Platform(bi.platform).label} {bi.get_display_name()}."
)
with col2:
if st.button(
"💔️ Disconnect",
key="btn_disconnect",
):
bi.saved_run = None
bi.published_run = None
bi.save()
st.experimental_rerun()


def chat_list_view():
# render a reversed list view
Expand Down

0 comments on commit 5e2d2d7

Please sign in to comment.