fix(event): add support for event detail page#241
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
glihm
commented
Oct 22, 2025
| decodedEvent && (hasDecodedKeys || hasDecodedData), | ||
| ); | ||
|
|
||
| useEffect(() => { |
Contributor
Author
There was a problem hiding this comment.
I don't know enough react to evaluate if this is correct or not. Maybe need some review here @nrmnqdds.
| value="decoded" | ||
| className="mt-0 flex-1 overflow-auto" | ||
| > | ||
| {/* TODO: handle the nested events without flat, where the selector could be composed of multiple felts. */} |
Contributor
Author
There was a problem hiding this comment.
This is not critical, but definitely worthy to have a look later. But most of contracts are using flat attribute.
| key={type} | ||
| value={type} | ||
| className={cn( | ||
| "data-[state=active]:shadow-none py-[2px] pr-[8px] pl-[10px] rounded-sm data-[state=active]:bg-background-200 data-[state=inactive]:bg-background-100 data-[state=inactive]:text-foreground-400 data-[state=active]:text-foreground-100 box-border border border-background-200 h-[20px] text-[11px]/[16px] font-medium uppercase tracking-[0.24px]", |
Contributor
Author
There was a problem hiding this comment.
This seems a lot, but I can take more time checking in the codebase if this is acceptable or not.
| * @param value - The value to stringify. Which usually represents a data fetched from the chain. | ||
| * @returns The stringified data. | ||
| */ | ||
| export function stringifyData(value: unknown): string { |
Contributor
Author
There was a problem hiding this comment.
Not sure if we have a function for that already, I've checked the utils and I've seen some for call data, but maybe it applies also to events.
Feel free to change if necessary.
kariy
added a commit
that referenced
this pull request
Oct 23, 2025
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.
WIP on the event details page.
The goal here is to:
Note
Revamps the Event page with raw/decoded tabs and formatting controls, and refactors the event hook to decode events via ABI with improved validation and types.
src/modules/Event/hooks.ts):SuccessfulTransactionReceiptResponse, strict index parsing/validation, and queryenabledguard.EmittedEventlocally; parses viaevents.parseEventswithAbiParser2,sortedAbi, and extracts decoded keys/data.decodedEvent(name, qualifiedName, keys, data) plusreceipt,block,event.src/modules/Event/page.tsx):FeltDisplayAsToggle).CopyableInteger, improved metadata (transaction, from, block, timestamp, event type), responsive updates, and cleaner rendering.src/shared/components/ToggleButton.tsx):Selectorwith@cartridge/uiTabs-based toggle; updated styles/behavior.abi.ts: exportsAbiEventMember; usessortedAbihelper.string.ts: addsstringifyDatafor human-readable event values.Written by Cursor Bugbot for commit c8306ab. This will update automatically on new commits. Configure here.