-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add primitives for frost-list-item #74
base: master
Are you sure you want to change the base?
Conversation
Changes Unknown when pulling 8a4e23f on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
1 similar comment
Changes Unknown when pulling 8a4e23f on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
Changes Unknown when pulling 86ece56 on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
1 similar comment
Changes Unknown when pulling 86ece56 on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
Changes Unknown when pulling c726217 on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
1 similar comment
Changes Unknown when pulling c726217 on quincyle:lts-rework-ob into ** on ciena-frost:master**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning to add "hooks"?
Are we planning to add more tests eventually?
import Ember from 'ember' | ||
import layout from '../../templates/components/frost-list-item-end-point' | ||
|
||
export default Ember.Component.extend({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we get a default class here?
@@ -0,0 +1,6 @@ | |||
import Ember from 'ember' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Endpoint is a very "ciena" concept should we really have something like this in a "generic" repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is a miss and can be removed
import Ember from 'ember' | ||
import layout from '../../templates/components/frost-list-item-large-view' | ||
|
||
export default Ember.Component.extend({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a default class?
@@ -0,0 +1,185 @@ | |||
@import 'node_modules/ember-frost-core/addon/styles/frost-theme'; | |||
|
|||
$frost-list-item-primary-state-critical: #E52C2C; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have sass linting enable? I think sass linting wants this to be in small case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? I would have thought that upper case was the standard
Approved since there is only very small things to change/questions. |
Looks like a few of the icon/text positions are slightly off (boolean, badge count) |
@@ -0,0 +1,22 @@ | |||
import Ember from 'ember' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this component just be done using a class modifier on the icon-text
primitive?
@@ -0,0 +1,6 @@ | |||
import Ember from 'ember' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this component is
classNames: ['frost-list-item-primary-identifier'], | ||
|
||
propTypes: { | ||
value: PropTypes.string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isRequired
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get a 30-60 minute discussion scheduled on this with the same group as the object browser review
} | ||
}, | ||
|
||
layout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some new conventions around comment headers that I think we should put in place here. This is an example https://github.com/ciena-frost/ember-frost-list/blob/master/addon/components/frost-pagination.js
@@ -0,0 +1,16 @@ | |||
import Ember from 'ember' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this component a thing anymore?
@@ -0,0 +1,19 @@ | |||
import Ember from 'ember' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could genericize this as property
and just react to the presence/absence of a label
@@ -0,0 +1,185 @@ | |||
@import 'node_modules/ember-frost-core/addon/styles/frost-theme'; | |||
|
|||
$frost-list-item-primary-state-critical: #E52C2C; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? I would have thought that upper case was the standard
flex-direction: row; | ||
align-items: center; | ||
height: 30px; | ||
.frost-list-item-boolean-label { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to nest if you're using an full name and not using &-
(we should probably discuss the convention there before we proceed)
} | ||
} | ||
|
||
.frost-list-item-small-view { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, now I get where the component was coming from before...this is interesting. If we talk about the structure of the "header"/"small" view of a list item then there are definitely conventions that could be put in place, but it would become more restrictive I believe - let's chat about this with a group - maybe we can schedule 30 minutes or so with the same group reviewing the object browser?
export default Ember.Controller.extend({ | ||
smallViewData: { | ||
'label-name': 'EBUTORO000034EBUTORO000034EBUTORO000034EBUTORO000034EBUTORO000034EBUTORO000034', | ||
label: 'EBUTORO......000034', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inserting the ellipsis ourselves is deceiving...I wouldn't do that
@@ -0,0 +1,155 @@ | |||
<div style="margin: 30px"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it interesting that you've specified the small/large view in components, but aren't using them here - we can follow up on this after the 30 minute meeting
@@ -176,4 +176,34 @@ | |||
} | |||
} | |||
|
|||
.frost-list-demo-primitives { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to see anything used in the list item coming from the dummy - if there is value in flex primitives then it should be part of the consumable interface
This project uses semver, please check the scope of this pr:
CHANGELOG