refs #739: preserve Smilegate changes before repository layout migration
This commit is contained in:
27
poc4_active_source_20260714/apps/smilegate_demo/main.py
Normal file
27
poc4_active_source_20260714/apps/smilegate_demo/main.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""Minimal Smilegate Streamlit demo entrypoint.
|
||||
|
||||
This entrypoint intentionally wires only the blank presentation shell. Feature
|
||||
modules such as authentication, MCP querying, and history are added separately
|
||||
after each review.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
if str(ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(ROOT))
|
||||
|
||||
import streamlit as st
|
||||
|
||||
from src.smilegate_demo.ui.shell import render_blank_shell
|
||||
|
||||
|
||||
def main() -> None:
|
||||
render_blank_shell(st)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,5 @@
|
||||
"""Smilegate demo modules.
|
||||
|
||||
The portal is assembled from small modules so each feature can be reviewed and
|
||||
released independently.
|
||||
"""
|
||||
@@ -0,0 +1 @@
|
||||
"""Presentation modules for the Smilegate demo."""
|
||||
28
poc4_active_source_20260714/src/smilegate_demo/ui/shell.py
Normal file
28
poc4_active_source_20260714/src/smilegate_demo/ui/shell.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""Blank presentation shell.
|
||||
|
||||
No authentication, data access, MCP call, persistence, or customer text belongs
|
||||
in this module. It exists only to prove the minimal Streamlit runtime path.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
def render_blank_shell(st: Any) -> None:
|
||||
"""Render the intentionally empty first review screen."""
|
||||
st.set_page_config(page_title="Smilegate Demo", layout="wide")
|
||||
st.markdown(
|
||||
"""
|
||||
<style>
|
||||
[data-testid="stHeader"],
|
||||
[data-testid="stToolbar"],
|
||||
#MainMenu,
|
||||
footer { display: none; }
|
||||
[data-testid="stAppViewContainer"],
|
||||
.stApp { background: #ffffff; }
|
||||
.block-container { padding: 0; max-width: none; }
|
||||
</style>
|
||||
""",
|
||||
unsafe_allow_html=True,
|
||||
)
|
||||
Reference in New Issue
Block a user