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

Fix: Embedded articles unreadable in left sidebar billboards #20646 && #20735 #20752

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morfenza
Copy link
Contributor

@morfenza morfenza commented Mar 8, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

I've opened this PR but I'd like to start a discussion on the best approach. It took some time do isolate this behavior since I couldn't find a easy way do make the Billboard show an article, with the help of @danielmbrasil we were able to reproduce it. We erased all Billboards and created a new one using Factories setting its body_markdown with a link to a chosen article.

It also proved to be difficult to isolate the CSS responsible for it, since its tag is also used in other places, so I couldn't simply alter it, so I've chosen to create a specific tag for it.

Suggestions:

  • Better documentation on the Billboard Model and Usage
  • In the app/views/shared/_billboard.html.erb create a conditional for sidebar_left, trying to isolate the required billboard showing the article

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

image

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, it was not needed
  • I need help with writing tests

What gif best describes this PR or how it makes you feel?

RDxzsLiTI

@morfenza morfenza requested a review from a team as a code owner March 8, 2024 22:18
@morfenza morfenza requested review from lightalloy and maestromac and removed request for a team March 8, 2024 22:18
Copy link
Contributor

github-actions bot commented Mar 8, 2024

Thank you for opening this PR! We appreciate you!

For all pull requests coming from third-party forks we will need to
review the PR before we can process it through our CI pipelines.

A Forem Team member will review this contribution and get back to
you as soon as possible!

Copy link
Contributor

github-actions bot commented Mar 8, 2024

Uffizzi Ephemeral Environment Deploying

☁️ https://app.uffizzi.com/github.com/forem/forem/pull/20752

⚙️ Updating now by workflow run 8209782689.

What is Uffizzi? Learn more!

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.

None yet

1 participant