-
Notifications
You must be signed in to change notification settings - Fork 13
Display Invoice Rune #56
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
Display Invoice Rune #56
Conversation
zsh has an expansion with '='. if you run `source ./env.sh` in zsh, it will error `zsh: = not found`. Using [[ ]] in the if statement is safer and results in`=` evaluating properly with [[ ]] conditionals.
…bility Make env.sh compatible with zsh
Fix README.md typos
This commit adds react-router so that we can route to other pages, such as the upcoming Bookkeeper Dashboard page. It is set up so that the Header is shared among both the initial aka /home screen and the /bookkeeper screen. A redirect for '/' to '/home/' was added to support this shared header. Tests were written in App.test.tsx for this. There is no discernible difference to a user with this change, other than if they manually navigate to /bookkeeper they will see a blank page. There is no button navigating to /bookkeeper and will not be until it is ready for production. This is so that regular pull request reviews can be done vs having to review a giant pull request with the new bookkeeper dashboard feature. Test dependencies were updated and ts-jest + axios-mock-adapter were added so that components that import axios could be rendered in tests.
- Broke CLNHome and Bookkeeper into their own components - Keeping App smaller with Root component and root router only - Undo typescript downgrade from v5 to v4. - Adding env.sh to gitignore to avoid its future commits
Add react router
The "no transactions helper text" displays two different strings depending on if the node has active channels or not. This commit fixes a bug where these two are backwards and adds tests in CLNTransactionsList.test.tsx.
…tion-channels-text Fix empty transactions channel helper text
- Fixed DateBox test with locale - Fixed timer and canvas warnings - Moved mock data into utilities/test-utilities
…n-fix Adding local env.sh and indentation fixes
Renamed the type Channels to ChannelsDomain since it has extra fields added. ChannelsDto is the response from the network. This was done so it is clear what comes from the network and what is calculated, and to map fields from listpeerchannels into the previous Channel domain model. Removed some fields that are not used and not available in listpeerchannels: direction, max_htlc_value_in_flight_msat, htlc_minimum_msat, last_tx_fee_msat. Other fields were duplicates such as spendable_msatoshi and deleted since spendable_msat exists in listpeerchannels as well as in the original Channels object. use-http sendRequestToStore is now able to handle multiple rpc methods and it bundles the responses together. This allows for sending 2+ rpc calls to 1 state, such as for the new channels AppContextType. Removed the controllers/lightning.ts behavior of checking if listpeers was called and adding node.alias to the response. This was so that the domain layer would handle setting domain data. channels was added as an AppContextType. It combines listpeerchannels and listnodes so that the node aliases can be set to the channels. Added comment to isCompatibleVersion to explain what it does. Added Channels component tests. Update mock store to use channels instead of listChannels.
The code is written as per newer version on CLN. For older CLN nodes, we will collect channels arrays from listPeers.peers array and convert them into newer channels type by adding id as peer_id and connected and peer_connected. Remaining data stays the same.
For eg. changed `satoshi_to_us` to `to_us_sat`, `satoshi_to_them` to `to_them_sat` etc.
…listpeerchannels Update to listpeerchannels
…data Updated the mock data and checks with more realistic dataset
…emoval Remove msatoshi_received, msatoshi, msatoshi_sent from Payments and I…
…-compatble RC version compatibility check
…ct-wallet Add grpc option on connect wallet modal
|
I refactored sendRequestToSetStore to take Request as a parameter, so that I could bundle api calls that use different |
1c48653 to
309a599
Compare
|
Hi @evansmj, Thank you for the PR. Here are my inputs after reviewing it:
In summary, invoice rune user story should look like: 1: On application start, read the |
|
Hey @ShahanaFarooqui im looking through figma and the existing app but i can't find a nice + icon svg. Is there one you have in mind? otherwise i have this one: |
|
It looks fine but I would recommend to tag Basak on figma asking for plus icon svg. It will save us some time and reworking effort. |
Sure i've added the request here |
This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen.
3d78312 to
5b881c8
Compare
|
hey @ShahanaFarooqui ready for review. I also added a loading state and disable the invoice rune buttons while loading. And I show toasts for successfully creating an invoice rune and if an error occurs. |
- Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add
af4d1c5 to
82e3a9c
Compare
|
Thanks everyone. Looking forward to integrating CLN soon! |
* Updating version number * Display Invoice Rune (#56) * Display Invoice Rune * Cosmetic updates for Invoice Rune * Update plus/add icon svg (#70) * Resolve commando-rune deprecation and use createrune instead (#72) * Change invoice and offer to lowercase (#68) * Add tests for address casing fix (#69) * Update jsx camelCase property name * Adding mock use-http hook * Add tests for invoice and offer capital casing --------- Co-authored-by: Michael Evans <evansmj@users.noreply.github.com> Co-authored-by: afxsoftware <33781025+afxsoftware@users.noreply.github.com>
* Display Invoice Rune This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen. * Cosmetic updates for Invoice Rune - Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add --------- Co-authored-by: ShahanaFarooqui <shahana.farooqui@gmail.com>
* Display Invoice Rune This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen. * Cosmetic updates for Invoice Rune - Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add --------- Co-authored-by: ShahanaFarooqui <shahana.farooqui@gmail.com>
* Display Invoice Rune This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen. * Cosmetic updates for Invoice Rune - Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add --------- Co-authored-by: ShahanaFarooqui <shahana.farooqui@gmail.com>
* Display Invoice Rune This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen. * Cosmetic updates for Invoice Rune - Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add --------- Co-authored-by: ShahanaFarooqui <shahana.farooqui@gmail.com>
* Display Invoice Rune This commit adds an invoice rune to the ConnectWallet component. On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen. * Cosmetic updates for Invoice Rune - Added tooltip for `create new` button - Added placeholder if the invoice rune in empty - Changed spinner type to application's UI standard - Added error detail in toast if creation fails - Changed to "a bit" slicker svg for Add --------- Co-authored-by: ShahanaFarooqui <shahana.farooqui@gmail.com>



This commit adds an invoice rune to the ConnectWallet component. Most values in that screen come from the backend method /shared/connectwallet and the type is found at app-config.type.ts/WalletConnect.An invoice rune is added to WalletConnect because that is what is shown on the ConnectWallet.tsx component. ApplicationActions.SET_WALLET_CONNECT appends an invoice rune if one is found. If one is not found, ConnectWallet.tsx has a useEffect that checks for a missing invoice rune, and makes a createrune rpc call and then refreshes the component.This commit adds an invoice rune to the ConnectWallet component.
On application start, we try to read an INVOICE_RUNE from .commando-env. One will be written to .commando-env when the user clicks to create one, if none exist already. If one does exist, it gets passed through and shown on the screen.