Skip to content

Add visual warning for samples approaching retention expiration#66

Merged
ramonski merged 11 commits into2.xfrom
visual-indicators
Mar 10, 2026
Merged

Add visual warning for samples approaching retention expiration#66
ramonski merged 11 commits into2.xfrom
visual-indicators

Conversation

@xispa
Copy link
Member

@xispa xispa commented Mar 8, 2026

Description of the issue/feature this PR addresses

Important

Merge the following PR first!:

This Pull Request adds a configurable "Days before expiration" setting in the Storage control panel that defines the threshold for flagging samples approaching their retention expiry date (default: 5 days) and applies colors to allow users to quickly distinguish expired samples, samples approaching expiration and samples not expired.

General samples listing:

20260308062720

Samples listing inside a samples container:

20260308062713

Layout view inside a samples container:

20260308062728

Current behavior before PR

Only visual indicator for samples whose retention period has expired

Desired behavior after PR is merged

Visual indicator for samples whose retention period has expired and those approaching expiration

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

@xispa xispa requested a review from ramonski March 8, 2026 05:58
@xispa xispa marked this pull request as ready for review March 8, 2026 05:58
@ramonski
Copy link
Contributor

Would you mind to resolve the conflicts of this one

@xispa
Copy link
Member Author

xispa commented Mar 10, 2026

Would you mind to resolve the conflicts of this one

Done

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Great, works like a charm!

@ramonski ramonski merged commit f9add11 into 2.x Mar 10, 2026
2 checks passed
ramonski added a commit that referenced this pull request Mar 10, 2026
@ramonski ramonski deleted the visual-indicators branch March 10, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants