-
Notifications
You must be signed in to change notification settings - Fork 65
Added SkyLinkRecordsComponent #1036
Added SkyLinkRecordsComponent #1036
Conversation
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 5847fae (Please note that this is a fully automated comment.) |
Codecov Report
@@ Coverage Diff @@
## master #1036 +/- ##
=======================================
Coverage 100% 100%
=======================================
Files 317 351 +34
Lines 5983 6477 +494
Branches 760 838 +78
=======================================
+ Hits 5983 6477 +494
Continue to review full report at Codecov.
|
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: e7242ac (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: b28e226 (Please note that this is a fully automated comment.) |
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.
To ensure consistency across components styling should reference mixins and variables to the extent possible.
Text styling should reference the typography mixins or classes.
Borders should reference the border mixin https://github.com/blackbaud/skyux-design-tokens/blob/master/src/scss/mixins.scss
Colors should reference the variables documented here https://developer.blackbaud.com/skyux2/design/color rather than referencing the numeric values, e.g. $sky-highlight-color-success instead of $sky-color-green-50
@Blackbaud-ToddRoberts thanks for the review. The design updates were not complete when we originally created this control. And the variables were missing from the skyux-design-tokens repo so I was unable to update our contrib repo where this control currently resides. I did a quick pass when creating this PR but I will run through it again to update some more of the styles. In general, is the skyux-design-tokens repo stable/up-to-date? It seems to be missing the variables.scss file and the mixins.scss has only one mixin in it? We would like to update our contrib repo with that latest stylings at some point (without having to copy over scss on every skyux update) and was hoping to leverage the scss in that repo. What are the skyux team's overall goals for that repo? |
@Blackbaud-BobbyEarl can you answer the question about the design-tokens repo? I am not sure where the variables are at. |
b28e226
to
7299d13
Compare
@Blackbaud-ToddRoberts Updated. For the typography, we are currently using the new font families but the we would need direction from UX ( @Blackbaud-MattVaccaro ) to determine what classes they would want to switch/update the control elements to. Right now the typography has already been approved by him. |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 7299d13 (Please note that this is a fully automated comment.) |
@blackbaud-joshgerdes The ultimate intent of the design tokens repo is to provide a single source of truth for core styling elements, consumable by products regardless of platform. In general we want styling to be handled automatically by components and SkyUX-provided CSS classes, but we know there are some cases where that isn't optimal or feasible. The design token variable and mixin files provide the styles we want to expose for consumption in apps in addition to the SkyUX CSS classes; we will likely add to these in the future. When building a component, the SkyUX mixin and variables files can be used as well. @Blackbaud-PaulCrowder please correct any misstatements in there ;) |
The skyux-design-tokens repo is the source. Many of the assets, such as |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: b4396a3 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 3a4ab76 (Please note that this is a fully automated comment.) |
@Blackbaud-ToddRoberts did you get a chance to review the updates. Anything else you need me to update on this PR? |
@blackbaud-joshgerdes I am looking at it now, in the demo it looks like some styles are being overwritten by Stache styles so I'm trying to ensure it looks right outside of a Stache environment. |
e8a55a6
to
1ae8572
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 1ae8572 (Please note that this is a fully automated comment.) |
1ae8572
to
b4f1a37
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: b4f1a37 (Please note that this is a fully automated comment.) |
b4f1a37
to
5d32d1d
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 5d32d1d (Please note that this is a fully automated comment.) |
5d32d1d
to
5f97aa1
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: d656abe (Please note that this is a fully automated comment.) |
d656abe
to
9986ae9
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 9986ae9 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 249b341 (Please note that this is a fully automated comment.) |
@blackbaud-joshgerdes Here is my initial feedback. Thanks for putting this together!
|
) {} | ||
|
||
public ngOnInit() { | ||
if (this.items && !(this.items instanceof Observable)) { |
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.
For these if
blocks: what's the use case for checking if the input is of type observable? It seems that we should enforce one type or the other (ie. the consumer should always provide an observable, here.). Just curious if you have any insights...
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.
It allows the user to provide an observable or regular array for the values. This is how we implemented similar properties when we created the sky list and its views as well.
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.
As for the above:
- Will update to
SKY_LINK_RECORDS_STATUSES
- Not explicitly part of the contribution guidelines but we will update
- I actually think the logic is more readable because it is in place in the file. Most of the if logic is just around a single state anyway. I could see moving a couple if statements to functions but don't really see a huge gain by doing so. The logic for the link record items just inherently has some complexity to it.
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.
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.
Sounds good, made the other requested updates. Tests passed and just awaiting review.
249b341
to
d8dc590
Compare
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: d8dc590 (Please note that this is a fully automated comment.) |
2737d3c
to
69c58e1
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 2737d3c (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 69c58e1 (Please note that this is a fully automated comment.) |
69c58e1
to
6eb9c43
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 6eb9c43 (Please note that this is a fully automated comment.) |
6eb9c43
to
f276afb
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: f276afb (Please note that this is a fully automated comment.) |
@blackbaud-joshgerdes Thanks for taking care of those updates! Most of this looks good to me. Something I noticed: some of the TypeScript classes do not have a prefix of Some examples I saw in this branch: Thank you! |
Those are all internal to the component and should not be directly referenced. That is why they do not have the prefix. Do you really still need them to have it? |
@blackbaud-joshgerdes Yes, please. The idea we're shooting for is that any contributor working with our classes would know at first-glance that they are owned by SKY, and not a third-party library. Also, it prevents class-name clashes with other libraries, if it ever came to that. (Let me know if you want some assistance with this, as I know it's no small task.) It's also regrettable that this requirement is not described in the Contribution Guidelines; I've created an issue to amend this for the future: #1093. |
including locale resources and statuses update.
f276afb
to
4b8167a
Compare
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 4b8167a (Please note that this is a fully automated comment.) |
@Blackbaud-SteveBrush Updated |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 7ec0f85 (Please note that this is a fully automated comment.) |
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.
LGTM
Contributing record linking component as defined in #726