Skip to content

OBPIH-7732 E-Request UI improvements#5911

Open
adambalcerzak wants to merge 5 commits into
developfrom
feature/OBPIH-7732
Open

OBPIH-7732 E-Request UI improvements#5911
adambalcerzak wants to merge 5 commits into
developfrom
feature/OBPIH-7732

Conversation

@adambalcerzak
Copy link
Copy Markdown
Collaborator

@adambalcerzak adambalcerzak commented May 6, 2026

✨ Description of Change

Link to GitHub issue or Jira ticket:
https://pihemr.atlassian.net/browse/OBPIH-7732

Description:
I made changes described in the ticket in the Add Items page from Inbound -> Create Stock Request.


📷 Screenshots & Recordings (optional)

@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 labels May 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 10.51%. Comparing base (e14146d) to head (0aa4aec).
⚠️ Report is 113 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #5911      +/-   ##
=============================================
+ Coverage       9.93%   10.51%   +0.57%     
- Complexity      1395     1598     +203     
=============================================
  Files            745      801      +56     
  Lines          46466    47462     +996     
  Branches       11045    11222     +177     
=============================================
+ Hits            4617     4990     +373     
- Misses         41114    41683     +569     
- Partials         735      789      +54     

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

},
};

const DeleteIcon = () => <RiDeleteBinLine />;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is it a function? ButtonField accepts buttonLabel and checks if the prop is a string. If not, it should render the component, so I believe it should work with just RiDeleteBinLabel, but I can be wrong

Image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was the only way I found that displayed the icon. I'm open to suggestions how to do it better.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Image

quantityRequested: {
...FIELDS.quantityRequested,
flexWidth: '2.5',
fixedWidth: '10ch',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why "ch"? I didn't see that before anywhere.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Unit ch is relative to the width of the "0" (zero). How should it be done better?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How does the "ch" work when the screen size changes? We support everything above 1368px. If it works fine, I am ok with that.

Comment on lines +247 to +250
comments: {
...FIELDS.comments,
flexWidth: '6',
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can't you change the flexWidth in the FIELDS definition?

@awalkowiak awalkowiak changed the title Feature/obpih 7732 OBPIH-7732 E-Request UI improvements May 12, 2026
Comment on lines +188 to +192
style: {
color: '#dc3545',
border: 'none',
'font-size': '1rem',
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If possible, let's avoid inline styles and keep styles inside CSS classes. Also, please use CSS variables for colors instead of hardcoded values. Color variables should be defined in colors.scss, and use for example:

color: var(--orange-500);

remove unnecessary function
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 type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants