wizardsardine / liana

The missing safety net for your coins
https://wizardsardine.com/liana
BSD 3-Clause "New" or "Revised" License
321 stars 57 forks source link

Add a search feature to GUI #1005

Open edouardparis opened 8 months ago

edouardparis commented 8 months ago

My vision would be a πŸ”Ž search button in the sidebar that open a modal with a form, where a user enter the search input and it list the candidates with the matching result highlighted. Then on Enter, user is redirected to one of the following panel: either transactions, payments or a psbts with the selected item details opened.

Daemon requirements:

The new search_labels command

Request

Field Type Description
query string Search query
limit integer (optional) Limit of results to retrieve

Response

Field Type Description
results array Array of Search results ordered by matching rank

Search result entry

Field Type Description
label string Label matching the query with highlights
label_item string txid, outpoint matching the label.

Implementation

This one will require a daemon sqlite migration with a new FTS5 table on the label value, label id

pythcoiner commented 7 months ago

great idea, i think should also allow to search an address => by example, running a business i put address on customer invoice, then at payment time customer call me for double check address, i actually don't have any way to verify a previously generated address belongs to me

edouardparis commented 7 months ago

Yes, It will be certainly done in a second part because we lack for now of a 'address detail' view where the user could be redirected.