-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Propose to add inside the main view information about balance #30
Propose to add inside the main view information about balance #30
Conversation
please, could you rebase? |
@lvaccaro all done |
@lvaccaro I think that this PR is ready to revision it, I don't want to make a PR bigger than 20 files. In sum, what I am proposing with this PR?
I hope this PR can help |
Hi, sorry to be late.. I tested the file log mechanism/notifications and they looks really good to me. |
Hi @lvaccaro, Sorry about the UI bug, I will work on it to fix the error. Sorry again about that. |
In addition, about
I don't test enough this, but on Google Pixel XL 4 and Android 10 I had a crash and the log file was 64 mb (too much information to analyze it on android phone, right?) |
I looked inside the layout and I'm able to reproduce it with the small display, such as 4''. The problem look like be the space inside the display is not enough with the layout that I designed. I want have also your opinion on this layout and on a possible solution that we can add. I tried to remove the lamp icon when the lightningd is running and use the button "shot down" inside the app bar but the layout looks like an empty layout, like the figure below I'm happy to receive your feedback on this view. In addition, I'm happy that do you like the system notification and it work for you.
Do you mean the verbose message inside the android log? |
250bf69
to
a9ab040
Compare
I am trying to reproduce the 64mb file error, and more testing, anyway it is a concept ack . There are 3 balances as you preview: offchain/onchain funds, moreover the amount you spend & receive in the channels. I am not able to suggest the best layout/strategy, but I don't dislike the main page of Zap app / Ligthning app (really essential) or Eclair app with small text of onchain/offchain balance. I am using Nexus One for testing. |
This is a limit cases but the app should be work well, to send money with some channel opened in the pass. This is a in pass fix, I wil continue to work more on the PR clightning4j#30 Signed-off-by: Vincenzo Palazzo <[email protected]>
This is a limit cases but the app should be work well, to send money with some channel opened in the pass. This is a in pass fix, I wil continue to work more on the PR clightning4j#30 Signed-off-by: Vincenzo Palazzo <[email protected]>
- The app changes the view when the node will stop - the correct network validation now use the txdiscard to release the input used to test the address
Signed-off-by: Vincenzo Palazzo <[email protected]>
Signed-off-by: Vincenzo Palazzo <[email protected]>
a9ab040
to
7538fde
Compare
Rebase with lvaccaro@7282c81 and made some change (not enough to review)
I try to reproduce this and I understand that when the app are working for long time, the log file is big and with some use case for instance, if I want to see the log after shutdown, the text is too much and the app crash before to see the log activity. I can work on this problem after this PR.
Removed, sorry about that
In the last commit, I add an additional card to see the balance that you suggest here. I will work to support the small display.
I like your suggestion, I think that is a cool idea to use two fragments in the same main activity to switch it and make the UI a little cleaner. But this requires a little refactoring and at the moment I want (if you agree) try to make a subsistem a little more strong and try to support all type of notify and only after improve the UI like the actual lightning wallet |
I full agree with your consideration, maybe it is better build something stable for now and postpone main ui refactor. Then I am ok to have balance, maybe a little smaller. Related to the crash, I have just merged the lightning_v0.9.0 branch (I hope it is not related to this). If it could help, you could try to retrieve the linghtningd.log file from fileDir() programmatically before it was cleaned by a fresh lightningd starts. |
Hi @lvaccaro, I will work on UI, I will update tomorrow 👍 About the crash, I founded the problem and I pushed a solution, at app level, but I think is good to understand what happened inside lightningd. In sum, after the restart of lightning without tor the not have 0 addressed where it can bind to make the node ready to receive the request of connection. More here https://github.com/lvaccaro/lamp/pull/35 If you want discuss why the addresses array is empty I'm ready to help :) UpdateI think that I answered to different crash, I mean the crash without tor and inside this conversation is mentioned only the log crash. |
2500141
to
ab51544
Compare
Signed-off-by: Vincenzo Palazzo <[email protected]>
4b8de4c
to
69477c8
Compare
Hi, balances looks good also in the emulator. I think the UI contains twice the same actions, accessible and displayed in different ways:
Related to PayViewActivity maybe if you could split the commis we can continue the discussion in another MR:
PS: send / receive are common words used both for onchain & offchain tx. Maybe it is only my opinion but I prefer pay (instead send) and new invoice (instead receive). I am pretty sure most of the previous UI will be overwritten as soon as an organic design will be available, but I prefer to merge the file logger contained here asap. |
Hi @lvaccaro,
With this PR, I want to propose adding more information, such as the balance information at the main view of lamp.
How discussed in some other PR, I think that is possible to use lightningd to calculate the balance of the wallet. However, the big problem is how to update and/or check if the balances are changed (At the moment I don't have a personal solution, I'm thinking yet).
The view at the moment when lightningd is running looks like the figure above
P.S: At the moment the label are static, sorry :)P.S> At the moment is possible only receive the notification when the user funds a channel