MozillaFoundation / foundation.mozilla.org

Mozilla Foundation website
https://foundation.mozilla.org
Mozilla Public License 2.0
385 stars 153 forks source link

[PNI] - Editorial Content Index Page - Filter by Content category #9107

Open fessehaye opened 2 years ago

fessehaye commented 2 years ago

https://www.figma.com/file/GwdoUiY4fzVyeLfXsAJGPq/*Privacy-Not-Included-Website?node-id=2303%3A126762

Content Filter Types names are All, Articles, Advice, Petition, and In the Press (which is visually separated and will not show up in "All")

Dev Tasks:

Acceptance Criteria:

Article Index Page - All

┆Issue is synchronized with this Jira Task

tbrlpld commented 2 years ago

@fessehaye Are you sure you want to do this in JS? We have very similar functionality already on the backend and the index page from which we are going to build the index page.

cdanfon commented 2 years ago

@nancyt1 to update design, @beccaklam to update @fessehaye on decision about separating press from other categories

tbrlpld commented 2 years ago

Functionality is outlined in the dev notes: https://docs.google.com/document/d/12AmWzlOVll6hHBPL-lu3E4rAtOM9vX6wgO6U8uOxCxk/edit#heading=h.qedu6bgm180y

beccaklam commented 2 years ago

Nancy has updated the design. @fessehaye as Tibor mentioned in the comment above we have notes on the filtering functionality in the dev notes (see under 'Content index page'). Copying part of the notes here:

  • "All articles" lists all non-categorized articles, all advice-category (or otherwise categorized) articles and all campaign pages. It should NOT show the news updates!
  • Filter index by content category, there already is similar functionality on the index page. Show a filtering label for each content category (in the beginning there will only be one) that filters the list of entries to only those that belong to the content category.
  • Filter index to show only campaign pages (this can be done based on the page type)
  • Show list news updates (these were not shown before)
tbrlpld commented 1 year ago

Displaying campaign pages requires that page type to exist. Therefore, #9082 is blocking this

tbrlpld commented 1 year ago

Removing from this sprint since it's p3.