From 1b969b8b7a38aeaa101880b25633cb06be3932ff Mon Sep 17 00:00:00 2001 From: Florian Brandel Date: Wed, 9 May 2018 13:19:39 +0200 Subject: [PATCH] [TASK] Display only featured items in the quadrant view --- README.md | 4 ++-- js/components/PageQuadrant.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e14d306..d28ac7e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Each file has a [front-matter](https://github.com/jxson/front-matter) header where the attributes of the item are listed: ``` + --- title: "React" ring: adopt @@ -46,8 +47,7 @@ Following front-matter attributes are possible: * **info**: (optional) A short textual description of the item (visible in overview pages) * **featured**: (optional, default "true") If you set this to `false`, the item - will not be visibile on the homepage anymore but still available in the radar - overview. + will not be visible in the radar quadrants but still be available in the overview. The name of the .md file acts as item identifier and may overwrite items with the same name from older releases. diff --git a/js/components/PageQuadrant.js b/js/components/PageQuadrant.js index 5ebaa1c..c71c92e 100644 --- a/js/components/PageQuadrant.js +++ b/js/components/PageQuadrant.js @@ -6,10 +6,10 @@ import Fadeable from './Fadeable'; import SetTitle from './SetTitle'; import { translate } from '../../common/config'; -import { groupByQuadrants } from '../../common/model'; +import {featuredOnly, groupByQuadrants} from '../../common/model'; export default function PageQuadrant({ leaving, onLeave, pageName, items, ...props }) { - const groups = groupByQuadrants(items); + const groups = groupByQuadrants(featuredOnly(items)); return (