-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
51 lines (38 loc) · 1.21 KB
/
Copy pathapp.py
File metadata and controls
51 lines (38 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import streamlit as st
from ui.new_run import show_new_run
from ui.preview_leads import show_preview
from ui.sending import show_sending
from ui.history import show_history
from ui.followup import show_followups
from ui.template import show_template_editor
# ---------- Page config (only once) ----------
st.set_page_config(
page_title="Shelly – Lead Automation",
page_icon="⚡",
layout="wide",
initial_sidebar_state="collapsed"
)
if "theme" not in st.session_state:
st.session_state.theme = "dark"
# ---------- State init ----------
if "step" not in st.session_state:
st.session_state.step = 1
if "current_run" not in st.session_state:
st.session_state.current_run = None
# ---------- Top Tabs ----------
tab_run, tab_followup, tab_template,tab_history = st.tabs(["⚡ Run","Follow-Up", "Template","History"])
# ---------- Run Flow ----------
with tab_run:
if st.session_state.step == 1:
show_new_run()
elif st.session_state.step == 2:
show_preview()
elif st.session_state.step == 3:
show_sending()
with tab_followup:
show_followups()
with tab_template:
show_template_editor()
# ---------- History ----------
with tab_history:
show_history()