HomePhabricator

[Cashtab] Display Cashtab webapp version on settings page if available

Description

[Cashtab] Display Cashtab webapp version on settings page if available

Summary:
Display Cashtab version on settings page.

This way we can tell what version a user is getting on their device if they are experiencing an issue, and confirm whether or not the issue is related to having a cached version.

Note: we want the version from package.json, and not package-lock.json, as the version number in package-lock.json only changes to match package.json when the dependencies change. So, the version in package-lock.json is the last version where the dependencies changed, not necessarily the most recent version.

Will prob want some kind of a lint strategy for this soon, but will see how it works manually. The type of version bump for now is the kind of thing that should be reviewed. This is an improvement over no version mgmt.

Test Plan:
npm start

Navigate to Configure.js and observe the version at the bottom of page

image.png (340×500 px, 7 KB)

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15275

Details

Provenance
bytesofmanAuthored on Jan 25 2024, 00:47
bytesofmanPushed on Jan 25 2024, 18:08
Reviewer
Restricted Project
Differential Revision
D15275: [Cashtab] Display Cashtab webapp version on settings page if available
Parents
rABC4740187a0de0: [ecashaddrjs] Patch function doc param name
Branches
Unknown
Tags
Unknown