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

Adding vendor (publisher) to service info screen #485

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Adding vendor (publisher) to service info screen #485

merged 1 commit into from
Oct 13, 2017

Conversation

rhamilto
Copy link
Member

@rhamilto rhamilto commented Oct 10, 2017

Supports #479

Adjusts styles:

  • top-align icon/image if more than 2 lines are present
  • make tags text-muted

screen shot 2017-10-10 at 1 53 21 pm

vs.

screen shot 2017-10-11 at 2 05 46 pm

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 10, 2017
@@ -1,6 +1,5 @@
.order-service-details {
.order-service-details-top {
align-items: center;
Copy link
Member Author

Choose a reason for hiding this comment

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

We probably want to keep things centered until there are 3 or more lines.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 11, 2017
@rhamilto rhamilto changed the title [WIP] Adding vendor (publisher) to info screens Adding vendor (publisher) to service info screen Oct 11, 2017
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2017
@rhamilto
Copy link
Member Author

@spadgett, I removed the addition of vendor to create from builder so this can merge now while we wait for the upstream builder annotation additions (vendor, docUrl, supportUrl).

@@ -62,6 +62,8 @@ export class OrderServiceController implements angular.IController {
this.ctrl.serviceName = this.ctrl.serviceClass.name;
this.ctrl.description = this.ctrl.serviceClass.description;
this.ctrl.longDescription = this.ctrl.serviceClass.longDescription;
this.ctrl.docUrl = this.ctrl.serviceClass.resource.spec.externalMetadata.documentationUrl;
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure externalMetadata is required. This might be a runtime error. Let's change it to

this.ctrl.docUrl = _.get(this.ctrl.serviceClass, 'resource.spec.externalMetadata.documentationUrl');
this.ctrl.supportUrl = _.get(this.ctrl.serviceClass, 'resource.spec.externalMetadata. supportUrl');

@rhamilto
Copy link
Member Author

Comment addressed. Thanks, @spadgett!

@spadgett spadgett merged commit 9b10a08 into openshift:master Oct 13, 2017
@rhamilto rhamilto deleted the issue-479 branch October 13, 2017 13:20
openshift-merge-robot added a commit to openshift/origin-web-console that referenced this pull request Oct 13, 2017
Automatic merge from submit-queue.

Adding vendor (publisher) to info screens, adds docUrl and supportUrl to info screens that lacked it

Fixes openshift/origin-web-catalog#479
And fixes #2242

Requires openshift/origin-web-catalog#485

<img width="915" alt="screen shot 2017-10-10 at 2 32 50 pm" src="https://user-images.githubusercontent.com/895728/31404030-dde2fe2c-adc8-11e7-9a73-68bd4e1ed138.PNG">
<img width="925" alt="screen shot 2017-10-10 at 2 32 56 pm" src="https://user-images.githubusercontent.com/895728/31404031-ddf83dd2-adc8-11e7-8ec8-13aca55d70f3.PNG">
<img width="909" alt="screen shot 2017-10-10 at 2 33 06 pm" src="https://user-images.githubusercontent.com/895728/31404032-de091102-adc8-11e7-9253-9211cc3064f1.PNG">
<img width="926" alt="screen shot 2017-10-10 at 2 33 12 pm" src="https://user-images.githubusercontent.com/895728/31404035-de237bf0-adc8-11e7-9eb8-060ffc45435f.PNG">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants