Skip to content

Collapsable banners for survey annoucement #2632

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

Merged
merged 2 commits into from
May 2, 2025

Conversation

Wineshuga
Copy link
Contributor

@Wineshuga Wineshuga commented Apr 23, 2025

Description

This pull request introduces a new banner feature across the website. The changes involve adding the banner's HTML structure, styling, and functionality.
I found this open issue (#2625), and it looked like something I could do, so I decided to give it a try. I would appreciate some feedback.

Banner Feature Implementation:

  • Added a new banner in layouts/banner.html with a survey link and a close button.
  • Integrated the banner into the site's header by rendering it in layouts/header.html.
  • Implemented a hideBanner JavaScript function in layouts/footer.html to allow users to close the banner.

Screenshot

image

@Wineshuga Wineshuga marked this pull request as ready for review April 23, 2025 13:42
@ArthurSens
Copy link
Member

ArthurSens commented Apr 30, 2025

Hey @Wineshuga, thanks for raising the PR! I'm not a front-end engineer, but the preview showed the behavior I wanted to see ❤️.

There are some things we need to clean up first, though:

  • It looks like you accidentally added a few extra commits to this PR. Could you please make sure only the relevant commits are here?
  • I'm seeing a lot of unrelated changes, probably because of some automatic linting configuration in your IDE. Could you revert them and commit only what's relevant to the PR?

It looks like @IsabellePinheiro raised #2629, but the banner is only visible on the index page. Isabelle, since you know more about front-end code than I do, could you review this PR here?

@Wineshuga
Copy link
Contributor Author

Thank you, @ArthurSens, for the helpful feedback. I've removed the unrelated commits that were mistakenly included and also cleaned up the changes caused by my IDE’s automatic linting. Please let me know if there's anything else you'd like me to adjust.

@ArthurSens
Copy link
Member

Thank you, let's ship it!

@ArthurSens ArthurSens merged commit d23815e into prometheus:main May 2, 2025
5 checks passed
@ArthurSens
Copy link
Member

Urgh, for some reason it didn't work well when deployed. I'm looking for extra help here

image

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.

2 participants