GuglielmoTor commited on
Commit
4972b99
·
verified ·
1 Parent(s): 55594d3

Create dashboard_sync_tab.py

Browse files
Files changed (1) hide show
  1. ui/dashboard_sync_tab.py +22 -0
ui/dashboard_sync_tab.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ui/dashboard_sync_tab.py
2
+ import gradio as gr
3
+
4
+ def setup_dashboard_sync_tab():
5
+ """Sets up the UI components for the Dashboard & Sync tab."""
6
+ gr.Markdown("Il sistema controlla i dati esistenti da Bubble. 'Sincronizza' si attiva se sono necessari nuovi dati.")
7
+
8
+ sync_data_btn = gr.Button(
9
+ "🔄 Sincronizza Dati LinkedIn",
10
+ variant="primary",
11
+ visible=False, # Initial visibility controlled by initial_load_sequence
12
+ interactive=False # Initial interactivity controlled by initial_load_sequence
13
+ )
14
+ sync_status_html_output = gr.HTML("<p style='text-align:center;'>Stato sincronizzazione...</p>")
15
+ dashboard_display_html = gr.HTML("<p style='text-align:center;'>Caricamento dashboard...</p>")
16
+
17
+ components = {
18
+ "sync_data_btn": sync_data_btn,
19
+ "sync_status_html_output": sync_status_html_output,
20
+ "dashboard_display_html": dashboard_display_html,
21
+ }
22
+ return components