feat(audit-trail): add search integration and data resolution hooks - #193
Open
alexruzenhack wants to merge 2 commits into
Open
feat(audit-trail): add search integration and data resolution hooks#193alexruzenhack wants to merge 2 commits into
alexruzenhack wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
alexruzenhack
commented
May 20, 2026
alexruzenhack
commented
May 20, 2026
alexruzenhack
added a commit
that referenced
this pull request
May 21, 2026
alexruzenhack
force-pushed
the
feat/audit-trail-wasm
branch
from
May 21, 2026 16:44
b1873e9 to
516c2c1
Compare
alexruzenhack
force-pushed
the
feat/audit-trail-search
branch
from
May 21, 2026 16:46
e4f8537 to
a8d51b0
Compare
msarcev
approved these changes
May 21, 2026
alexruzenhack
force-pushed
the
feat/audit-trail-wasm
branch
from
May 29, 2026 09:41
516c2c1 to
cf0cc41
Compare
alexruzenhack
force-pushed
the
feat/audit-trail-search
branch
from
May 29, 2026 09:43
a8d51b0 to
fe4d32a
Compare
alexruzenhack
marked this pull request as ready for review
May 29, 2026 09:45
alexruzenhack
force-pushed
the
feat/audit-trail-wasm
branch
2 times, most recently
from
June 15, 2026 17:33
dae80f7 to
d9c8c8e
Compare
alexruzenhack
force-pushed
the
feat/audit-trail-search
branch
from
June 15, 2026 18:12
fe4d32a to
36e6683
Compare
VmMad
requested changes
Jul 13, 2026
Comment on lines
+30
to
+33
| function extractOnlyTheId(possibleDashedId: string): string { | ||
| const dashAt = possibleDashedId.indexOf('-') || -1; | ||
| return dashAt > -1 ? possibleDashedId.slice(0, dashAt) : possibleDashedId; | ||
| } |
Member
There was a problem hiding this comment.
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)$/, ''); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsxto handle Audit Trail IDs and navigate to the correct route.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:
0xa4925f5346f863e359111b96ba33002b219bfcc9386f73ee429fbb96998e25fb/audit-trail/0xa4925f5346f863e359111b96ba33002b219bfcc9386f73ee429fbb96998e25fb.