SmokeScan / ui /__init__.py
KinetoLabs's picture
MVP UI simplification: single room, 4 tabs
3b08f11
"""UI components for FDAM AI Pipeline."""
from .state import (
# Form data models
RoomFormData,
ImageFormData,
ObservationsFormData,
# Session management
SessionState,
AssessmentHistory,
# Helpers
create_new_session,
session_to_json,
session_from_json,
history_to_json,
history_from_json,
)
from .storage import (
STORAGE_KEY_SESSION,
STORAGE_KEY_HISTORY,
LOCALSTORAGE_JS,
JS_SAVE_SESSION,
JS_LOAD_SESSION,
JS_SAVE_HISTORY,
JS_LOAD_HISTORY,
JS_AUTO_LOAD,
get_head_html,
create_save_trigger_js,
)
from .components import (
create_validation_message,
create_progress_html,
create_history_dropdown_choices,
create_tab_status_indicator,
create_stats_dict,
format_validation_errors_html,
format_success_html,
format_warning_html,
format_info_html,
ImageStore,
image_store,
)
__all__ = [
# Form data models
"RoomFormData",
"ImageFormData",
"ObservationsFormData",
# Session management
"SessionState",
"AssessmentHistory",
"create_new_session",
"session_to_json",
"session_from_json",
"history_to_json",
"history_from_json",
# Storage
"STORAGE_KEY_SESSION",
"STORAGE_KEY_HISTORY",
"LOCALSTORAGE_JS",
"JS_SAVE_SESSION",
"JS_LOAD_SESSION",
"JS_SAVE_HISTORY",
"JS_LOAD_HISTORY",
"JS_AUTO_LOAD",
"get_head_html",
"create_save_trigger_js",
# Components
"create_validation_message",
"create_progress_html",
"create_history_dropdown_choices",
"create_tab_status_indicator",
"create_stats_dict",
"format_validation_errors_html",
"format_success_html",
"format_warning_html",
"format_info_html",
"ImageStore",
"image_store",
]