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

feature/1255/show-file-count-in-side-bar #1516

Merged
merged 5 commits into from
Nov 27, 2020

Conversation

shaman-apprentice
Copy link
Contributor

@shaman-apprentice shaman-apprentice commented Nov 26, 2020

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

image

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

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.

Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And it is added :)

Copy link
Member

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", () => {
Copy link
Member

Choose a reason for hiding this comment

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

nit: should have

Copy link
Member

@RomanenkoVladimir RomanenkoVladimir left a 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
Copy link
Collaborator

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.

@shaman-apprentice
Copy link
Contributor Author

Also we might wanna add a test to show it wont display for folders?

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.

@shaman-apprentice shaman-apprentice changed the title Feature/1255/show file count in side bar Closes #1255 Nov 26, 2020
@RomanenkoVladimir
Copy link
Member

Two more nits:

  1. we use Titles like Feature/number/descirption for PRs
  2. in the PR text it say Issue: number, please change that to closes: or another closing keyword so git updates Zenhub when it gets merged :)

@shaman-apprentice shaman-apprentice changed the title Closes #1255 feature/1255/show-file-count-in-side-bar Nov 27, 2020
@RomanenkoVladimir RomanenkoVladimir merged commit 5df6c3b into main Nov 27, 2020
@RomanenkoVladimir RomanenkoVladimir deleted the feature/1255/show-file-count-in-side-bar branch November 27, 2020 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show number of files in the attribute-side-bar when selecting a folder on the map
3 participants