Skip to content

feat(admin): add timelock queue viewer (#1014) - #1064

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
JerryOJJ:feat/1014-timelock-queue-admin
Sep 29, 2026
Merged

Chucks1093 merged 1 commit into
accesslayerorg:devfrom
JerryOJJ:feat/1014-timelock-queue-admin

Conversation

@JerryOJJ

Copy link
Copy Markdown

Summary

Adds a timelock action queue panel to the admin dashboard for issue #1014.

Changes

  • Adds pending queue and executed/cancelled history views with live ETA countdowns.
  • Adds full JSON parameter details in an accessible dialog.
  • Gates cancellation on configured admin access, pending status, and the API-provided cancellation deadline; refreshes queue/history after cancellation.
  • Adds typed service methods and focused tests for API normalization, countdown, detail display, and cancellation gating.

Backend integration required

This client repository does not contain a timelock contract ABI, contract address/configuration, or the backend route implementation. The panel currently expects authenticated endpoints GET /admin/timelock/actions/pending, GET /admin/timelock/actions/history, and POST /admin/timelock/actions/:id/cancel. Queue records must include id, type, params, eta, status, and cancellable; cancellation-window metadata may be supplied as cancellationDeadline. The cancel endpoint must enforce admin authorization and the on-chain cancellation window and submit the contract transaction. Marked draft until that API/contract integration is confirmed.

Verification

  • pnpm vitest run src/services/__tests__/admin.service.test.ts src/components/admin/__tests__/TimelockQueuePanel.test.tsx (17 passed)
  • pnpm lint (passes with two existing warnings in BatchTradePanel.tsx)
  • pnpm build (passes)
  • pnpm test currently has 137 failures in unrelated existing suites; 285 files pass.

Closes #1014

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@JerryOJJ Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 marked this pull request as ready for review September 29, 2026 09:15
@Chucks1093
Chucks1093 merged commit aa715c0 into accesslayerorg:dev Sep 29, 2026
1 check passed
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.

Build timelock action queue viewer in admin panel

2 participants