Skip to content

OBPIH-7042 Add Zone to Bin location filter in cycle count tabs#5221

Merged
awalkowiak merged 3 commits intodevelopfrom
OBPIH-7042-2
Apr 23, 2025
Merged

OBPIH-7042 Add Zone to Bin location filter in cycle count tabs#5221
awalkowiak merged 3 commits intodevelopfrom
OBPIH-7042-2

Conversation

@SebastianLib
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label Apr 22, 2025
@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.12%. Comparing base (f02bf36) to head (1a5fb9a).
Report is 159 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5221      +/-   ##
============================================
- Coverage       8.19%   8.12%   -0.07%     
+ Complexity       950     939      -11     
============================================
  Files            638     638              
  Lines          43214   43214              
  Branches       10503   10503              
============================================
- Hits            3542    3512      -30     
- Misses         39130   39166      +36     
+ Partials         542     536       -6     

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

catalogs: catalogList,
tags: tagList,
internalLocations: binList,
internalLocations: groupBinLocationsByZone(binList, translate),
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you describe the reason for translate needing to be passed to the method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to pass translate to groupBinLocationsByZone because I was getting an "Invalid Hook Call" error in useCycleCountFilters when I tried using it without passing translate. That’s how I worked around it
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

And why was it working in the useCountStepTable before, without needing to pass it with params?

Copy link
Collaborator Author

@SebastianLib SebastianLib Apr 22, 2025

Choose a reason for hiding this comment

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

I think we didn’t have to pass translate to groupBinLocationsByZone in useCountStepTable because the function is called synchronously during render. But in useCycleCountFilters, it’s used inside an async function, so without passing translate this won't work

@awalkowiak awalkowiak merged commit d1e3031 into develop Apr 23, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-7042-2 branch April 23, 2025 19:44
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants