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

Add primitives for frost-list-item #74

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add primitives for frost-list-item #74

wants to merge 6 commits into from

Conversation

quincyle
Copy link
Contributor

@quincyle quincyle commented Nov 28, 2016

This project uses semver, please check the scope of this pr:

  • #patch# - backwards-compatible bug fix
  • #minor# - adding functionality in a backwards-compatible manner
  • #major# - incompatible API change

CHANGELOG

  • Added frost-list-item-badge-count component.
  • Added frost-list-item-boolean component.
  • Added frost-list-item-date component.
  • Added frost-list-item-icon-text component.
  • Added frost-list-item-large-icon-text component.
  • Added frost-list-item-primary-identifier component.
  • Added frost-list-item-secondary-identifier component.
  • Added frost-list-item-unlabeled-property component.
  • Added frost-list-item-small-view component.
  • Added frost-list-item-primary-state component.

@quincyle
Copy link
Contributor Author

image

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8a4e23f on quincyle:lts-rework-ob into ** on ciena-frost:master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8a4e23f on quincyle:lts-rework-ob into ** on ciena-frost:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 86ece56 on quincyle:lts-rework-ob into ** on ciena-frost:master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 86ece56 on quincyle:lts-rework-ob into ** on ciena-frost:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c726217 on quincyle:lts-rework-ob into ** on ciena-frost:master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c726217 on quincyle:lts-rework-ob into ** on ciena-frost:master**.

Copy link
Member

@dafortin dafortin left a 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({
Copy link
Member

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'
Copy link
Member

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?

Copy link
Contributor

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({
Copy link
Member

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;
Copy link
Member

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.

Copy link
Contributor

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

@dafortin
Copy link
Member

Approved since there is only very small things to change/questions.

@sglanzer-deprecated
Copy link
Contributor

Looks like a few of the icon/text positions are slightly off (boolean, badge count)

@@ -0,0 +1,22 @@
import Ember from 'ember'
Copy link
Contributor

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'
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

isRequired

Copy link
Contributor

@sglanzer-deprecated sglanzer-deprecated left a 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
Copy link
Contributor

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'
Copy link
Contributor

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'
Copy link
Contributor

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;
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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',
Copy link
Contributor

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">
Copy link
Contributor

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 {
Copy link
Contributor

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

@rox163 rox163 removed their assignment Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants