auto-form / streamlit_app.py

Commit History

  1. feat: ALLOWED_USERS allowlist authorization (require_authorized) after login — server-side enforcement; unset secret = allow all (no lockout); themed denial card + logout⁠

    Menixis +1: Claude Fable 5
    5ec0721
  2. feat: ?health=1 query-param health check (app + data source OK), pre-gate; liveness stays on built-in /_stcore/health⁠

    Menixis +1: Claude Fable 5
    21d12df
  3. refactor: extract the generate use-case into letter_builder.py (build_letter, default_doc_type, suffix_doc_type); UI keeps only widgets, validation display, and session state — verified docx-identical to pre-refactor output⁠

    Menixis +1: Claude Fable 5
    fda2212
  4. refactor: move browser-bridge gates + signer helpers (require_desktop, require_local_network, fetch_signers_for_po, signer_from_lookup) into gates.py⁠

    Menixis +1: Claude Fable 5
    84c98ae
  5. refactor: move PO data access (load_live_data, lookup_po_in_bytes) into data_source.py repository module; add check_data() health probe⁠

    Menixis +1: Claude Fable 5
    1ea4202
  6. refactor: move presentation constants (THEME_CSS, AI_CREATE_ANIM_HTML) into theme.py — verbatim, no behavior change⁠

    Menixis +1: Claude Fable 5
    3c1cc18
  7. Auto-form: remove the OpenRouter backend entirely (org policy) — AI Builder flow is the only AI backend⁠

    Menixis +1: Claude Fable 5
    3f28237

  1. Auto-form: simpler, visual Local Network unblock guide for non-technical users⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    f5d1780
  2. Auto-form: show the Local Network 'Allow' prompt image on the gate page⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    a9dc2e6
  3. Auto-form: add 'ขออภัยในความไม่สะดวก' to the mobile blocker⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    513fc8e
  4. Auto-form: block mobile/phone users (desktop-only)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    d15c294
  5. Auto-form: fix invisible AI label (out-specify the white-label rule)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    f0b6eee
  6. Auto-form: งวด 'อื่นๆ' manual entry + dark-blue AI label⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    01672fa
  7. Auto-form: lock coming-soon options, soft-orange arrows, always-show extra data, smart doc-type default⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    2becdbf
  8. Auto-form: switch to warm peach light theme + reshape hero header⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    4e06d98
  9. Auto-form: highlight "AI" in the generate button + letter date defaults to today⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    00325cf
  10. Auto-form: switch body to the "ตกลงว่าจ้าง…ให้ดำเนินการ" format, TOR-driven duration⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    fce7fb0
  11. Auto-form: generate the body in the exact PTT 2-paragraph format⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    256df8f
  12. Auto-form: AI "creating" animation during generation⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    143187f
  13. Auto-form: always show งวด selector (single-งวด had no dropdown)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    83ce937
  14. Auto-form: AI-clean กำหนดส่งมอบ into the document + งวด selector⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    0941280
  15. Auto-form: lock forms 2–5 as "coming soon"⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    1c8255f
  16. Auto-form: vendor-name cleanup, real PO date, PTT/vendor swap, TOR กำหนดส่งมอบ, signer ตำแหน่ง⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    b5c887b

  1. signer: silent background LNA check; notify only when not allowed⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    8433a01
  2. signer: hard Local Network Access entry gate (no manual fallback)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    adf9eeb
  3. signer: revive browser-side fetch via Local Network Access (Chrome/Edge 142+)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    234b73f
  4. signer: read names from the data file (Power BI via on-prem gateway), drop the browser fetch⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    5c120b3
  5. signer: stop the infinite "กำลังดึงชื่อผู้ลงนาม…" spinner⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    ab55d2f
  6. signer: resolve ผู้มีอำนาจอนุมัติ / ประธานกรรมการตรวจรับ live via browser-side fetch⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    99146e1
  7. signer: role choice + placeholder API

    145e4ee
  8. Add Microsoft Entra ID login + ember dark theme⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    e6660cd

  1. Restyle step badges: squircle shape, uniform purple⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    2547eee
  2. Hide Step 3 box when a previous step is edited⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    7061b19
  3. Auto-scroll to download box after generating a document⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    14e571e
  4. Step 3 in its own box; unify badge & header with Steps 1-2⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    07a8e20
  5. Add step-number UI: corner badges, Step 3 marker, pill stepper⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    0b04419
  6. Rename Excel data section title to "ข้อมูลที่ถูกดึงมา"⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    4b9ba9a
  7. Apply neon-indigo theme: gradient buttons, bright-yellow warning alert⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    3036e5d

  1. Update browser tab: title "PTT AUTO FORM" and document favicon⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    5d27042
  2. Shrink hero badge/title/subtitle, left-align badge, re-center vertically⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    29eb5ba
  3. Restyle hero as a ticket: transparent notch holes, bold perforation, balanced layout⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    76a4da0
  4. Add flat cream accent palette with purple text/icons⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    d3137b1
  5. Switch to Indigo Dusk dark theme (purple/lavender)⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    b032378
  6. Restyle to Soft Linen minimalist light theme; fix scrollbar white bars⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    f7feab1
  7. Redesign hero and remove data-source bar⁠

    Menixis +1: Claude Opus 4.7 (1M context)
    2c8ee7b

  1. Read live data directly from OneDrive anonymous link (no upload/dataset)

    d4ebc16
  2. Add live PO data auto-load from private HF dataset

    46002fb

  1. Update streamlit_app.py

    Verified signature
    7ee0420
  2. Update streamlit_app.py

    Verified signature
    7e3ebc3
  3. Update streamlit_app.py

    Verified signature
    e918a75