mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02:00
* feat: initial structure * feat: add reportCard * feat: add report-toggle-list * feat: add report-card * feat: connect data * feat: add material icons * feat: add table styles * fix: rename reportcard * feat: add checkbox functionality * fix: correct invalid json format * feat: add support for changing project * fix: linting * fix: remove trailing slash * fix: change rewrites to routes * fix: update glob * feat: add name sorting * refactor: swap routes for rewrites in vercel.json * feat: add rewrite rules * feat: add all rewrite rules * feat: initial useSort implementation * feat: finalized useSort for consistent name sorting * feat: date parsing * feat: implement sorting functionality for headers * fix: ensure consistent naming in useSort * feat: finish reportcard * fix: remove loader class * feat: hide bulk actions behind feature flag * feat: add tests * fix: lint and proptypes * fix: lint * fix: update select styles * fix: create snapshots from node 12 * fix: safari flex inconsistencies * feat: expand conditionallyRender functionality to encompass passing functions as elseShow param * fix: conditional project selector * fix: add missing new-line * fix: move dependencies Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
20 lines
514 B
JavaScript
20 lines
514 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import ReportCard from './report-card';
|
|
import { filterByProject } from './utils';
|
|
|
|
const mapStateToProps = (state, ownProps) => {
|
|
const features = state.features.toJS();
|
|
|
|
const sameProject = filterByProject(ownProps.selectedProject);
|
|
const featuresByProject = features.filter(sameProject);
|
|
|
|
return {
|
|
features: featuresByProject,
|
|
};
|
|
};
|
|
|
|
const ReportCardContainer = connect(mapStateToProps, null)(ReportCard);
|
|
|
|
export default ReportCardContainer;
|