Skip to content

OBPIH-6974 Create the recount form connecting with the data#5047

Merged
awalkowiak merged 19 commits intodevelopfrom
OBPIH-6974
Feb 19, 2025
Merged

OBPIH-6974 Create the recount form connecting with the data#5047
awalkowiak merged 19 commits intodevelopfrom
OBPIH-6974

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: Things that should be added later:

  • Replace randomized Quantity Counted (I used math.random)
  • Replace name (counted by and date) with values from API (ticket is already created)
  • Remove the randomized Quantity Counted in the Count Difference column after getting it in the response
  • Replace the mocked comment from the count step

📷 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.
image

@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 17, 2025
@codecov
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.84%. Comparing base (4b8ba88) to head (94acae4).
Report is 202 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5047      +/-   ##
============================================
- Coverage       7.88%   7.84%   -0.04%     
+ Complexity       884     876       -8     
============================================
  Files            625     625              
  Lines          42813   42813              
  Branches       10376   10376              
============================================
- Hits            3375    3358      -17     
- Misses         38933   38952      +19     
+ Partials         505     503       -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.

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

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

I have two questions that are not change requests (at least yet)

<MainLayoutRoute path="**/stockMovement/createOutbound/:stockMovementId?" component={AsyncStockMovement} />
<MainLayoutRoute path="**/stockMovement/importOutboundStockMovement" component={AsyncOutboundImport} />
<MainLayoutRoute path="**/inventory/cycleCount/count" component={AsyncCycleCountCountStep} />
<MainLayoutRoute path="**/inventory/cycleCount/resolve" component={AsyncCycleCountResolveStep} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Discussion] - If I understand this correctly there are no steps involved there, perhaps it would be better to rename "steps" into "forms"?

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 treated it as the next step of the selection (after to count tab)

<p className="count-step-label count-step-label-date-counted mr-2 mt-2">
{translate('react.cycleCount.dateCounted.label', 'Date Counted')}
<span className="count-step-value ml-1">
{formatLocalizedDate(dateCounted, DateFormat.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.

Why we are using this date format here? Weren't we recently unifying or changing the date format to a specific one?

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 the date format from mock

Copy link
Collaborator

Choose a reason for hiding this comment

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

@alannadolny You mean this one:
image
?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yup

Copy link
Collaborator

Choose a reason for hiding this comment

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

How do you know which part is the day and which part is the month?

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

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

One more question popped up in my head while rereviewing this one

const {
columns,
defaultColumn,
recipients,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why it is called recipients?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because i copied it 😄

@awalkowiak awalkowiak merged commit 74f6131 into develop Feb 19, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-6974 branch February 19, 2025 09:47
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.

2 participants