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(addon-table): add directive to sort by order #2782

Conversation

zarghamkhandev
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows Conventional Commits
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Code style update
  • Build or CI related changes
  • Documentation content changes

What is the current behavior?

To specify sort direction one needs to pass direction as 1 or -1 which is a bit confusing.

Closes # #2266

What is the new behavior?

Allows user to specify direction in terms of order e.g "asc" or "desc" instead of 1 or -1.

Does this PR introduce a breaking change?

  • Yes
  • No

@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Base: 56.27% // Head: 39.78% // Decreases project coverage by -16.48% ⚠️

Coverage data is based on head (d49e4d3) compared to base (0a7a068).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2782       +/-   ##
===========================================
- Coverage   56.27%   39.78%   -16.49%     
===========================================
  Files         956      986       +30     
  Lines        9237     9451      +214     
  Branches     1894     1919       +25     
===========================================
- Hits         5198     3760     -1438     
- Misses       3623     5487     +1864     
+ Partials      416      204      -212     
Flag Coverage Δ
addon-charts 73.77% <ø> (+0.12%) ⬆️
addon-doc 18.72% <ø> (-0.12%) ⬇️
addon-editor 28.64% <ø> (-0.19%) ⬇️
addon-mobile ∅ <ø> (∅)
addon-table 40.69% <100.00%> (-43.10%) ⬇️
addon-tablebars ∅ <ø> (∅)
cdk 62.87% <ø> (ø)
core 60.90% <ø> (+0.02%) ⬆️
kit 19.21% <ø> (-42.32%) ⬇️
summary 39.78% <100.00%> (-16.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...jects/addon-table/components/table/table.module.ts 100.00% <ø> (ø)
...ents/table/directives/direction-order.directive.ts 100.00% <100.00%> (ø)
projects/kit/utils/math/key-steps.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/classes/day-range-period.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/classes/stringifiable-item.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/utils/mask/create-time-mask.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/utils/miscellaneous/is-flat.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/utils/files/get-accept-array.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/utils/format/string-hash-to-hsl.ts 0.00% <0.00%> (-100.00%) ⬇️
projects/kit/utils/mask/create-date-range-mask.ts 0.00% <0.00%> (-100.00%) ⬇️
... and 147 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@waterplea
Copy link
Collaborator

@zarghamkhandev you forgot to add it to index.ts of that module.

@lumberjack-bot
Copy link

lumberjack-bot bot commented Oct 8, 2022

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

@zarghamkhandev
Copy link
Contributor Author

fixed ✅ @waterplea

@vladimirpotekhin vladimirpotekhin merged commit 962084a into taiga-family:main Oct 10, 2022
@well-done-bot
Copy link

well-done-bot bot commented Oct 10, 2022

'Well done'

@tinkoff-bot tinkoff-bot mentioned this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants