Commit History

  1. fix: letter lost the duration sentence when AI paraphrasing dropped the 'ภายใน X วัน' signal — (1) build_letter falls back to the raw TOR clause when cleaning loses it, (2) generate_body rejects AI bodies missing the supplied day-number⁠

    Menixis +1: Claude Fable 5
    b9e493a
  2. feat: wire ai_clean.clean_delivery into the generate path (ARCHITECTURE §13.3) — the body's delivery sentence is now งวด-aware; deterministic fallback preserved⁠

    Menixis +1: Claude Fable 5
    903bb5c
  3. 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
  4. test: pytest suite for the pure layers (data_source, ai_clean, form_logic, letter_builder) — 32 tests, no network, AI_BACKEND=off⁠

    Menixis +1: Claude Fable 5
    f50726e
  5. 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
  6. 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
  7. 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
  8. 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
  9. refactor: move presentation constants (THEME_CSS, AI_CREATE_ANIM_HTML) into theme.py — verbatim, no behavior change⁠

    Menixis +1: Claude Fable 5
    3c1cc18
  10. deps: add requests (direct dep of load_live_data), move huggingface_hub to local-helper note; add requirements-dev.txt⁠

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

    Menixis +1: Claude Fable 5
    3f28237
  12. Auto-form: gitignore local secret-push helpers and internal docs (public Space repo)⁠

    Menixis +1: Claude Fable 5
    fb9f47c
  13. Auto-form: AI backend via Power Automate + AI Builder (AI_BACKEND env, OpenRouter kept for rollback)⁠

    Menixis +1: Claude Fable 5
    38e26ff

  1. Auto-form: unblock guide step 1 shows the new 'tune' site-info icon, not just a lock⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    7295b0e
  2. Auto-form: simpler, visual Local Network unblock guide for non-technical users⁠

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

    Menixis +1: Claude Opus 4.8 (1M context)
    a9dc2e6
  4. Auto-form: same-model failover across accounts (seamless key rotation)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    18b092a
  5. Auto-form: rotate across multiple OpenRouter API keys on rate limit⁠

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

    Menixis +1: Claude Opus 4.8 (1M context)
    513fc8e
  7. Auto-form: soften body verb -> 'ได้มีข้อตกลงในการจัดซื้อ/จัดจ้างกับ'⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    b462261
  8. Auto-form: เรียน vendor not bold + nudge รับทราบ box down a little⁠

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

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

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

    Menixis +1: Claude Opus 4.8 (1M context)
    01672fa
  12. Auto-form: robust กำหนดส่งมอบ extraction (no wrong-section pulls)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    24f2f2e
  13. Auto-form: guarantee form-1 letter fits one page + drop (ครั้งแรก) label⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    129e184
  14. 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
  15. Auto-form: enlarge login lock icon (58->78px tile, 26->36px glyph)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    59262ca
  16. Auto-form: demote login lock icon so it doesn't read as a button⁠

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

    Menixis +1: Claude Opus 4.8 (1M context)
    4e06d98
  18. Auto-form: declutter the login card (remove redundant text)⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    ea6ec06
  19. Auto-form: add the รับทราบ acknowledgement box (bottom-left) to form1⁠

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

    Menixis +1: Claude Opus 4.8 (1M context)
    00325cf
  21. Auto-form: remove the หมายเหตุ note block from form1 template⁠

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

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

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

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

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

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

    Menixis +1: Claude Opus 4.8 (1M context)
    1c8255f
  28. 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: retry the PO->PR Report on transient empty responses⁠

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

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

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

    145e4ee
  9. Login: add full-screen escape hatch for embedded (iframe) case⁠

    Menixis +1: Claude Opus 4.8 (1M context)
    3c3b156