Skip to content

OBPIH-6894 Load the count step page#5033

Merged
awalkowiak merged 42 commits intodevelopfrom
OBPIH-6894-3
Feb 10, 2025
Merged

OBPIH-6894 Load the count step page#5033
awalkowiak merged 42 commits intodevelopfrom
OBPIH-6894-3

Conversation

@alannadolny
Copy link
Collaborator

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@alannadolny alannadolny self-assigned this Feb 7, 2025
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization labels Feb 7, 2025
@alannadolny alannadolny marked this pull request as draft February 7, 2025 10:15
@codecov
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.76%. Comparing base (d0d9670) to head (ea4b9a2).
Report is 201 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #5033   +/-   ##
=========================================
  Coverage       7.76%   7.76%           
  Complexity       860     860           
=========================================
  Files            620     620           
  Lines          42760   42760           
  Branches       10373   10373           
=========================================
  Hits            3321    3321           
  Misses         38945   38945           
  Partials         494     494           

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

@alannadolny alannadolny marked this pull request as ready for review February 7, 2025 15:56
SHOW_INFO_BAR,
SHOW_INFO_BAR_MODAL,
SHOW_SPINNER,
SHOW_SPINNER, START_COUNT,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's move it to another line

}), {});
setDateCounted(countedDates);
})();
}, [cycleCountIds]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

if it's an array, won't it re-render every time (new reference)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it won't re-render, because the reference doesn't change in that case.

case START_COUNT:
return {
...state,
toCount: action.payload,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's map it in the same way like it is sent to the backend, so let's name it as requests

MMM_DD_YYYY: 'MMM DD, YYYY',
MMM_DD_YYYY_HH_MM_SS: 'MMM DD, YYYY HH:mm:ss',
MM_DD_YYYY_HH_MM_Z: 'MM/DD/YYYY HH:mm Z',
DD_MM_YYYY: 'DD/MM/YYYY',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch

const addEmptyRow = (productCode, id) => {
// ID is needed for updating appropriate row
const emptyRow = {
id: _.uniqueId('newRow'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this sanitized before sending it to the backend? Or it is not sent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's not sent at this moment

@awalkowiak awalkowiak merged commit 86aaaf0 into develop Feb 10, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-6894-3 branch February 10, 2025 13:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants