-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #992 from tallycash/fix-displayed-version
Fix issues with computing and displaying the current extension version This PR fixes some issues left over in previous work to display the version, namely: - Change the method used to compute the current version to git describe --tags. This fixes some cases where the current version was not computed correctly due to unannotated tags in the repo. In the future, we may consider updating the repo so that all the version tags are annotated (so they can be dated and signed), and revert this particular change. - The computed version is matched against the version in manifest.json. If a mismatch is found, the build is aborted. - The UI displaying the version was updated, loosely based on this an existing Figma design (with one difference with respect to the design in Show version, git commit and date in settings page: version is displayed inside the block with light background, because it's closely related to release name and the feedback button -- version number is mostly useful when reporting feedback. Note: configured CI to fetch the entire Git history (needed to compute the version).
- Loading branch information
Showing
4 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,6 @@ export default function Menu(): ReactElement { | |
))} | ||
</ul> | ||
<div className="community_cta_wrap"> | ||
<div className="illustration_discord" /> | ||
<h2 className="serif_header">Community release!</h2> | ||
<p>Join our discord to give us feedback!</p> | ||
<SharedButton | ||
|
@@ -104,19 +103,24 @@ export default function Menu(): ReactElement { | |
</SharedButton> | ||
<div className="version"> | ||
Version: {process.env.VERSION ?? `<unknown>`} ( | ||
{process.env.GIT_COMMIT_DATE?.slice(0, "YYYY-MM-DD".length)}) | ||
{new Date( | ||
process.env.GIT_COMMIT_DATE ?? "invalid date" | ||
).toLocaleDateString(undefined, { dateStyle: "medium" })} | ||
) | ||
</div> | ||
</div> | ||
</section> | ||
<style jsx> | ||
{` | ||
section { | ||
display: flex; | ||
flex-flow: column; | ||
height: 544px; | ||
background-color: var(--hunter-green); | ||
} | ||
.community_cta_wrap { | ||
width: 100vw; | ||
height: 370px; | ||
margin-top: 19px; | ||
margin-top: auto; | ||
margin-left: -21px; | ||
background-color: var(--green-95); | ||
text-align: center; | ||
|
@@ -159,15 +163,8 @@ export default function Menu(): ReactElement { | |
.mega_discord_chat_bubble_button:hover { | ||
opacity: 0.8; | ||
} | ||
.illustration_discord { | ||
background: url("./images/[email protected]"); | ||
background-size: cover; | ||
width: 252px; | ||
height: 162px; | ||
margin: 5px 0px 20px -19px; | ||
} | ||
.version { | ||
margin: 4px 0; | ||
margin: 16px 0; | ||
color: var(--green-60); | ||
font-size: 12px; | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters