import os # --- Filevine env --- FV_CLIENT_ID = os.environ.get("FILEVINE_CLIENT_ID") FV_CLIENT_SECRET = os.environ.get("FILEVINE_CLIENT_SECRET") FV_PAT = os.environ.get("FILEVINE_PERSONAL_ACCESS_TOKEN") FV_ORG_ID = os.environ.get("FILEVINE_ORG_ID") FV_USER_ID = os.environ.get("FILEVINE_USER_ID") if not all([FV_CLIENT_ID, FV_CLIENT_SECRET, FV_PAT, FV_ORG_ID, FV_USER_ID]): print("[WARN] Missing one or more Filevine env vars — dashboard will fail until set.") PHASES = { 209436: "Nonpayment File Review", 209437: "Attorney File Review", 209438: "Notice Preparation", 209439: "Notice Pending", 209440: "Notice Expired", 209442: "Preparing and Filing UD", 209443: "Waiting for Answer", 209444: "Archived", 210761: "Service of Process", 211435: "Default", 211436: "Pre-Answer Motion", 211437: "Request for Trial", 211438: "Trial Prep and Trial", 211439: "Writ and Sheriff", 211440: "Lockout Pending", 211441: "Stipulation Preparation", 211442: "Stipulation Pending", 211443: "Stipulation Expired", 211446: "On Hold", 211466: "Request for Monetary Judgment", 211467: "Appeals and Post-Poss. Motions", 211957: "Migrated", 213691: "Close Out/ Invoicing", 213774: "Judgment After Stip & Order", }