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

Allow to set a custom comment for when a result is out of range #2369

Merged
merged 9 commits into from
Sep 1, 2023

Conversation

xispa
Copy link
Member

@xispa xispa commented Sep 1, 2023

Description of the issue/feature this PR addresses

This Pull Request enables the existing rangecomment field, so when has a value set, the system displays that value in results report in accordance. It also makes the default edit form styling to not apply on listings (otherwise, the specs widget is not usable).

Current behavior before PR

Is not possible to display a custom text in results report when the result is out of range

Captura de 2023-09-01 14-02-36

Desired behavior after PR is merged

Is possible to display a custom text in results report when the result is out of range

Captura de 2023-09-01 14-01-51

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@xispa xispa changed the title Allow to set an custom comment for when a result is out of range Allow to set a custom comment for when a result is out of range Sep 1, 2023
u"indicate a shoulder range. "
u"Any result outside the results range but within the "
u"shoulder range will raise a less severe alert. "
u"If the result is out of range, the value set for "
Copy link
Contributor

Choose a reason for hiding this comment

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

somehow the description in the UI is cropped at this point (Maybe because of the starting single quote in the next line?).

Copy link
Member Author

Choose a reason for hiding this comment

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

Cannot reproduce 🤔 . It is displayed correctly to me:

Captura de 2023-09-01 14-39-34

Copy link
Member Author

Choose a reason for hiding this comment

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

Even when I shrink the window:

Captura de 2023-09-01 14-41-27

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, it does not seem like a browser issue, because the text is even cropped in the HTML:

Add Analysis Specification — SENAITE LIMS 2023-09-01 2 PM-45-27

It appears to me even for new created sites when adding a new specification.

Copy link
Member Author

Choose a reason for hiding this comment

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

Umm..

Captura de 2023-09-01 15-10-28

These are my versions:

Captura de 2023-09-01 15-11-27

@ramonski ramonski merged commit 8caa120 into 2.x Sep 1, 2023
2 checks passed
@ramonski ramonski deleted the show-range-comment branch September 1, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants