Skip to content

Conversation

@mlocardpaulet
Copy link
Contributor

Hi,
the main aim was to modify the banner of the archived module (it was still "beta").
In the end I reorganised the banner text and conditions. Could you check?
I add the ShortMessages of the generic text document the messages for the banners (alpha, beta and archived).
And I modified the module pages accordingly.
Could you please confirm that you are OK with this new system for the banners? I'll work on some documentation for the Alpha. Put it somewhere.

Question:
Why are there 2 documents for the generic texts? One for DIA and one for DDA? Are these both used?

Copy link
Member

@enryH enryH left a comment

Choose a reason for hiding this comment

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

I would say the message is repeated too often in the same page (with 4 tabs). Can you consider to create a function for it, so it can be changed in one place only?

Co-authored-by: Henry Webel <heweb@dtu.dk>
@mlocardpaulet
Copy link
Contributor Author

I would say the message is repeated too often in the same page (with 4 tabs). Can you consider to create a function for it, so it can be changed in one place only?

Sure, well, at least now the message in the banner is only on one location.
How would you see it?

st.warning(
"This module is in BETA phase. The figure presented below and the metrics calculation may change in the near future."
else:
if self.variables_dia_quant.alpha_warning:
Copy link
Member

Choose a reason for hiding this comment

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

this is repeated from above. I am not sure how you want the warnings exactly to display, but I think this can go into an function, checking ing if the configuration sets these flags and then it calls the display method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something like what was done for #927?

Copy link
Member

Choose a reason for hiding this comment

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

yes. I will quickly have a look.

Copy link
Member

Choose a reason for hiding this comment

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

I have done it for one module now (10_), but if all use the same structure it should be easy to do for the rest. See my last commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks a lot. I'll make the changes for the other modules :) Hopefully today

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.

6 participants