Skip to content

Conversation

@zherman0
Copy link
Member

@zherman0 zherman0 commented May 1, 2019

Update the operator types for console to include a customizable product name and logo file

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 1, 2019
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 1, 2019
@zherman0
Copy link
Member Author

zherman0 commented May 1, 2019

/retest

@zherman0
Copy link
Member Author

zherman0 commented May 1, 2019

/retest

@zherman0
Copy link
Member Author

zherman0 commented May 1, 2019

@zherman0
Copy link
Member Author

zherman0 commented May 5, 2019

/retest

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 8, 2019
@zherman0
Copy link
Member Author

zherman0 commented May 8, 2019

/retest

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

Yeah, now this looks reasonable.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2019
@zherman0 zherman0 force-pushed the api-custom-branding branch from f80b650 to 9880402 Compare May 17, 2019 01:28
@zherman0 zherman0 changed the title [WIP] Add Custom product name and logo to api Add Custom product name and logo to api May 17, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels May 17, 2019
// - ConfigMap.binaryData["filename"] - logo in binary form.
// This is best generated using: oc create configmap my-branding-config --from-file=/path/to/file -n openshift-config
// Image size must be less than 1 MB due to constraints on configmap size
// +optional
Copy link
Member

@spadgett spadgett May 20, 2019

Choose a reason for hiding this comment

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

Maybe

// customLogoFile replaces the default OpenShift logo in the masthead and about dialog. It is a reference to a
// ConfigMap in the openshift-config namespace. This can be created with a command like
// 'oc create configmap custom-logo --from-file=/path/to/logo.svg -n openshift-config'.
// Image size must be less than 1 MB due to constraints on the ConfigMap size.
// The ConfigMap key should include a file extension so that the console serves the file
// with the correct MIME type.
// +optional

Copy link
Member

Choose a reason for hiding this comment

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

We might want to give guidance on recommended dimensions (although I don't know what those are offhand).

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like we set the viewbox to 100x100 on the SVGs. Should I add that?

Copy link
Member Author

Choose a reason for hiding this comment

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

@spadgett
// Recommended logo is of type svg or logo size of 100px x 100px

Copy link
Member

Choose a reason for hiding this comment

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

100x100 can't be right since the logo is not square.

Maybe we simply say "An SVG logo is recommended, but other image types are supported." and leave it at that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like we should indicate a recommended size, along with svg so its scalable. Our own logos:

https://github.com/openshift/console/blob/master/frontend/public/imgs/openshift-dedicated-logo.svg
https://github.com/openshift/console/blob/master/frontend/public/imgs/openshift-online-logo.svg

Are 40px high, but width is variable, roughly 260px in browser.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@zherman0 the PatternFly variable --pf-c-page__header-brand-link--c-brand--MaxHeight sets a max-height: 3.75rem which is approximately 68px. So if the image is larger than 68px it will scale down proportionally.

I would say

// Recommended logo specifications: 
// Dimensions: Max height of 68px and max width of 200px
// SVG format preferred

@zherman0 zherman0 force-pushed the api-custom-branding branch from 9880402 to 97d6c43 Compare May 20, 2019 20:21
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 20, 2019
@zherman0 zherman0 force-pushed the api-custom-branding branch from 65386b6 to 4e53529 Compare May 21, 2019 18:52
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 21, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: soltysh, spadgett, zherman0

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 9243430 into openshift:master May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants