Skip to content

OBPIH-7370 button for skipping count assignment#5380

Merged
ewaterman merged 2 commits intodevelopfrom
ft/OBPIH-7370-skip-assign-count
Jul 16, 2025
Merged

OBPIH-7370 button for skipping count assignment#5380
ewaterman merged 2 commits intodevelopfrom
ft/OBPIH-7370-skip-assign-count

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-7370

Description:

  • Add 'skip' button when assigning a count after a count with discrepancies
  • Doesn't show the recount module if 'not now' is clicked after a count with discrepancies

📷 Screenshots & Recordings (optional)

Screenshot from 2025-07-14 15-54-48

@ewaterman ewaterman self-assigned this Jul 15, 2025
@github-actions github-actions bot added type: feature A new piece of functionality for the app domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization labels Jul 15, 2025
@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.42%. Comparing base (57d63ac) to head (9b2ccb5).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #5380   +/-   ##
=========================================
  Coverage       8.42%   8.42%           
  Complexity      1038    1038           
=========================================
  Files            666     666           
  Lines          44144   44144           
  Branches       10658   10658           
=========================================
  Hits            3718    3718           
  Misses         39857   39857           
  Partials         569     569           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

onClose()?.();
redirectAfterClosingModal.current = CYCLE_COUNT.list(TO_RESOLVE_TAB);
openAssignCountModal();
history.push(CYCLE_COUNT.list(TO_RESOLVE_TAB));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the redirectAfterClosingModal necessary in other places after that change? I think it can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

it's still used to redirect to the resolve flow after you finish with the assignment when you click "resolve now". But you added this logic so maybe you're understanding something that I'm not

Copy link
Collaborator

Choose a reason for hiding this comment

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

usages of redirectAfterCloisingModal in that file:

  // Page on which user should land after closing assign cycle count modal
  const redirectAfterClosingModal = useRef(null);
    history.push(redirectAfterClosingModal.current);

and

        redirectAfterClosingModal.current = CYCLE_COUNT.resolveStep();

because the redirectAfterClosingModal can have only one value at this moment (redirect to the resolve step), so I think you can directly use:

    history.push(CYCLE_COUNT.resolveStep());

@ewaterman ewaterman merged commit fd21e7e into develop Jul 16, 2025
6 checks passed
@ewaterman ewaterman deleted the ft/OBPIH-7370-skip-assign-count branch July 16, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants