Skip to content

Conversation

@markshenouda
Copy link
Member

Screenshot 2025-12-16 at 5 13 56 PM Screenshot 2025-12-16 at 5 13 41 PM

@markshenouda markshenouda self-assigned this Dec 16, 2025
@markshenouda markshenouda linked an issue Dec 16, 2025 that may be closed by this pull request
@roomote
Copy link

roomote bot commented Dec 17, 2025

Rooviewer Claude Clock   See task on Roo Cloud

Reviewed commit 25285be which extracts token mapping to a variable and simplifies the verifiers prop by passing uniqueVerifiers directly, addressing @Zelig880's feedback. No new issues found. One previously flagged issue remains:

  • Fix duplicate search results on Verifiers page (verifiers appear in both "Tokens" and "Verifiers" sections)
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

Comment on lines 79 to 85
verifiers={uniqueVerifiers.map((verifier) => ({
id: verifier.id,
name: verifier.name,
type: verifier.type,
logo: verifier.logo,
totalNetworks: verifier.totalNetworks,
}))}
Copy link

Choose a reason for hiding this comment

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

On the Verifiers page, uniqueVerifiers is passed to both the tokens prop (lines 73-77) and this new verifiers prop. This will cause verifiers to appear twice in search results: once under "Tokens" and once under "Verifiers". Consider passing an empty array for tokens here since this page focuses on verifiers.

Suggested change
verifiers={uniqueVerifiers.map((verifier) => ({
id: verifier.id,
name: verifier.name,
type: verifier.type,
logo: verifier.logo,
totalNetworks: verifier.totalNetworks,
}))}
verifiers={uniqueVerifiers.map((verifier) => ({
id: verifier.id,
name: verifier.name,
type: verifier.type,
logo: verifier.logo,
totalNetworks: verifier.totalNetworks,
}))}

Fix it with Roo Code or mention @roomote and request a fix.

Copy link

@Zelig880 Zelig880 left a comment

Choose a reason for hiding this comment

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

One comment that apply to many part of the code

Comment on lines 116 to 122
verifiers={allVerifiers.map((verifier) => ({
id: verifier.id,
name: verifier.name,
type: verifier.type,
logo: verifier.logo,
totalNetworks: verifier.totalNetworks,
}))}

Choose a reason for hiding this comment

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

This mapping does not seem to be necessary. You are mapping to the same props name, it should be removed. (unlerss I am not seeing something hidden)

note: Same apply for all other occurances of this

@Zelig880 Zelig880 merged commit 950bfe0 into ccip-1-7-updated-new-data Dec 19, 2025
11 of 14 checks passed
Zelig880 pushed a commit that referenced this pull request Dec 19, 2025
* update: Token details page

* update: Lane latest data

* fix: lint

* remove: unused console.log

* remove: unused console.log

* update: token drawer to include verifiers

* refactor: extract realtime data logic into reusable hooks and components

- Create custom hooks for data fetching:
  * useTokenRateLimits - single lane rate limits
  * useMultiLaneRateLimits - multiple lanes in parallel
  * useTokenFinality - token finality data

- Add RateLimitCell component to replace complex nested ternaries

- Create singleton realtimeDataService instance to avoid multiple instantiations

- Add rate-limit-formatter utilities for consistent formatting

- Update LaneDrawer, TokenDrawer, and TokenChainsTable to use new hooks

- Add proper cleanup in useEffect hooks to prevent memory leaks

Benefits:
- Reduced code duplication (~133 lines removed)
- Improved readability with <RateLimitCell> vs 7-level nested ternaries
- Better separation of concerns
- More testable code
- Proper cleanup handling

* fix: use enums for tabs

* refactor: cleanup Lane's table logic

* refactor: token drawer filtering logic

* fix: token grid in chain page design

* fix: the token card desgin

* fix: lint

* feat: add verifiers to the search (#184)

* feat: add verifiers to the search

* refactor: simplify verifiers mapping in Chain component

* refactor: simplify verifiers mapping in CCIP components

* refactor: optimize token mapping for verifiers in CCIP components

* feat: enhance verifiers data handling with token support

* fix: typecheck
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.

[CCIP] Update Search

3 participants