Skip to content

feat: link to the Attack Mode Approvals dashboard#32

Open
Equious wants to merge 1 commit into
mainfrom
feat/approvals-links
Open

feat: link to the Attack Mode Approvals dashboard#32
Equious wants to merge 1 commit into
mainfrom
feat/approvals-links

Conversation

@Equious

@Equious Equious commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Surfaces the Approvals dashboard from the explorer in two places. Verified locally against the prod mainnet API (nav link + per-agreement deep links resolve correctly).

1. Nav link (next to Bridge)

Adds an "Approvals" entry to the header tools nav. Built from currentNetwork.approvalsUrl ?? APPROVALS_URL, with ?chain=<l2ChainId> so it opens the dashboard on the network you're viewing.

2. Per-agreement deep link

Every Safe Harbor agreement view now shows a "View status on Approvals" link next to the agreement address, deep-linking to that agreement's state:
<dashboard>/request/<agreementAddress>?chain=<l2ChainId>.

This lives in AgreementDetails.vue, which renders in all agreement contexts — the agreements list, the contract/address page, and the go-to-production flow — so it's covered everywhere with one change.

Supporting bits

  • NetworkConfig.approvalsUrl? (optional per-network override) + APPROVALS_URL default in configs/index.ts
  • i18n: header.nav.approvals, safeHarbor.viewOnApprovals

Cross-repo dependency (already shipped)

The dashboard is a single app serving both networks, so these links pass ?chain=. The companion bc-approvals change to honor ?chain=626|627 on load is already merged and deployed to approvals.battlechain.com.

🤖 Generated with Claude Code

- Add an "Approvals" link to the header tools nav (next to Bridge), pointing at
  the approvals dashboard with ?chain=<l2ChainId> to pre-select the network.
- Every Safe Harbor agreement view (agreements list, contract page, promotion
  flow — all render AgreementDetails) now shows a "View status on Approvals"
  deep link to that agreement's state: <dashboard>/request/<agreement>?chain=<id>.
- New NetworkConfig.approvalsUrl override + APPROVALS_URL default
  (https://approvals.battlechain.com); i18n labels added.

The dashboard is a single app serving both networks, so links carry ?chain= to
open on the correct one (requires the dashboard to honor the param).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bc-block-explorer-app Ready Ready Preview, Comment Jun 19, 2026 6:20pm

Request Review

@github-actions

Copy link
Copy Markdown

API E2E Test Results

220 tests   220 ✅  17s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 7544803.

@github-actions

Copy link
Copy Markdown

API Prividium E2E Test Results

4 tests   4 ✅  6s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 7544803.

@github-actions

Copy link
Copy Markdown

Unit Test Results

    4 files    273 suites   11m 31s ⏱️
2 293 tests 2 292 ✅ 1 💤 0 ❌
2 458 runs  2 457 ✅ 1 💤 0 ❌

Results for commit 7544803.

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