Skip to content

feat(tangle-cloud): wire dispute-bond claim flow (v0.15.0)#3206

Merged
drewstone merged 2 commits into
developfrom
feat/dispute-bond-claim-ui
May 14, 2026
Merged

feat(tangle-cloud): wire dispute-bond claim flow (v0.15.0)#3206
drewstone merged 2 commits into
developfrom
feat/dispute-bond-claim-ui

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

Closes the TODO carried since v0.14.0 in `useSlashing.ts` — `cancelSlash` stopped auto-refunding the disputer's bond, so disputers now need a pull-pattern claim flow.

Changes

`libs/tangle-shared-ui/src/data/graphql/useSlashing.ts`

  • `usePendingDisputeBondRefund(account)` — reads `pendingDisputeBondRefund(address)` on TANGLE and surfaces the outstanding refund balance for the connected disputer.
  • `useClaimDisputeBondTx()` — wraps `claimDisputeBond()` via the shared `useContractWrite` plumbing; invalidates the refund balance query on success so the UI updates without a page refresh.

`apps/tangle-cloud/src/pages/operators/manage/page.tsx`

  • Emerald refund-available card that appears when there's a non-zero pending refund (or after a failed claim attempt).
  • Surfaces the amount, a Claim refund button, and a Dismiss affordance for clearing transient errors.

`libs/tangle-shared-ui/src/data/graphql/index.ts`

  • Re-exports the new hooks for downstream consumers.

Verification

  • `yarn typecheck` ✓
  • `yarn lint` ✓
  • `yarn build:tangle-cloud` ✓

Closes the TODO carried since v0.14.0 — `cancelSlash` stopped
auto-refunding the disputer's bond, so disputers now need a pull-pattern
claim flow. Adds:

- `usePendingDisputeBondRefund(account)` — reads
  `pendingDisputeBondRefund(address)` on TANGLE and surfaces the
  outstanding refund balance for the connected disputer.
- `useClaimDisputeBondTx()` — wraps `claimDisputeBond()` via the shared
  `useContractWrite` plumbing; invalidates the refund balance query on
  success so the UI updates without a page refresh.
- Operator-manage page: emerald refund-available card that appears
  when there's a non-zero pending refund (or after a failed claim
  attempt). Surfaces the amount, a Claim refund button, and a Dismiss
  affordance when an error needs to be cleared.

Wires through `libs/tangle-shared-ui/src/data/graphql/index.ts`
re-exports so downstream consumers can use the hooks directly.
@drewstone drewstone requested a review from AtelyPham as a code owner May 14, 2026 10:22
@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for tangle-cloud ready!

Name Link
🔨 Latest commit 9d5d3df
🔍 Latest deploy log https://app.netlify.com/projects/tangle-cloud/deploys/6a05a2b032fafc0008a8d819
😎 Deploy Preview https://deploy-preview-3206--tangle-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for tangle-dapp ready!

Name Link
🔨 Latest commit 9d5d3df
🔍 Latest deploy log https://app.netlify.com/projects/tangle-dapp/deploys/6a05a2afda377f000862fa1a
😎 Deploy Preview https://deploy-preview-3206--tangle-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for tangle-leaderboard ready!

Name Link
🔨 Latest commit 9d5d3df
🔍 Latest deploy log https://app.netlify.com/projects/tangle-leaderboard/deploys/6a05a2af0ac3c800081d8645
😎 Deploy Preview https://deploy-preview-3206--tangle-leaderboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@drewstone drewstone merged commit ed4d778 into develop May 14, 2026
20 checks passed
@drewstone drewstone deleted the feat/dispute-bond-claim-ui branch May 14, 2026 10:26
drewstone added a commit that referenced this pull request May 14, 2026
… to master

Promotes:
- #3204 fix(vite): merge @radix-ui into react chunk to break load-order cycle
- #3206 feat(tangle-cloud): wire dispute-bond claim flow (v0.15.0)
- #3208 chore: retire `staging` branch, document develop → master flow

This is the first non-cascade release after retiring the staging branch.
From this point forward, every `[RELEASE]`-tagged commit on develop
auto-promotes to master via auto-sync-master-with-develop.yml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant