Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Default to selecting all for event stream (#194)

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>

authored by

Ibiam Chihurumnaya and committed by
GitHub
509d3a9a c1f99208

+8 -2
+1 -1
CHANGELOG.md
··· 17 17 - Add `StringSlice` UDF which extracts a substring by index range ([#189](https://github.com/roostorg/osprey/pull/189) by [@bealsbe](https://github.com/bealsbe)) 18 18 19 19 ### 🐛 Bug fixes 20 - 20 + - Default to selecting all for event stream ([#194](https://github.com/roostorg/osprey/pull/194) by [@chimosky](https://github.com/chimosky))
+7 -1
osprey_ui/src/components/event_stream/FeatureSelectModal.tsx
··· 76 76 return featureCategory.substring(0, featureCategory.lastIndexOf('.')).replace(/_|\//g, ' '); 77 77 }; 78 78 79 + const isSetSelected = (feature: string) => { 80 + if (!useCustomFeatures) return true; 81 + 82 + return selectedFeatures.has(feature as string); 83 + }; 84 + 79 85 const renderModalTitle = () => { 80 86 return ( 81 87 <> ··· 130 136 value={feature} 131 137 disabled={!useCustomFeatures} 132 138 onChange={handleSelectFeature} 133 - checked={selectedFeatures.has(feature as string)} 139 + checked={isSetSelected(feature)} 134 140 className={styles.featureCheckboxRow} 135 141 > 136 142 <span className={styles.featureSpan}>{feature}</span>