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

Close option on one info banner #744

Closed
cdipe opened this issue Oct 24, 2024 · 6 comments
Closed

Close option on one info banner #744

cdipe opened this issue Oct 24, 2024 · 6 comments

Comments

@cdipe
Copy link

cdipe commented Oct 24, 2024

Describe the bug
The close option is only on one info banner

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://moodlesite/admin/settings.php?section=theme_boost_union_content#theme_boost_union_infobanners_infobanner
  2. Create one time controlled info banner
  3. Create another time controlled info banner (use same settings as the first banner)
  4. Only the first created info banner will have the close option

Expected behavior
All info banners should have the close option

Screenshots
image

Additional context
Moodle version: 4.1.13
Boost Union version: v4.1-r29

@cdipe cdipe added the new Something which has been reported but has not yet beeen triaged by the team label Oct 24, 2024
@HsH-Wolf
Copy link
Collaborator

Hello @cdipe,

I tried to reproduce this behaviour, but everything works fine, if I set dismissible to "yes" for both banners:

grafik

Best regards
Yvonne

@cdipe
Copy link
Author

cdipe commented Nov 4, 2024

Hi @HsH-Wolf, did you create a time controlled banner? In the version we use the admin option to make the banner dismissable disappears when selecting "Time controlled". The option is still visible to the user though, as shown in my image, so I thought it should be there... I guess I'll change the time setting to "Perpetual" and put reminders in the calendar instead.
Do you know how v4.5 works? I'll make an improvement suggestion to have an option to make also the time controlled banner "permanently dissmissable", if it's not already so in that version.

@wiebkemueller-hsh
Copy link
Collaborator

Hi @cdipe

the banner is either permanently shown (and then permanently dismissable by users) or time controlled. The close option "x" in the banners (when configured as time bHi @cdipe

the banner is either permanently shown (and then permanently dismissable by users) or time controlled. The close option "x" in the banners (when configured as time controlled) are always shown but misleading since the banner always reappears after page reload. It is what I would call a discussable but sometimes desirable behaviour b/c you might want to force users to see the banner, but then why show the close option?

I agree with you that there are reasons to just not show the x if the x isn't removing the thing for good. So feel free to work out a logic for an improvement of the not yet existant "time controlled + permanently dismissable" - option, we can use this issue to be marked as an improvement.

This feature hasn't been touched in the 4.5 release. So for now - in your case I would stick to the already considered option to individually set a private calendar reminder to remove the banner if you want your users to be able to permamently remove the banner. In our case we use the timebased option only for noticing about e.g. an approaching maintenance time slot etc. - this never shows longer than one afternoon and we simply never cared about the being dismissable or not options in that case.

Regards on behalf of the team!
Wiebke

@wiebkemueller-hsh
Copy link
Collaborator

Hello again @cdipe,

I have to correct myself in one point: In the current release 4.5-r2 (and problably also other versions between 4.1 and 4.5) the time controlled banner has no more closing option x shown! So nothing more misleading here, there are 2 options: permanently shown (and then permanently dismissable by users) or time controlled.
You can still think about to propose a logic for a combination of both.

Regards
Wiebke

grafik

@cdipe
Copy link
Author

cdipe commented Nov 6, 2024

@wiebkemueller-hsh Thank you, I'll make a proposal :)

@HsH-Wolf HsH-Wolf removed the new Something which has been reported but has not yet beeen triaged by the team label Nov 7, 2024
@HsH-Wolf
Copy link
Collaborator

HsH-Wolf commented Nov 7, 2024

See proposal:
#748

@HsH-Wolf HsH-Wolf closed this as completed Nov 7, 2024
@github-project-automation github-project-automation bot moved this to Ready for Backport in Boost Union Planning Board Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: CLOSED
Development

No branches or pull requests

3 participants