Skip to content

Show image in MAS enterprise banner - #24438

Open
EinLama wants to merge 2 commits into
release/17.7from
task/maw-3875-prepare-animation-for-enterprise-banner-for-multiple-active-sprints
Open

Show image in MAS enterprise banner#24438
EinLama wants to merge 2 commits into
release/17.7from
task/maw-3875-prepare-animation-for-enterprise-banner-for-multiple-active-sprints

Conversation

@EinLama

@EinLama EinLama commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Ticket

https://community.openproject.org/wp/MAW-3875

What are you trying to accomplish?

Show an image for the Enterprise upsell banner for multiple active sprints.

Screenshots

Light mode

image

Dark mode

image

What approach did you choose and why?

Added the assets to the module code (see engine.rb) so that the core does not know anything about the module.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@toy toy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think with_enterprise_banner_guard helper should be used instead, as otherwise there is no inline banner for trial token

  <% with_enterprise_banner_guard :multiple_active_sprints, variant: :large, image: "enterprise/multiple-active-sprints-light.png", dark_image: "enterprise/multiple-active-sprints-dark.png" do %>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point! Adjusted 👍

This also caters for trialing tokens

@toy toy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works as expected
Concerning https://community.openproject.org/projects/MAW/work_packages/MAW-3875/activity#comment-1708837, I think either merge and create a ticket to update images or wait for new images, up to you

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