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

feat(stark-ui): add show/hide columns functionality to tables #1142

Conversation

carlo-nomes
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #522

What is the new behavior?

Minimap is integrated with table and column can be hidden / shown by the user

Does this PR introduce a breaking change?

[x] Yes
[ ] No

The implementation of the minimap and table component has changed slightly

Other information

@coveralls
Copy link

coveralls commented Feb 20, 2019

Coverage Status

Coverage increased (+0.02%) to 93.473% when pulling 19d2905 on cnomes:feature/show-hide-table-columns into f4339ff on NationalBankBelgium:master.

Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Some remarks... also

The icon of the "compact" version is too small:
compact-minimap-new
Before:
compact-minimap-old

The menu has now too much space between the options:
minimap-menu-new
Before:
minimap-menu-old

And finally, could you squash the last commit about "remove fdescribe"? 😉

@carlo-nomes carlo-nomes force-pushed the feature/show-hide-table-columns branch 2 times, most recently from 1dd05e4 to 6efd141 Compare February 22, 2019 12:38
@carlo-nomes
Copy link
Collaborator Author

@christophercr I updated the PR.

</div>
</ng-container>
<stark-minimap
[matTooltip]="'STARK.TABLE.TOGGLE_COLUMNS' | translate"
Copy link
Collaborator

@christophercr christophercr Feb 22, 2019

Choose a reason for hiding this comment

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

I think the translation we have for this key is not correct... it says "Column filters" but it is not to filter columns. I suggest to change it to "Show/Hide columns".

I think the same translation key is used in the column.component.html but in that case the "Column filter" does make sense... so we are definitly missing one translation key specifically for the Minimap in the Table

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated the PR. 😄

@carlo-nomes carlo-nomes force-pushed the feature/show-hide-table-columns branch 2 times, most recently from 1ed81c3 to 6f2f668 Compare February 22, 2019 15:19
@christophercr christophercr added this to the 10.0.0-beta.5 milestone Feb 22, 2019
@christophercr christophercr changed the title Feature/show hide table columns feat(stark-ui): add show/hide columns functionality to tables Feb 22, 2019
  - update minimap component
  - update tests for minimap component
  - refactor column visibility property

CLOSES: NationalBankBelgium#522
@carlo-nomes carlo-nomes force-pushed the feature/show-hide-table-columns branch from 6f2f668 to 69b56f0 Compare February 22, 2019 15:36
@carlo-nomes
Copy link
Collaborator Author

@christophercr, could you merge this? PR #1152 depends on this PR. 😄

@christophercr christophercr merged commit 6cebfaf into NationalBankBelgium:master Feb 25, 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.

None yet

3 participants