Skip to content

feat(audit-trail): add search integration and data resolution hooks - #193

Open
alexruzenhack wants to merge 2 commits into
feat/audit-trail-wasmfrom
feat/audit-trail-search
Open

feat(audit-trail): add search integration and data resolution hooks#193
alexruzenhack wants to merge 2 commits into
feat/audit-trail-wasmfrom
feat/audit-trail-search

Conversation

@alexruzenhack

@alexruzenhack alexruzenhack commented May 19, 2026

Copy link
Copy Markdown
Contributor

Description of change

This PR enables users to search for Audit Trail objects directly from the Explorer search bar and provides the data hooks needed to fetch their details.

Key Features and Changes

  • Search Integration: Updated Search.tsx to handle Audit Trail IDs and navigate to the correct route.
  • Data Hooks:
    • useResolveAuditTrail: Fetches the core object data.
    • useGetEvents: Fetches the historical event records associated with the trail.

How the change has been tested

To test locally, paste a valid Audit Trail ID into the search bar:

  1. ID: 0xa4925f5346f863e359111b96ba33002b219bfcc9386f73ee429fbb96998e25fb
  2. Verify it routes to /audit-trail/0xa4925f5346f863e359111b96ba33002b219bfcc9386f73ee429fbb96998e25fb.

@alexruzenhack
alexruzenhack requested a review from a team as a code owner May 19, 2026 16:27
@vercel

vercel Bot commented May 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rebased-explorer Ready Ready Preview, Comment Jun 15, 2026 6:18pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
apps-ui-kit Ignored Ignored Preview Jun 15, 2026 6:18pm
iota-evm-bridge Skipped Skipped Jun 15, 2026 6:18pm
iota-multisig-toolkit Skipped Skipped Jun 15, 2026 6:18pm
iota-names Skipped Skipped Jun 15, 2026 6:18pm
wallet-dashboard Skipped Skipped Jun 15, 2026 6:18pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard May 19, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names May 19, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit May 19, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge May 19, 2026 16:27 Inactive
@alexruzenhack
alexruzenhack marked this pull request as draft May 19, 2026 17:56
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit May 20, 2026 11:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge May 20, 2026 11:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names May 20, 2026 11:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard May 20, 2026 11:41 Inactive
Comment thread apps/explorer/src/hooks/useGetEvents.ts Outdated
Comment thread apps/explorer/src/hooks/useResolveAuditTrail.ts Outdated
@vercel
vercel Bot temporarily deployed to Preview – iota-names May 20, 2026 15:20 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge May 20, 2026 15:20 Inactive
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard May 20, 2026 15:20 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit May 20, 2026 15:20 Inactive
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-wasm branch from b1873e9 to 516c2c1 Compare May 21, 2026 16:44
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-search branch from e4f8537 to a8d51b0 Compare May 21, 2026 16:46
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit May 21, 2026 16:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge May 21, 2026 16:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard May 21, 2026 16:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names May 21, 2026 16:47 Inactive
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-wasm branch from 516c2c1 to cf0cc41 Compare May 29, 2026 09:41
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-search branch from a8d51b0 to fe4d32a Compare May 29, 2026 09:43
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard May 29, 2026 09:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names May 29, 2026 09:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge May 29, 2026 09:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit May 29, 2026 09:43 Inactive
@alexruzenhack alexruzenhack self-assigned this May 29, 2026
@alexruzenhack
alexruzenhack marked this pull request as ready for review May 29, 2026 09:45
@alexruzenhack
alexruzenhack requested a review from msarcev May 29, 2026 09:45
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-wasm branch 2 times, most recently from dae80f7 to d9c8c8e Compare June 15, 2026 17:33
@alexruzenhack
alexruzenhack force-pushed the feat/audit-trail-search branch from fe4d32a to 36e6683 Compare June 15, 2026 18:12
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard June 15, 2026 18:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit June 15, 2026 18:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge June 15, 2026 18:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names June 15, 2026 18:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – wallet-dashboard June 15, 2026 18:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-multisig-toolkit June 15, 2026 18:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-evm-bridge June 15, 2026 18:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – iota-names June 15, 2026 18:17 Inactive
Comment on lines +30 to +33
function extractOnlyTheId(possibleDashedId: string): string {
const dashAt = possibleDashedId.indexOf('-') || -1;
return dashAt > -1 ? possibleDashedId.slice(0, dashAt) : possibleDashedId;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in testnet, searching for did:iota:testnet:0xdc704ab63984d5763576c12ce5f62fe735766bc1fc9892a5e2a7be777a9af897 gets me to /identity/did?network=testnet so it breaks.

do this instead:

Suggested change
function extractOnlyTheId(possibleDashedId: string): string {
const dashAt = possibleDashedId.indexOf('-') || -1;
return dashAt > -1 ? possibleDashedId.slice(0, dashAt) : possibleDashedId;
}
function extractOnlyTheId(possibleDashedId: string): string {
return possibleDashedId.replace(/-(audittrail|notarization)$/, '');
}

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.

3 participants