[Frontend] Add pause and unpause controls to the admin dashboard

Open
#1,346 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@VeronicDev is already working on this.

Since Nov 19, 2026.

  • #3 by @VeronicDev — open
  • #1472 by @VeronicDev — open

Assessment

This issue has not been assessed yet.

Description

frontend hard Stellar Wave ui

Summary

The admin dashboard displays the vault's paused state but provides no controls to change it. An admin must use a separate tool to build and sign the set_paused transaction.

Motivation

The dashboard already verifies the connected wallet against the vault admin and shows the current state. Pause is the fastest emergency control available, and it should be reachable from the same screen that shows the state.

Proposed Solution

Add pause and unpause actions to VaultStatePanel. Require a typed confirmation before submission, build the transaction through the existing API transaction route, sign with the connected wallet, and refresh the vault state after confirmation. Show pending, confirmed, and failed states, and link the resulting transaction hash to the explorer. Cover authorization, confirmation, success, and failure with tests.

Scope

Field Value
Area Frontend
Protocol affected None
Network testnet and mainnet
Breaking change? No

Alternatives Considered

A one-click pause is faster but too easy to trigger by accident on a screen that already has destructive actions. A typed confirmation adds one step without requiring a new modal framework.

Acceptance Criteria

  • Pause and unpause are available only after the admin check succeeds
  • A typed confirmation is required before building a transaction
  • The action builds, signs, submits, and refreshes the vault state
  • Success and failure are visible and the transaction hash is linked
  • Tests cover confirmation, success, failure, and unauthorized state
  • pnpm lint and pnpm typecheck pass

Additional Context

The read-only panel is apps/web/src/components/admin/VaultStatePanel.tsx, the page shell is apps/web/src/pages/AdminDashboard.tsx, and the transaction route is api/v1/tx/[action].ts. The contract entry point is set_paused in packages/contracts/vault/src/lib.rs.

Dominant language
TypeScript
Stars
17
Forks
129
Avg merge
3d 13h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from drydocs/meridian

All issues in drydocs/meridian

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.