refs #739: preserve Smilegate changes before repository layout migration

This commit is contained in:
devmrko
2026-08-03 11:12:19 +09:00
parent 022ae7f9d2
commit 4d2964b5c6
58 changed files with 3002 additions and 291 deletions

View 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()

View File

@@ -0,0 +1,5 @@
"""Smilegate demo modules.
The portal is assembled from small modules so each feature can be reviewed and
released independently.
"""

View File

@@ -0,0 +1 @@
"""Presentation modules for the Smilegate demo."""

View 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,
)