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

Highlighted content banner #2572

Merged
merged 7 commits into from
Feb 5, 2018
Merged

Highlighted content banner #2572

merged 7 commits into from
Feb 5, 2018

Conversation

jsperezg
Copy link
Contributor

Adds a banner that highlights content on home page as well as the
required administration page.

🎩 What? Why?

Adds a banner in the home page that can be configured to highlight content. It is a requirement from decidim-consultations.

Public home looks like this:

image

Administration interface looks like this:
image

📌 Related Issues

@ghost ghost assigned jsperezg Jan 25, 2018
@ghost ghost added the in-progress label Jan 25, 2018
@codecov
Copy link

codecov bot commented Jan 25, 2018

Codecov Report

Merging #2572 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2572      +/-   ##
==========================================
+ Coverage   98.82%   98.82%   +<.01%     
==========================================
  Files        1435     1435              
  Lines       33522    33592      +70     
==========================================
+ Hits        33128    33198      +70     
  Misses        394      394

Copy link
Contributor

@mrcasals mrcasals left a comment

Choose a reason for hiding this comment

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

Also, you're adding a decidim-system/decidim-system-0.9.0.pre.gem file that shouldn't be there

highlighted_content_banner_action_title: Títol del botó d'acció
highlighted_content_banner_action_subtitle: Subtítol del botó d'acció
highlighted_content_banner_action_url: URL del botó d'acció
highlighted_content_banner_image: Imatge
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, only modify the en.yml locales files

@mrcasals
Copy link
Contributor

I don't understand this PR. Is this coming from the @decidim/lot-px team?

Apart from that, can you add some help text explaining where will this be shown?

@mrcasals
Copy link
Contributor

Also, as per #2516, you'll need to move all spec/feature/ tests to spec/system/ (that's why there are merge conflicts here)

@jsperezg
Copy link
Contributor Author

@mrcasals This is a requirement from decidim-consultations. Maybe @xabier can give you more details about the intent of this feature.

@josepjaume
Copy link
Contributor

josepjaume commented Jan 26, 2018

This looks quite arbitrary; it might not be useful to everyone. I think changes like this should be done at the end application (by overriding partials or using deface to extend an existing view like here).

Also, there's lots of other unrelated files in the PR, looks like a bad merge!

@jsperezg
Copy link
Contributor Author

Last rebase has been a pain in the ass. I will fix the merge. With regards to the intent of this feature, better discuss it with @xabier

Adds hightlighted content banner feature
@jsperezg
Copy link
Contributor Author

Since we have an alternative implementation based on ViewHooks I decided to close this PR.

@jsperezg jsperezg closed this Jan 29, 2018
@ghost ghost removed the in-progress label Jan 29, 2018
@jsperezg jsperezg reopened this Jan 30, 2018
@ghost ghost added the in-progress label Jan 30, 2018
@mrcasals mrcasals dismissed their stale review February 5, 2018 08:45

Discussion has been addressed

@mrcasals mrcasals merged commit 9deecdf into master Feb 5, 2018
@mrcasals mrcasals deleted the highlighted_content branch February 5, 2018 11:27
@ghost ghost removed the in-review label Feb 5, 2018
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.

4 participants