-
Notifications
You must be signed in to change notification settings - Fork 30
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
feature/1255/show-file-count-in-side-bar #1516
feature/1255/show-file-count-in-side-bar #1516
Conversation
Testing the actual html content as described in https://docs.angularjs.org/guide/unit-testing would be a nice further test setup for the future
CHANGELOG.md
Outdated
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/) | |||
|
|||
### Added 🚀 | |||
|
|||
- Show file count of folders in Attribute-Side-Bar |
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.
Please include the issue number next to the change, also for added features we decided to try for a bit more elaborate texts to help users catch up.
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.
What do you think about adding the quick screenshot from PR description?
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.
And it is added :)
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.
Good idea, we might use that from now on
@@ -119,6 +120,13 @@ describe("AttributeSideBarController", () => { | |||
|
|||
expect(attributeSideBarController["_viewModel"].fileName).toEqual("my_fileName") | |||
}) | |||
|
|||
it("should has fileCount in it's _viewModel", () => { |
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.
nit: should have
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, just included a few small nits.
Also we might wanna add a test to show it wont display for folders?
} = { | ||
node: null, | ||
fileName: null, | ||
primaryMetricKeys: { node: {}, edge: {} } as PrimaryMetrics, | ||
secondaryMetricKeys: null, | ||
isSideBarVisible: null | ||
isSideBarVisible: null, | ||
fileCount: 0 |
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 could improve the name a little bit. Suggestion: packageFileCount
. Feel free to update the name.
Would love to use something like this html testing. But for now out of scope. I will definitely play around with it sometime :) - If you can show me a quick way with current setup to test it, it would be very appreciated. |
Two more nits:
|
Show file count of folders in Attribute-Side-Bar
Please read the CONTRIBUTING.md before opening a PR.
Closes: #1255
Description
s. #1255 and screenshot below
Screenshots or gifs