You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
For proper feedback to the user about create, updated and lists of current/past transaction we want to have a quick way to let the UI know if the state of a given transaction has changed. Naturally we would turn to GraphQL subscriptions. Unfortunately the juniper crate we rely on to provide the API through the proxy is still not providing that functionality, see #54 which tracks the progress and the implementation in #433 - which in turn is blocked on #497 (a change we personally would welcome as well).
That said we can look to alternatives to satisfy this need. A simple stopgap solution is a to offer a single SSE the UI subscribes to and gets its fix of juicy new transaction upates.
Note that these states don’t tell us if a transaction was “successful” in the ledger, i.e. whether some money was transferred. This is what TransactionApplied::result is for.
For proper feedback to the user about create, updated and lists of current/past transaction we want to have a quick way to let the UI know if the state of a given transaction has changed. Naturally we would turn to GraphQL subscriptions. Unfortunately the juniper crate we rely on to provide the API through the proxy is still not providing that functionality, see #54 which tracks the progress and the implementation in #433 - which in turn is blocked on #497 (a change we personally would welcome as well).
That said we can look to alternatives to satisfy this need. A simple stopgap solution is a to offer a single SSE the UI subscribes to and gets its fix of juicy new transaction upates.
Design
Originally proposed by @rudolfs in #81 (comment):
The transaction status subscription could look something like this:
Potentially we could also use a subscription for new transactions to show a badge on the wallet icon:
The text was updated successfully, but these errors were encountered: