Spaces:
Sleeping
Sleeping
Commit History
-
signer: read names from the data file (Power BI via on-prem gateway), drop the browser fetch
Root cause of the production failure: the browser-side signer fetch is fundamentally blocked. The SMP gateway is a private 10.x host with no public DNS, and Chrome's Private Network Access blocks a public webpage (the HF Space) from calling it (console: "blocked by CORS policy: ... access the `local` address space"). streamlit-javascript was also broken on the current Streamlit ("handleSetComponentValue: missing 'value' prop"). No client-side bridge can fix this — a public app cannot reach the private network. New design: the names ride the OneDrive DATA_URL file the app already reads. The Power BI model fetches them during its scheduled refresh THROUGH an on-premises data gateway (personal mode), adding approverName / chairmanName columns. The app just reads them. - streamlit_app.py: replace fetch_signers_for_po/fetch_signer_name (browser fetch) with signer_from_lookup() reading approverName/chairmanName from lookup_data; remove the streamlit-javascript import, the SMP_TOKEN env…5c120b3 -
signer: resolve ผู้มีอำนาจอนุมัติ / ประธานกรรมการตรวจรับ live via browser-side fetch
The HF server can't reach the PTT-internal SMP gateway, but the user's PTT-wifi browser can (gateway sends CORS *). signer_lookup.py builds a client-side fetch (PO -> SAP PR -> approver + receiving-committee chairman); streamlit-javascript runs it and returns the names; fetch_signer_name picks by role, with a manual text-box fallback when off-network. Uses the read-only no-reply token (SMP_TOKEN Space secret), injected into client JS — Entra-gated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>99146e1 -
Add Microsoft Entra ID login + ember dark theme
- Gate the whole app behind Streamlit native OIDC sign-in (auth_gate.py), reusing the existing Azure App Registration. Auth config lives in a gitignored .streamlit/secrets.toml locally, and is built at container start from HF Space secrets by entrypoint.sh. - Retheme to a black + burnt-orange ember palette across the login pass, hero, stepper, cards, inputs and buttons (+ config.toml). - requirements: streamlit>=1.42, add Authlib. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>e6660cd
-
Remove deprecated tkinter desktop app
Delete auto_form_generator.py (the tkinter desktop GUI) and drop its references from README.md and the form_logic.py docstring. The Streamlit web app is now the only entry point. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>ea5abfd
-
Upload 17 files
Verified signature4584aec -
initial commit
Verified signature7f4a99d