Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labs filter on csv routine report #1388

Closed
wants to merge 5 commits into from

Conversation

pascagihozo
Copy link
Contributor

@pascagihozo pascagihozo commented Jan 10, 2025

Pull Requests Requirements

  • The PR title includes a brief description of the work done, including the
    Issue number if applicable.
  • The PR includes a video showing the changes for the work done.
  • The PR title follows conventional commit label standards.
  • The changes confirm to the OpenElis Global x3 Styleguide and design
    documentation.
  • The changes include tests or are validated by existing tests.
  • I have read and agree to the Contributing Guidelines of this project.

Summary

This PR contains a drop down to allow the user to download CSV Routine report for a specific lab

Screenshots

Screencast.from.2025-01-10.10-43-14.webm

https://streamable.com/br9k6w

[Add relevant screenshots here if applicable]

Related Issue

[Add a link to the related issue or mention it here if applicable]

Other

[Add any additional information or notes here]

@Bahati308
Copy link
Contributor

thanks @pascagihozo , you can cd frontend/ then npm run format since some checks are not passing, it may resolve it

Copy link
Contributor

@Bahati308 Bahati308 left a comment

Choose a reason for hiding this comment

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

agreed

Copy link
Contributor

Choose a reason for hiding this comment

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

why was the prettier version changed ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It might be because I installed a new version on my pc hence the version changes

break;
default:
break;
if (props.report === "CISampleRoutineExport") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just put this under the existing swtich statement

/>
{list.map((statusOption) => (

{props.report === "CISampleRoutineExport" &&
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 this is duplication code for the of dropdown

protected String selectedLabUnit;

// Add getter/setter
public void setLabUnit(String labUnit) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a wrong getter name

this.selectedLabUnit = labUnit;
}

public String getLabUnit() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

worng setter naming

@mozzy11
Copy link
Collaborator

mozzy11 commented Jan 14, 2025

reworked on this here #1405

@mozzy11 mozzy11 closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants