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: added table sorting #517

Merged
merged 11 commits into from
Jan 14, 2019
Merged

Conversation

AlejandroYanes
Copy link
Collaborator

fixes #453

@TahimiLeonBravo
Copy link
Collaborator

follow the sorting styles when active and when hover like the design
https://zpl.io/blPO9Kz

@coveralls
Copy link

coveralls commented Jan 8, 2019

Pull Request Test Coverage Report for Build 1218

  • 43 of 73 (58.9%) changed or added relevant lines in 5 files are covered.
  • 9 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.4%) to 76.742%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Table/head/index.js 7 9 77.78%
src/components/Table/index.js 22 29 75.86%
src/components/Table/head/header.js 8 29 27.59%
Files with Coverage Reduction New Missed Lines %
src/components/MapMarker/index.js 9 78.16%
Totals Coverage Status
Change from base Build 1066: -0.4%
Covered Lines: 1373
Relevant Lines: 1714

💛 - Coveralls

@LeandroTorresSicilia LeandroTorresSicilia merged commit 9f92554 into master Jan 14, 2019
return (
<Header
key={uniqueId('header')}
key={`header-${index}`}

Choose a reason for hiding this comment

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

put this in a variable:
const key = `header-${index}`;
also in this way you can remove the eslint exception a the top of the file

*/
sortDirection: PropTypes.oneOf(['asc', 'desc']),
/** Action triggered when a column header is clicked */

Choose a reason for hiding this comment

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

Action triggered when a column is sorted. Receive the event object, field and sortDirection.

}
} else {
newSortDirection = 'asc';
}

Choose a reason for hiding this comment

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

when implement inside Table remove this logic here

@TahimiLeonBravo TahimiLeonBravo deleted the implement-table-sorting branch September 23, 2019 08:25
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.

feat: add new feature to the table component
4 participants