-
Notifications
You must be signed in to change notification settings - Fork 110
Add Token Search Results #1056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Token Search Results #1056
Conversation
src/containers/shared/components/SearchResults/SearchResults.tsx
Outdated
Show resolved
Hide resolved
Make sure the search doesnt happen on non mainet explorers. The xrpl meta url should also be an environment variable. |
src/containers/shared/components/SearchResults/SearchResults.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/TokenSearchResults/TokenSearchResults.tsx
Outdated
Show resolved
Hide resolved
src/containers/shared/components/TokenSearchResults/styles.scss
Outdated
Show resolved
Hide resolved
</div> | ||
</div> | ||
</div> | ||
<div className="result-issuer-line"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the bottom two lines
src/containers/shared/components/TokenSearchResults/TokenSearchResults.tsx
Show resolved
Hide resolved
@@ -540,6 +540,9 @@ | |||
"asset_class": "Asset Class", | |||
"trading_pairs": "Trading Pairs", | |||
"deleted": "Deleted", | |||
"holders": "HOLDERS: {{holders}}", | |||
"trustlines": " TRUSTLINES: {{trustlines}}", | |||
"website": "Wesbite", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, should be "Website".
## High Level Overview of Change Fix typo for website in english translation ### Context of Change Bug introduced in #1056 ### Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Refactor (non-breaking change that only restructures code) - [ ] Tests (You added tests for code that already exists, or your new feature included in this PR) - [ ] Documentation Updates - [ ] Translation Updates - [ ] Release ### TypeScript/Hooks Update - [ ] Updated files to React Hooks - [ ] Updated files to TypeScript
High Level Overview of Change
In order to improve the usability of the search bar inside of Explorer, matching tokens will now auto-populate as a user is typing. The results are clickable and redirect to the respective token page. The data is pulled from XRPLMeta and cached inside of the Explorer backend to display an open sourced list of tokens and relevant statistics.
Backend changes implement serverside caching of tokens data from XRPL Meta, and exposes an API from the explorer backend for search result querying. This is less expensive than the previous approach of websockets (which remain open for the duration of a user session) and are susceptible to rate limits on XRPLMeta's public node infrastructure. This also offers resilience in the case that the public XRPLMeta node has downtime.
Desktop:

Mobile:

Context of Change
Type of Change
TypeScript/Hooks Update
Before / After
Test Plan