Skip to content

OBPIH-7241 Create table component for inventory transactions report (improvements after QA)#5265

Merged
awalkowiak merged 3 commits intoOBPIH-7239from
OBPIH-7241-4
May 21, 2025
Merged

OBPIH-7241 Create table component for inventory transactions report (improvements after QA)#5265
awalkowiak merged 3 commits intoOBPIH-7239from
OBPIH-7241-4

Conversation

@SebastianLib
Copy link
Collaborator

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

…fix after QA)

OBPIH-7241 Chsnge filterForm submit logic

OBPIH-7241 Remove console.log

OBPIH-7241 Add small corrections

OBPIH-7241 Improve percentages logic

OBPIH-7241 Changes in messages.properties

OBPIH-7241 Simplify isSubmitDisabled logic

OBPIH-7241 Add small correction

OBPIH-7241 add isFilterRequired boolean

OBPIH-7241 Remove isFilterRequired boolean
@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 May 21, 2025
>
<div className="limit-lines-1">
{_.capitalize(getValue())}
{reasonCodes.find((c) => c.value === getValue())?.label}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't like that we are looping over reason codes to find the appropriate code to display (and I don't like the need for fetching). Can we add an enum on the front end and then get the label, calling something like ReasonCodes[getValue()]?

defaultMessage: 'Select a time range from above filters to load the table.',
};

const emptyTableMessage = !filterParams.startDate && !filterParams.endDate
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 the wrong error visible after changing the filters without fetching data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, because the filters are updated only when we click load table

@SebastianLib SebastianLib requested a review from alannadolny May 21, 2025 14:12
@awalkowiak awalkowiak merged commit a2550f0 into OBPIH-7239 May 21, 2025
5 of 6 checks passed
@awalkowiak awalkowiak deleted the OBPIH-7241-4 branch May 21, 2025 16:45
awalkowiak pushed a commit that referenced this pull request May 21, 2025
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