Skip to content
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

Feat, Search #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Feat, Search #10

wants to merge 1 commit into from

Conversation

a-kon
Copy link

@a-kon a-kon commented Jan 30, 2023

Ref https://github.com/llamafolio/llamafolio-app/issues/671

searchLabel takes searchTerm argument that has to be a normalized string (lowercased, trimmed, etc.) and returns an array of search results. I certainly can't say it's a good search implementation, but I think it is enough for the first time for a small number of addresses we have. Later we can consider transferring data from JSON.

Also, in this PR I added an address field to every JSON to avoid using this function, I'll remove it in the following PR.
CleanShot 2023-01-30 at 17 52 49@2x

CleanShot 2023-01-30 at 17 54 52@2x

Both `labels` and `links` are arrays, that makes rendering easier.

@a-kon a-kon requested a review from 0xsign January 30, 2023 10:59
@a-kon a-kon self-assigned this Jan 30, 2023
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.

1 participant