Wrangle Dashboard is a live HTML dashboard for Your Policy's IT support queue. It polls the Wrangle API every 15 minutes, renders KPIs and a sortable ticket table, and gates access behind Microsoft Entra ID SSO with an email allow-list.
A single Node process pulls the Systems inbox from the Wrangle API on a fixed interval, fetches the full detail for each ticket to get its Slack permalink, and re-renders the dashboard HTML in memory. No database — permalinks are cached as JSON on /tmp so each ticket is fetched only once.
Six KPI cards across the top — open, unassigned, oldest, opened today, opened this week, resolved today. Two filter rows of colored pills compose: Agent (All / Unassigned / Matt / Alex) and Status (All / New / In progress / On hold). Ticket numbers link to the original Slack thread; ages older than 90 days turn red.
Every request hits a Microsoft Entra ID OAuth flow with PKCE. After sign-in, the service reads the user's email from Graph and checks it against a comma-separated allow-list. Sessions are JWT-signed cookies with a configurable lifetime, defaulting to 8 hours.
Wrangle Dashboard is an internal tool at YourPolicy — replacing an earlier Slack canvas implementation that hit hard limits on foreign- owned canvas edits, content duplication, and missing interactive rendering.