V1 Web PWA · Surface walkthrough

Isis Chargeback Prevention

A per-surface walkthrough of the V1 Web PWA studio surface: layout, states, interactions, data, and cross-references.

walked
8sections2 minread

On this page

Context. surface studio · domain isis · route /studio/isis/chargeback-prevention · auth signed-in + studio entitlement (segment not in AAA_ONLY_STUDIO_ROUTES — renders as-is) · source apps/oshun/web/src/app/studio/isis/chargeback-prevention/page.tsx

Last walked. 2026-05-29 automated runtime walk (Playwright headless) — render, /v1 data (2xx), console/page-errors, expected content, screenshot verified; live screen-reader, touch, offline, and telemetry-delivery checks pending a manual AT pass. Evidence: WALKTHROUGH/results/runtime-sweep-2026-05-29.md; body re-derived 2026-06-03 from current source (lane-console architecture)

Purpose#

Admin lane console for the weighted-feature chargeback model. An operator enters a transaction's amount, payment method, device fingerprint, and country; the model returns a chargeback probability, risk tier, confidence, and the contributing weighted factors. Reads the model weights and scores via /v1/admin/isis/chargeback-prevention; admin-scoped and fail-closed.

Entry points#

  • Embedded as the "Chargeback Prevention Lane" inside /studio/isis/cli
  • Sibling quick-action from /studio/isis/account-protection and /studio/isis/suspicious-activity-detection
  • Studio index (/studio)
  • Direct URL / bookmark

Layout regions#

page.tsx mounts <ShellLayout active="studio"> (no breadcrumb panel) and three panels: the workspace, the Route Map, and sibling quick-actions.

  • Header: shell header
  • Workspace panel (data-isis-chargeback-prevention-workspace):
    • <h1> (WorkspaceHeading) "Isis Chargeback Prevention Workspace"
    • Summary paragraph (data-isis-chargeback-prevention-summary)
    • Model weights (data-isis-cp-weights)
    • Predict form (data-isis-cp-predict-form)
    • Score result (data-isis-cp-result) with data-isis-cp-probability, data-isis-cp-risk, data-isis-cp-confidence, and contributing factors (data-isis-cp-factors, data-isis-cp-factor=<id>)
  • Route Map panel (data-isis-chargeback-prevention-route-map): <h2>Route Map</h2> over the route map (5 entries)
  • Sibling quick-actions panel: /studio/isis/suspicious-activity-detection, /studio

States#

  • Loadingdata-isis-cp-loading
  • Unauthorized — 401/403 admin-scope fail-closed; data-isis-cp-unauthorized
  • Error — non-OK / malformed; data-isis-cp-error
  • Ready (form) — weights + predict form render
  • Resultdata-isis-cp-result after scoring; prediction failure → data-isis-cp-predict-error

Interactions#

Predict form (data-isis-cp-predict-form)#

  • Amount (data-isis-cp-field-amount, input, aria-label="transaction amount")
  • Payment method (data-isis-cp-field-method, input, aria-label="payment method")
  • Device fingerprint (data-isis-cp-field-device, input, aria-label="device fingerprint")
  • Country (data-isis-cp-field-country, input, aria-label="country")
  • Score transaction (data-isis-cp-predict-submit, submit) — POST /v1/admin/isis/chargeback-prevention/predict

Route Map#

  • Route-map articles ×5

Sibling quick-actions#

  • Open Isis Suspicious Activity Detection workspace/studio/isis/suspicious-activity-detection
  • Back to Studio workspace index/studio

Data & contracts#

  • Reads: GET /v1/admin/isis/chargeback-prevention (model weights)
  • Writes: POST /v1/admin/isis/chargeback-prevention/predict (score a transaction)
  • Realtime: none
  • Caching: client fetch on mount, cache: 'no-store', buildBffAuthHeaders()
  • Auth/role check: admin-scoped, fail-closed (401/403); route signed-in + studio entitlement
  • Component sources:
    • apps/oshun/web/src/components/studio/StudioIsisChargebackPreventionWorkspace.tsx
    • apps/oshun/web/src/components/studio/StudioIsisChargebackPreventionRouteMap.ts

Cross-references#

Open questions / known gaps#

  • No breadcrumb on this route — navigation via sibling quick-actions
  • Also embedded inside the CLI aggregator; confirm the canonical entry surface for operators
  • Route-map sub-paths are declared but not yet implemented as separate pages