Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A Ahad Mobile
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • holatech
  • Ahad Mobile
  • Merge requests
  • !113

feat(admin): redesign the lending market detail and risk pages

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Khanh Pham requested to merge feat/admin-market-detail-ui into develop Oct 09, 2026
  • Overview 0
  • Commits 24
  • Pipelines 4
  • Changes 56

What

Redesign of the two admin lending screens.

Market detail (/lending/markets/:id)

  • Hero with market glyph, status, rail and "accrued N min ago"; four related KPI cards (supplied / borrowed / liquidity with utilisation meter / protocol equity with withdrawable).
  • Tabs kept in ?tab=: Overview, Rate history, Configuration, Operations (Operations only with lending:operate). Configuration and Operations stay mounted so an in-flight mutation still reports after a tab switch.
  • Overview: interactive rate curve (y scale, hover/keyboard probe), Balance panel (assets vs funding bars, payables with zero rows muted), collateral table with a shared-domain risk ladder.
  • Rate history: time-scaled step chart with tooltip and series toggles; newest-first table with Show all.
  • Configuration: rate model / risk params as percent figures with raw fractions, risk ladder, scheduled-version callout; compact custody grid.
  • Operations: equity cards + danger zone (logic unchanged: idempotency keys, reasons, notice warnings).
  • Removed dead "—" cells (Collateralization, Oracle Price, Reserves) and duplicated figures.

Risk & operations (/lending/risk)

  • KPI strip (open alerts by severity, in liquidation, transfers waiting, liquidation engine) over five tabs: Attention, Liquidations, Transfers, Audit, Settings.
  • Alert cards with human titles/explanations (en + vi) for 27 ops alert types, market/user chips, relative time, repeat count, details disclosure and a custody-mismatch comparison.
  • Audit grouped by day with readable action labels; settings as cards; designed empty states and skeletons.

Shared: page tab strip + useTabParam hook, EmptyState, skeletons, copy button.

Status

  • Final whole-branch review passed in 2 rounds (0 blocking, 0 should-fix).
  • admin/: pnpm test 827/827, pnpm type-check clean, pnpm lint:check 0 errors, pnpm build green.
  • No backend or API change.

🤖 Generated with Claude Code

Edited Oct 09, 2026 by Khanh Pham
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/admin-market-detail-ui