-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
66f9b93
to
96be934
Compare
import { appPropType } from '../../stores/app_store'; | ||
import { orgPropType } from '../../stores/org_store'; | ||
import { spacePropType } from '../../stores/space_store'; | ||
import Item from './breadcrumbs_item'; |
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 keep the name the same as what's in the imported file.
Item
-> BreadcrumbsItem
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.
@jcscottiii I was just trying to remove some stutter but I do concede that keeping BreadcrumbsItem
makes searching easier (just at the expense of stutter) - but all good, I will update.
static_src/stores/org_store.js
Outdated
@@ -1,15 +1,16 @@ | |||
|
|||
/* |
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 there a reason you got rid of this?
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.
@jcscottiii I will revert - I just removed it because it didn't really tell us anything we don't already know: org_store.js
is a store for org data :)
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.
Just two things! Otherwise, LGTM. thanks for this!
This also fixes the "calling setState on an unmounted component" warning. Also, instead of using CSS classes to target DOM nodes in integration tests, we use `data-test` attributes. We can later strip these out of the build using a babel plugin, if desired. Note: there are other ways of doing this, but for the time being the `data-test` attribute best matches the current code with the least number of changes and is clear enough. It's also a recommended approach by Kent C Dodds, if that holds any weight.
96be934
to
7d9f566
Compare
Thanks so much for your review - changes made, ready for review again. |
This also fixes the "calling setState on an unmounted component"
warning.
Also, instead of using CSS classes to target DOM nodes in integration
tests, we use
data-test
attributes. We can later strip these out ofthe build using a babel plugin, if desired. Note: there are other ways
of doing this, but for the time being the
data-test
attribute bestmatches the current code with the least number of changes and is clear
enough. It's also a recommended approach by Kent C Dodds, if that holds
any weight.