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

Showing the version with the settings-screen #158

Merged
merged 5 commits into from Jun 15, 2020

Conversation

k9ert
Copy link
Collaborator

@k9ert k9ert commented Jun 7, 2020

Looks like this:

image

Copy link
Collaborator

@stepansnigirev stepansnigirev left a comment

Choose a reason for hiding this comment

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

Looks good! Correctly checks versions, if the current version is the latest red bar doesn't appear.
The test is red though...
Another thing I am thinking of, at the moment this red bar appears only in the settings screen. I suggest adding it to the "/" route as well, because by default "/" is redirected to the first wallet if it exists and the probability that the user will not see the update message is pretty high.

Also makes sense to change the version to the latest in setup.py:
https://github.com/cryptoadvance/specter-desktop/blob/master/setup.py#L17

version_info["current"], version_info["latest"], version_info["upgrade"] = get_version_info()
app.logger.info("Upgrade? {}".format(version_info["upgrade"]))
if version_info["upgrade"]:
flash("There is a new version available. Consider strongly to upgrade to the new version {}".format(version_info["latest"]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe makes sense to add a hint how to update, like:
Update to {version_info["latest"]} with "pip3 install {name} --upgrade"
and get the package name from get_version_info() as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why the package_name should get returned. It's cryptoadvance.specter, right?
Fiex the other stuff.

@k9ert
Copy link
Collaborator Author

k9ert commented Jun 14, 2020

I'm not sure why "some checks haven't completed yet" as they clearly did.

@stepansnigirev stepansnigirev merged commit 0374130 into cryptoadvance:master Jun 15, 2020
@k9ert k9ert deleted the show_version branch May 19, 2021 14:02
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.

None yet

2 participants