update
This commit is contained in:
@ -3,19 +3,19 @@
|
||||
import streamlit as st
|
||||
import callbacks
|
||||
from project_model import Project # 引入 Project 以便進行型別註記
|
||||
from utils.helpers import display_operation_status
|
||||
|
||||
@st.fragment
|
||||
def render_tab(project: Project):
|
||||
"""
|
||||
負責顯示「1. 資料處理 & AI 加註」Tab 的所有 UI 元件和邏輯。
|
||||
負責顯示「資料處理 & AI 加註」Tab 的所有 UI 元件和邏輯。
|
||||
"""
|
||||
if "operation_status" in st.session_state:
|
||||
display_operation_status()
|
||||
# 根據 project.data 的狀態來決定顯示哪個 UI
|
||||
if project.data:
|
||||
# --- 狀態一:專案「已同步」---
|
||||
st.session_state.operation_status = {
|
||||
"success": True,
|
||||
"message": "✅ 專案資料已就緒。"
|
||||
}
|
||||
# st.toast("✅ 專案資料已就緒。")
|
||||
with st.container(border=True):
|
||||
col1, col2 = st.columns([3, 1])
|
||||
with col1:
|
||||
|
||||
Reference in New Issue
Block a user