Skip to content

OBPIH-7555 Create UI for Expiration History report#5577

Merged
alannadolny merged 11 commits intodevelopfrom
ft/OBPIH-7555
Nov 4, 2025
Merged

OBPIH-7555 Create UI for Expiration History report#5577
alannadolny merged 11 commits intodevelopfrom
ft/OBPIH-7555

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Oct 29, 2025
@alannadolny alannadolny marked this pull request as draft October 29, 2025 14:55
@github-actions github-actions bot added type: feature A new piece of functionality for the app 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 Oct 29, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.53%. Comparing base (1bb7314) to head (78cf08b).
⚠️ Report is 175 commits behind head on develop.

Files with missing lines Patch % Lines
...rg/pih/warehouse/reporting/ReportController.groovy 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5577      +/-   ##
============================================
- Coverage       9.12%   8.53%   -0.59%     
+ Complexity      1170    1125      -45     
============================================
  Files            701     711      +10     
  Lines          45281   45581     +300     
  Branches       10851   10906      +55     
============================================
- Hits            4131    3892     -239     
- Misses         40497   41110     +613     
+ Partials         653     579      -74     

☔ 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 October 31, 2025 18:16
loading={loading}
/>
</div>
</PageWrapper>
Copy link
Member

Choose a reason for hiding this comment

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

I like how clean this component breakdown is 👍

}, [tableData]);

const columns = useMemo(() => [
columnHelper.accessor('transactionNumber', {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should move this to a constants file

const columns = useMemo(() => [
columnHelper.accessor('transactionNumber', {
header: () => (
<TableHeaderCell columnId="transactionNumber">
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 need this columnId here? We already pass it in accessorKey above

Copy link
Collaborator

@kchelstowski kchelstowski left a comment

Choose a reason for hiding this comment

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

@SebastianLib I agree with your comments and I don't have any other suggestions from myself. Please take this one and apply your requested changes.

Comment on lines +3 to +17
@mixin
limit-lines($lines-number) {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: $lines-number;
line-clamp: $lines-number;
-webkit-box-orient: vertical;
}

@for $i from 1 through 10 {
.limit-lines-#{$i} {
@include limit-lines($i);
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

I removed this from cycleCount.scss and added it here because we want to use class limit-lines in other components as well, not only in the cycle count.

defaultMessage: 'Start Date',
localizeDate: true,
localizedDateFormat: DateFormat.COMMON,
dateFormat: DateFormat.DD_MMM_YYYY,
Copy link
Collaborator

Choose a reason for hiding this comment

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

The previous implementation had an issue when fetching date parameters from the URL (I assume translating dates). For a moment, we had something like what’s shown in the screenshot and the video:

image
2025-11-03.13-54-09.mp4

After discussing with the rest of the team, we decided that there is no sense to waste time on this and the best approach is to implement it the same way as in other filters (e.g., cycle count, products list, etc.):

dateFormat: DateFormat.DD_MMM_YYYY

This way we no longer have issues with date translation, but the filter field will display dates only in English.

@alannadolny alannadolny merged commit 0f7ce3b into develop Nov 4, 2025
7 checks passed
@alannadolny alannadolny deleted the ft/OBPIH-7555 branch November 4, 2025 09:53
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 type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants