Skip to content

Conversation

AllenBW
Copy link
Contributor

@AllenBW AllenBW commented Sep 22, 2017

Description

a continuation of #630
@serenamarie125 @jennyhaines

Show me the 🤑

screen shot 2017-09-25 at 10 02 48 am

ng-repeat="item in $ctrl.status.info track by $index"></p>
<p ng-if="!$ctrl.shouldShowHtmlContent" ng-bind="item"
ng-repeat="item in $ctrl.status.info track by $index"></p>
<div ng-if="$ctrl.shouldShowHtmlContent" class="info-content" ng-bind-html="$ctrl.trustAsHtml(item)"
Copy link
Member

Choose a reason for hiding this comment

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

nit. but I think 'showHtmlContent' would be enough of a description :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dtaylor113 I like your nits. Name follows other names around though, looking for buyin to rid ourselves of should in the whole of this work? pfinfostatuscard

Copy link
Member

Choose a reason for hiding this comment

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

Probably not in this PR if it's being used elsewhere. -thanks

@AllenBW
Copy link
Contributor Author

AllenBW commented Sep 22, 2017

As per convo with @jennyhaines workin on that egregious padding when including a title

screen shot 2017-09-22 at 10 57 10 am

@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch from 1aea727 to 739a590 Compare September 22, 2017 15:16
Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

Minor formatting changes. I somehow missed the missing semicolons in the spec file earlier.

A few semicolons seem to be missing from this file, I probably missed a few too...
... 2, 7, 9, 14, 17, 28, 42, 54, 58, 74, 76, 80, 83, 86, 89,92, 95, 97, 109, 111, 114, 115, 119

@@ -73,7 +73,7 @@ describe('Component: pfInfoStatusCard', function () {

element = compileCard('<pf-info-status-card status="status"></pf-info-status-card>', $scope)
Copy link
Member

Choose a reason for hiding this comment

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

Missing semicolon, looks like in quite a few spots within the file...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bahahahah eeeekkkk other project I'm on uses standard.js too funny, rubymine doesn't seem to respect that 🤦‍♂️

@@ -5,18 +5,18 @@
class="info-img"/>
<span class="info-icon {{$ctrl.status.iconClass}}"></span>
</div>
<div>
<div class="info-content-container">
<h2 class="card-pf-title" ng-if="$ctrl.status.title">
<a href="{{$ctrl.status.href}}" ng-if="$ctrl.status.href">
<span class="">{{$ctrl.status.title}}</span>
</a>
<span ng-if="!$ctrl.status.href">
<span class="">{{$ctrl.status.title}}</span>
Copy link
Member

Choose a reason for hiding this comment

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

Minor indent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what where?

Copy link
Member

Choose a reason for hiding this comment

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

looks like you got it

@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch from 739a590 to 705436d Compare September 22, 2017 16:08
.info-icon {
font-size: 50px;
}
.info-img {
max-height: 50px;
}
}
.info-content-container {
Copy link
Member

Choose a reason for hiding this comment

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

We need to name this such that it is a PF thing. How about .card-pf-info-content? not sure we need to add -container

Copy link
Contributor Author

@AllenBW AllenBW Sep 22, 2017

Choose a reason for hiding this comment

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

down with that name!
wil change the img one accordingly

ng-repeat="item in $ctrl.status.info track by $index"></p>
<p ng-if="!$ctrl.shouldShowHtmlContent" ng-bind="item"
ng-repeat="item in $ctrl.status.info track by $index"></p>
<div ng-if="$ctrl.shouldShowHtmlContent" class="info-content" ng-bind-html="$ctrl.trustAsHtml(item)"
Copy link
Member

Choose a reason for hiding this comment

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

Where is ".info-content" defined? 👀

Copy link
Contributor Author

@AllenBW AllenBW Sep 22, 2017

Choose a reason for hiding this comment

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

YOU NOTICED! its not, used for testing, also just in case user wants to grab each of those rows and do something with them, like a connivence class! 👍

can pull it and rework test if desired

Copy link
Member

Choose a reason for hiding this comment

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

You can leave it, might be nice for apps to use to add settings, how about a rename though? like card-pf-info-item?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that's what i was thinking! will rename

@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch 2 times, most recently from 12bd3d0 to a31d5e8 Compare September 22, 2017 18:19
@jennyhaines
Copy link

@AllenBW - I'm not sure how to review the visuals for the latest code changes to the cards. Could you post screenshots? Thank you!

@AllenBW
Copy link
Contributor Author

AllenBW commented Sep 22, 2017

@jennyhaines first post has latest screen shot

@AllenBW
Copy link
Contributor Author

AllenBW commented Sep 25, 2017

@jennyhaines If you compare the ss at the top of this pr to the #630 link in the first post, should make review a breeze!

@jennyhaines
Copy link

@AllenBW - The top spacing looks good! Thanks!! Only thing I'd suggest to change at this point is the spacing between the card title and the details. (for example, between "TinyCore-local" and "VM Name: aapde...", or "Favorite things" and the first icon). I'd decrease that spacing by 5px, and then I think the cards will be good to go!

@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch from a31d5e8 to abb4d29 Compare September 25, 2017 14:03
@AllenBW
Copy link
Contributor Author

AllenBW commented Sep 25, 2017

@jennyhaines Updated! check ss in first post of pr 👍

Copy link

@jennyhaines jennyhaines left a comment

Choose a reason for hiding this comment

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

Looks good to me- Thanks!

@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch from abb4d29 to b6736c6 Compare September 25, 2017 17:27
@AllenBW AllenBW force-pushed the chore/address-pfinfostatuscard-style-feedback branch from b6736c6 to 1f49434 Compare September 25, 2017 17:28
@cdcabrera cdcabrera merged commit 179d157 into patternfly:master Sep 26, 2017
@AllenBW AllenBW deleted the chore/address-pfinfostatuscard-style-feedback branch July 23, 2018 15:14
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.

5 participants