Skip to content

OBPIH-6895 Load the count confirmation page#5035

Merged
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6895-2
Feb 12, 2025
Merged

OBPIH-6895 Load the count confirmation page#5035
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6895-2

Conversation

@SebastianLib
Copy link
Collaborator

OBPIH-6895 Load the count confirmation page

OBPIH-6895 Load the count confirmation page

✨ 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)

image

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.

OBPIH-6895 Load the count confirmation page

OBPIH-6895 Load the count confirmation page
OBPIH-6895 Load the count confirmation page

OBPIH-6895 Load the count confirmation page
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: backend Changes or discussions relating to the backend server domain: l10n Changes or discussions relating to localization & Internationalization labels Feb 11, 2025
@codecov
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.80%. Comparing base (6e6cce7) to head (94fba71).
Report is 201 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5035      +/-   ##
============================================
+ Coverage       7.76%   7.80%   +0.03%     
- Complexity       860     868       +8     
============================================
  Files            620     620              
  Lines          42760   42760              
  Branches       10373   10373              
============================================
+ Hits            3321    3338      +17     
+ Misses         38945   38926      -19     
- Partials         494     496       +2     

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

{translate('react.cycleCount.dateCounted.label', 'Date counted')}
</span>
{' '}
<span>{moment(dateCounted).format('DD/MM/YYYY')}</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought we had a constant for the date formats. Maybe it would be good to have one. Thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

use formatDate from translation-utils

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

Choose a reason for hiding this comment

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

currentLocation?.id


const getCountedDate = (cycleCountId) => dateCounted[cycleCountId];

const columns = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't there useMemo missing? I know there were problems with translations, but we need to figure out the bug, instead of getting rid of the memoization.

}
}

"/inventory/cycleCount/count/check" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have to have a separate URL for it? Imho a simple two step wizard under /inventory/cycleCount/count would make more sense.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@SebastianLib on second thought we don't even need a separate page/step for it. It is just a state with disabled editing and two buttons changed

react.default.button.undoEdit.label=Undo edit
react.default.button.download.label=Download
react.default.button.availableDraft.label=Available draft
react.default.button.back.label=Back
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't it already exist?
I can see it on line 298 line

{translate('react.cycleCount.dateCounted.label', 'Date counted')}
</span>
{' '}
<span>{moment(dateCounted).format('DD/MM/YYYY')}</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

use formatDate from translation-utils

@awalkowiak awalkowiak merged commit e61ab55 into develop Feb 12, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-6895-2 branch February 12, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server 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.

4 participants