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

MMT-3561: Adding Pagination to Table Component #1110

Merged
merged 34 commits into from
Feb 5, 2024
Merged

Conversation

mandyparson
Copy link
Contributor

No description provided.

returnItems.push(
<Pagination.Item
key="page-1"
onClick={() => handleItemClick(1)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

coverage is saying this line is uncovered in your tests

returnItems.push(
<Pagination.Item
key={`page-${lastPageNum}`}
onClick={() => handleItemClick(lastPageNum)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

also this line.

setCurrentCount(newCurrentCount)
}

const pagination = (
Copy link
Collaborator

@cgokey cgokey Jan 25, 2024

Choose a reason for hiding this comment

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

I feel like this class is getting pretty long, wonder if it would be better to pull it out into a separate component? Just the pagination piece.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed! I had a comment about breaking it up.

static/src/js/components/Table/Table.jsx Outdated Show resolved Hide resolved
setCurrentCount(newCurrentCount)
}

const pagination = (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed! I had a comment about breaking it up.

@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8cab436) 96.85% compared to head (ac94889) 96.95%.
Report is 5 commits behind head on MMT-3390.

Additional details and impacted files
@@             Coverage Diff              @@
##           MMT-3390    #1110      +/-   ##
============================================
+ Coverage     96.85%   96.95%   +0.09%     
============================================
  Files           170      172       +2     
  Lines          2096     2164      +68     
  Branches        421      431      +10     
============================================
+ Hits           2030     2098      +68     
  Misses           66       66              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

static.config.json Outdated Show resolved Hide resolved
static/src/js/components/Table/Table.jsx Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
static/src/js/components/Pagination/Pagination.jsx Outdated Show resolved Hide resolved
static/src/js/components/Pagination/Pagination.jsx Outdated Show resolved Hide resolved
static/src/js/components/Table/Table.jsx Outdated Show resolved Hide resolved
static/src/js/components/Table/Table.jsx Outdated Show resolved Hide resolved
static/src/js/components/Table/Table.jsx Outdated Show resolved Hide resolved
static/src/js/components/Table/__tests__/Table.test.js Outdated Show resolved Hide resolved
} = item
const {
ShortName, EntryTitle, Name, LongName
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should be separate lines. Not sure why eslint didnt complain here 🤔

@mandyparson mandyparson merged commit 962742f into MMT-3390 Feb 5, 2024
5 checks passed
@mandyparson mandyparson deleted the MMT-3561 branch February 5, 2024 20:41
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.

6 participants