Skip to content

OBPIH-7570 Show spinner only in parent function during cycle count refresh#5613

Merged
alannadolny merged 1 commit intorelease/0.9.6from
OBPIH-7570
Nov 13, 2025
Merged

OBPIH-7570 Show spinner only in parent function during cycle count refresh#5613
alannadolny merged 1 commit intorelease/0.9.6from
OBPIH-7570

Conversation

@SebastianLib
Copy link
Collaborator

✨ Description of Change

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

Description:


📷 Screenshots & Recordings (optional)

@SebastianLib SebastianLib added the type: bug Addresses unintended behaviours of the app label Nov 12, 2025
@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label Nov 12, 2025
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/0.9.6@2ed621e). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release/0.9.6   #5613   +/-   ##
===============================================
  Coverage                 ?   8.49%           
  Complexity               ?    1119           
===============================================
  Files                    ?     712           
  Lines                    ?   45618           
  Branches                 ?   10914           
===============================================
  Hits                     ?    3873           
  Misses                   ?   41168           
  Partials                 ?     577           

☔ 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.

};

const refetchData = async (ids = cycleCountIds) => {
const refetchData = async ({ ids = cycleCountIds, showSpinner = true } = {}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure you've changed all of the function calls?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a case when we won't show the spinner while refetching?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is there a case when we won't show the spinner while refetching?

Yes, we don’t want to show the spinner when we click the “Refresh” button, because we want to display the spinner in the parent function refreshCountItems. We need to do it this way because refreshCountItems calls the save and refetchData functions, which normally show the spinner themselves. In this case, I removed the spinner from those functions, and now the parent function shows it instead.

@alannadolny alannadolny merged commit bbe69d3 into release/0.9.6 Nov 13, 2025
11 checks passed
@alannadolny alannadolny deleted the OBPIH-7570 branch November 13, 2025 10:08
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 type: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants