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

update search count #22988

Merged
merged 4 commits into from
Oct 3, 2024
Merged

update search count #22988

merged 4 commits into from
Oct 3, 2024

Conversation

SanthiParakal133
Copy link
Contributor

@SanthiParakal133 SanthiParakal133 commented Sep 26, 2024

Resolves APPEALS-54326

Description

Update the viewing count while searching in the filter

Acceptance Criteria

  • Code compiles correctly

Testing Plan

  1. Go to APPEALS-54326
  • For feature branches merging into master: Was this deployed to UAT?

Frontend

User Facing Changes

  • Screenshots of UI changes added to PR & Original Issue

After
Screenshot 2024-09-26 at 2 36 45 PM
Screenshot 2024-09-26 at 2 36 18 PM
Screenshot 2024-09-26 at 2 35 50 PM

@SanthiParakal133 SanthiParakal133 marked this pull request as ready for review September 26, 2024 18:49
} = this.props;

// If there are no pages, there is no data, so the range should be 0-0.
// Otherwise, the beginning of the range is the previous amount of cases + 1
const beginningCaseNumber = totalCases === 0 ? 0 : ((currentPage * pageSize) - pageSize + 1);
const beginningCaseNumber = searchValue ? (totalCases === 0 ? 0 : 1) : (totalCases === 0 ? 0 : ((currentPage * pageSize) - pageSize + 1));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be best not to use a nested ternary operator.

client/app/components/Pagination/Pagination.jsx Outdated Show resolved Hide resolved
@cacevesva cacevesva merged commit d5fa1bd into feature/APPEALS-34965 Oct 3, 2024
12 of 17 checks passed
@cacevesva cacevesva deleted the Santhi/APPEALS-54326 branch October 3, 2024 20:39
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.

2 participants