Commit Graph

72 Commits

Author SHA1 Message Date
Jakub Sokołowski 3609f1bf33
add go-report card
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-07 07:28:39 -04:00
Jakub Sokołowski 619a55b179
formatting and typos
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-07 07:25:21 -04:00
Jakub Sokołowski 5f425f9e30
add a basic README and a screenshot
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-05 10:16:05 -04:00
Jakub Sokołowski 51c30bfa51 handle success return value separately
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 9d236b298a simplify rcp call methods
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 70083a03c9 fix json key typo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski e9909226f6 add a t binding for trusting a whisper peer
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 6ba165319f fix rendering when there's no peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski b80307301e add Stringer for AppData
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski febde4aeba add bindings for refreshing the peers view
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski b620ad6ea6 add StateController to take Client out of AppState
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski ecf69febbc rename State to AppState
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski e678ee4d70 rename Peers State to AppState, PeersModel to AppModel
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 631a78602e rename Model to PeersModel
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 8bfea2f8b3 add a call to admin_nodeInfo before launching gui
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski 2bc143aa2b don't create new state, method argument is already a copy
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-04 09:06:36 -04:00
Jakub Sokołowski d99f664ede drop useless import, use redux v2
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski b328dc3655 don't allocate memory in case return value is nil
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 742a6766b4 move all ViewController methods to view.go
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 923ae10e4a use the time.After in fetching loop select case
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski b4e01ef892 rename ID to Id
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski b43f954785 do not ignore go.mod and go.sum
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 3655f5605b add moar comments
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 624c286650 pass interval to loop as argument
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski d793156f62 manage cursor based on current peer position
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski b307b82ac4 re-add removing of peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski d48daf6481 use redux store for managing state of underlying data
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 51d299888d implement peer removal without prompt
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 08ec326ea4 configure keybindings, placeholder, and cursor only once
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 15634abaf6 fix resizing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 71c4d860e3 add Enabled attribute for ViewController
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski aa49194e75 add trusted to details
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski d8b743f211 show if peer is static
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski a9f41a482c use wider table dividers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 70a04b015e use just j and k for navigation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 3cda42fc03 add ctrl+k and ctrl+j for navigation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 4d7b92f743 write peer details on first render
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 39c5461495 build to bin/
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski fce1049354 add Wrap setting to views, add local addr to peer details
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski f2a7540bb8 use better details formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 017a84a59f update peer details on cursor movement
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 0c50c2d05c Extract fetch to its own function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski c635fdd0c4 drop NewViewManager function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski abb276f6f1 rename extra field in ViewController to State
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 197679f10c attach PeersState under Data for ViewController
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 176330a41f refactor to make arrow key handlers into methods of *View
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski ccad242463 don't set global highight or cursor
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski ae37f8b1e8 refactor to add ViewManager and View structs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski fbb29afb49 add comment about possible solution
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00
Jakub Sokołowski 55af1447e4 ignore log files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00