Skip to content
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

Remote nodes + mobile layout #826

Merged
merged 62 commits into from
Nov 3, 2017
Merged

Conversation

Jaqueeee
Copy link
Contributor

basically everything in #780 except the things depending off monero-project/monero#2109

  • mobile layout + android optimizations
  • use-remote-node-while-syncing-local-daemon
  • blockchain folder settings
  • lots of small improvements

know issues: monerod fast sync updates has made the daemon less responsive while syncing. This can cause a couple of seconds freeze in the gui occasionally. I'm working on making the affected rpc calls asynchronous.

@Jaqueeee
Copy link
Contributor Author

Rebased and fixed conflicts

@SamsungGalaxyPlayer
Copy link

@Jaqueeee this is amazing. Thank you so much for your hard work.

@Jaqueeee
Copy link
Contributor Author

rebased again.

LeftPanel.qml Outdated
@@ -441,6 +446,7 @@ Rectangle {
// ------------- Sign/verify tab ---------------
MenuButton {
id: signButton
visible: !isAndroid && !isIOS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you want to disable signing/verifying a message on those ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout on that page didn't look OK on smaller screens. fixed now. Enabling.

RightPanel.qml Outdated
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plenty of spurious changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

RightPanel.qml Outdated
//// anchors.fill: parent
//// source: parent
//// desaturation: root.enabled ? 0.0 : 1.0
//// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems to be a temporary bodge, right ? Not that I think twitter stuff has anything to do in a wallet though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. It doesn't belong in the wallet. that's why i commented it out. But i might as well delete it permanently?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed all twitter junk

@@ -383,7 +375,7 @@ ListView {
Column {
anchors.top: parent.top
width: 148
visible: isOut
visible: isOut && fee != ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems odd. Could it hide valid txes if the fee isn't properly saved ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It hides the fee instead of showing it as "0.00000000". The amount column would still be visible. Reason is MyMonero shows amount+fee baked together

anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -5
anchors.left: parent.left
anchors.leftMargin: appWindow.persistentSettings.customDecorations ? 20 : 40
anchors.leftMargin: 50 * scaleRatio //appWindow.persistentSettings.customDecorations ? 20 * scaleRatio: 40 * scaleRatio
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that meant to ignore the bool now ? If so, could be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

CheckBox {
id: remoteNode
text: (localNode.checked) ? qsTr("Connect to a 3rd party remote node until my own node has finished syncing") + translationManager.emptyString
: qsTr("Connect to a 3rd party remote node") + translationManager.emptyString
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove 3rd party since it doesn't have to be. Doesn't really matter though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Layout.minimumWidth: 300 * scaleRatio
opacity: remoteNode.checked
id: remoteNodeEdit
daemonAddrText: persistentSettings.remoteNodeAddress.split(":")[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about trimming being possibly needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -86,15 +86,40 @@ ColumnLayout {
return wordsArray.length === 25
}

function updateFromQrCode(address, payment_id, amount, tx_description, recipient_name, extra_parameters) {
// Switch to recover from ke ys
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ke ys ? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

strength = 100
// privacyLevel component uses 1..13 scale
privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength)
// TODO: password strength meter segfaults on Android.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any stack trace for this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially reported by @MoroccanMalinois, do you have a stack trace for this? I don't have access to any android devices at the moment.

// privacyLevel component uses 1..13 scale
privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength)
// TODO: password strength meter segfaults on Android.
if (!isMobile) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And maybe allow it on IOS then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enabled on iOS

@Jaqueeee
Copy link
Contributor Author

Jaqueeee commented Nov 3, 2017

@moneromooo-monero pushed again

@luigi1111 luigi1111 merged commit ceeb9b6 into monero-project:master Nov 3, 2017
luigi1111 added a commit that referenced this pull request Nov 3, 2017
Remote nodes + mobile layout
@jluttine
Copy link

jluttine commented Dec 8, 2017

Will this become available in F-Droid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants