About page, configurable cli download links#6783
About page, configurable cli download links#6783openshift-bot merged 2 commits intoopenshift:masterfrom
Conversation
pkg/cmd/server/api/v1/types.go
Outdated
There was a problem hiding this comment.
Hmm, this seems super specific. Won't there be other things that need customizing on that page as well, like product name and other links? Plumbing all of that through config seems like the hard way to do that
There was a problem hiding this comment.
We may want to reduce the amount of info in that page, but an entry in the config file for CLI download links is a specific requirement from online. Links for docs already use the filters mechanism used everywhere on the web console.
There was a problem hiding this comment.
we also don't expose doc links in config... I would expect doc links and cli download links to use the same config mechanism... I just don't want such a bespoke setting for something so general
There was a problem hiding this comment.
I think this is the only thing left in this PR, waiting for @jwforres confirmation about where we want this config.
|
try the openshift icon in red |
|
... hit enter too soon... check with @luciddreamz for what the right red is for the openshift icon |
|
the download links blend together a bit, maybe stacking them vertically, or having a gray pipe between them |
|
@sspeiche FYI |
assets/app/views/about.html
Outdated
There was a problem hiding this comment.
I wonder, if this is the about page for Origin, then we may want to have the link go to openshift.org
Likewise, at some point we may want to specific links to the offering page for Enterprise and Dedicated?.
Though I think for an initial pass, it would be fine just defaulting to openshift.com as it has redirects already
There was a problem hiding this comment.
Yeah, at least for now the idea was to point to openshift.com which links every other product and project.
|
It all looks great. Only thing I'm not sure of is how we are directing users to get help, provide feedback or report problems. Would this come in the about page or a separate menu item or ? |
pkg/cmd/server/origin/asset.go
Outdated
There was a problem hiding this comment.
does this have to be served in a separate file? don't really want lots of individual requests for config data
There was a problem hiding this comment.
agree with @liggitt why wouldn't this be in config.js ?
There was a problem hiding this comment.
All config.js entries are something you can change to customize some behavior, while version info is always generated by the master, not part of the set of configs an installation could change. Didn't seem to fit well. But I could buy having it in config to save a request, I think.
There was a problem hiding this comment.
Fixed, version is now being server in config.js, in a separate object as it was before to keep what's really configurable as a separate structure.
2d31599 to
ee40083
Compare
@jwforres yeah, my first version was vertical and for some reason I changed, moved back which looks better |
@luciddreamz using |
@sspeiche I think the design review in the works by @sg00dwin includes that, it has a "?" drop-down that include links to docs, this About page, and probably other stuff. Anyone else could confirm? |
|
@fabianofranz the OpenShift logo is #CD202C: |
|
There would be a place to add other links there, we need to think about On Friday, January 22, 2016, Fabiano Franz notifications@github.com wrote:
|
ee40083 to
82cc646
Compare
|
@luciddreamz thanks! updated |
9a5d590 to
3d40aa0
Compare
45353bd to
b6f4372
Compare
|
Ok result of a number of discussions is that we are going to do this as an extension JS. So we need a JS API for providing custom download links, think about how you would do the same thing for help links (and if possible go ahead and implement it cause we need it soon). OOTB in origin I'm guessing we wouldn't provide a CLI download link since the only place they exist today is in the release in github which includes ALL the binaries. So if we dont have any CLI download links available, then maybe tweak the text in the CLI section? |
It seems odd to ask admins to write JS code to set one URL :-/ |
Not yet, but here is the help topic: https://docs.openshift.org/latest/install_config/web_console_customization.html Let me know if you have trouble. |
|
@spadgett thanks! |
8bc7d71 to
eb58a81
Compare
pkg/assets/handlers.go
Outdated
There was a problem hiding this comment.
don't pass the whole version struct to the template, just put the version string in the struct given to the template. that removes the need to make this package depend on the version packages, and gives us compiler checks on the use of the GitVersion field
529490f to
b596e68
Compare
|
Waiting to rebase when the console ui restructure lands. |
b596e68 to
5602e1d
Compare
|
Rebased, [merge]. |
|
[Test]ing while waiting on the merge queue |
|
@fabianofranz looks like you need to clean / install assets |
c08864c to
9d756e1
Compare
|
@fabianofranz java/bindata.go is wrong looks like it needs to be updated, it just got updated yesterday, in general you shouldn't ever be checking in java/bindata.go |
|
@jwforres meh, I removed and didn't notice it was there again. :/ |
9d756e1 to
2501295
Compare
|
Evaluated for origin test up to 2501295 |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/770/) |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4841/) (Image: devenv-rhel7_3324) |
|
[merge] |
|
Evaluated for origin merge up to 2501295 |

Adds an "About" page to the web console with server version information and configurable download links for the CLI tools (if provided).
I wanted to make the download URL's flexible enough to allow you to either specify multiple links pointing directly to the client packages (for each platform, for example), or you could point to an external page that links the actual packages (the GitHub releases page, for example). So the configuration takes both the URL and title. Examples of valid configurations would be:
or
About page
Fixes #2281
Fixes #3493
Fixes #4344
Fixes #4885