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

UI: Add a link to the GitHub commit in the Help menu #1190

Merged
merged 2 commits into from
Jan 16, 2022

Conversation

ruevs
Copy link
Member

@ruevs ruevs commented Jan 13, 2022

An alternative to #1189

The "Go to GitHub commit" item in the Help menu opens the URL https://github.com/solvespace/solvespace/commits/1ea4025 and allows the user to see the date of the commit that SolveSpace was built from.

Also revert f1e47e6 #1185

Closes #1172

This reverts commit f1e47e6.
Since unfortunately it breaks the addition of the git commit hash
to the version string when building from the VisualStudio IDE.
I presume this happens because `git` is not of the "path" of the
build environment. The version string ends up "3.0~" only.
@ppd
Copy link
Member

ppd commented Jan 13, 2022

Screenshot from 2022-01-13 19-06-03

I like this one better. I'm just wondering whether we should link to commit/<hash> instead of commits/<hash>. It might be a bit clearer as there is only one commit displayed that way.

src/config.h.in Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Jan 13, 2022

JFTR, Why just not add clickable link to {version}~{git_commit} directly in about dialog? (also https://solvespace.com should be clickable too)

Screenshot_2022-01-13_20-56-15

@ppd
Copy link
Member

ppd commented Jan 13, 2022

You'd need to support inline links in three platform implementations of the message dialog. This way, the implementation is trivial and still very effective.

@ruevs
Copy link
Member Author

ruevs commented Jan 13, 2022

You'd need to support inline links in three platform implementations of the message dialog. This way, the implementation is trivial and still very effective.

Exactly! @Symbian9 read my comment here #1172 (comment)

src/ui.h Outdated Show resolved Hide resolved
@phkahler
Copy link
Member

@ruevs I just noticed you reverted the previous commit in this PR. I guess I won't merge my new PR that just does that revert since it will mess up this one ;-)

The "Go to GitHub commit" item in the Help menu opens the URL
https://github.com/solvespace/solvespace/commits/5efc148
and allows the user to see the date of the commit that SolveSpace was
built from.

Closes solvespace#1172
@ruevs
Copy link
Member Author

ruevs commented Jan 14, 2022

Switched the link to point to commit instead of commits and changed GIHUB to GITHUB

@phkahler
Copy link
Member

@ruevs did you request 3 reviewers to get OS coverage, or just to make sure it gets looked at? ;-)

@ruevs
Copy link
Member Author

ruevs commented Jan 14, 2022

@ruevs did you request 3 reviewers to get OS coverage, or just to make sure it gets looked at? ;-)

@phkahler to collect opinions whether to go with this or #1189
What is "OS coverage"?

@phkahler
Copy link
Member

phkahler commented Jan 14, 2022

What is "OS coverage"?

To verify it works on all 3 OSes. It should because it doesn't require platform specific changes. BTW I prefer this one.

@phkahler phkahler merged commit f94fc89 into solvespace:master Jan 16, 2022
@ruevs ruevs deleted the GitHubLinkHelpMenu branch January 16, 2022 19:15
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.

Feature request: Add build date to the Help->About dialog
3 participants