From a868d6aa1cfa400978d1ca26b6e6af57bda71cba Mon Sep 17 00:00:00 2001 From: David Date: Fri, 26 Nov 2021 14:35:30 +0100 Subject: [PATCH] Feature impact discover (#300) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add project name to project translate overview * fix route of poster in project dashboard * Upgraded Symfony packages to v2.8.30 (last working version) * Fix call to render method since it was renamed (cherry picked from commit 5d93afab554e8211c59ed1f1ab21a2eb4ac75ad2) * add composer.lock * restore a early die if misconfiguration * Updated Dockerfile to use an Ubuntu image that's not deprecated (#181) * Updated Dockerfile to use an Ubuntu image that's not deprecated * Removed Docker image based on date in favour of one that won't change * fix/composer lock (#185) * Fix call to render method since it was renamed (cherry picked from commit 5d93afab554e8211c59ed1f1ab21a2eb4ac75ad2) * remove lock to force deploy Co-authored-by: Carlos Alberto Martínez Gadea * Twitter card meta description fix * change projects to be shown in map when a matcher is selected to use node configuration if available * improve filters in discover and fix ajax query (cherry picked from commit 0432ebb325b99d68c42e300493fca974a6142c0f) * fix use of query parameters when they are not being used * fix project filters in discover and use of inner joins in project get list function * Create impact discover layout * Test msg sass and js * first steps for layout * add filters js * add ods icons behaviour * fix grid * add infinite scroll * add ods images * add icons * fix desktop filters toggle * move html to template * add tab background images * add home values module * fix mobile layout for values module in home * differentiate tabs backgrounds and fix mobile issues * add class to tint images * add home images * support for short titles at project slider * move lateral border in mobile to bottom * fix layout to show footprint link at last block in mobile * add real images of the real projects for impact discover and home values modules * add last project home values images for testing * add padding bottom to impact-discover * update package-lock.json * restore HTML & CSS * delete comment * Revert "update package-lock.json" This reverts commit 5ae0c2d9e4d1de876a2c2deaf84fbe10830123f0. * change use of footprint and sdgs assets from png to svg * Add matcher completed status * Fix icons size * Fix user leave exceptions * remove comment on sql project name selects * fix missing ) on fallback lang in Project published * create partials for impact discover three views * rename all sdg assets from ods to sdg * add copies to impact_discover * create new partials to use in impact discover project list * rework impact-discover to use the three views (mosaic, list projects and map) * fix small bug when the map pops in, so that it is correctly centered when adding projects * add new mapAction to ImpactDiscoverController to separate the three views in three functions * fix on docker-settings to be used on testsgst * rework impact discover views to have three endpoints * add channel filter to ImpactDiscover and actions to ChannelController * restore a early die if misconfiguration * change projects to be shown in map when a matcher is selected to use node configuration if available * fix project filters in discover and use of inner joins in project get list function * Create impact discover layout * Test msg sass and js * first steps for layout * add filters js * add ods icons behaviour * fix grid * add infinite scroll * add ods images * add icons * fix desktop filters toggle * move html to template * add tab background images * add home values module * fix mobile layout for values module in home * differentiate tabs backgrounds and fix mobile issues * add class to tint images * add home images * support for short titles at project slider * move lateral border in mobile to bottom * fix layout to show footprint link at last block in mobile * add real images of the real projects for impact discover and home values modules * add last project home values images for testing * add padding bottom to impact-discover * update package-lock.json * restore HTML & CSS * delete comment * Revert "update package-lock.json" This reverts commit 5ae0c2d9e4d1de876a2c2deaf84fbe10830123f0. * change use of footprint and sdgs assets from png to svg * create partials for impact discover three views * rename all sdg assets from ods to sdg * add copies to impact_discover * create new partials to use in impact discover project list * rework impact-discover to use the three views (mosaic, list projects and map) * fix small bug when the map pops in, so that it is correctly centered when adding projects * add new mapAction to ImpactDiscoverController to separate the three views in three functions * Fix user leave exceptions * add project name to project translate overview * remove comment on sql project name selects * fix on docker-settings to be used on testsgst * rework impact discover views to have three endpoints * add channel filter to ImpactDiscover and actions to ChannelController * add missing View import * improve filter by channel in impact discover * adapt channel select to mobile filter * add missing project location import in project api controller * improve impact landing editorial view * improve filters in impact discover mobile view * fix links in project name in landing impact * show projects in campaing and successful in impact discover * make impact discover filter chexkboxes clickable * fix project getByFootprintOrSdgs missing where * improve filters and ux in impact discover * improve channel select and ods select behaviour * fix channel filter in impact discover when changing views * apply filter changes in impact discover url query * remove code * remove duplicated routes * reworks based on review in #300 Co-authored-by: Carlos Alberto Martínez Gadea Co-authored-by: Ivan Vergés Co-authored-by: Javier Co-authored-by: Javier Carrillo Co-authored-by: Jordi Galobart --- .../impact_discover/partials/filters.php | 20 ++-- .../js/impact_discover/impact_discover.js | 48 +++++--- public/assets/sass/layouts/_home.scss | 19 +-- .../Controller/Api/ProjectsApiController.php | 109 ++++++++++-------- .../Controller/ImpactDiscoverController.php | 40 +++---- src/routes.php | 6 - 6 files changed, 124 insertions(+), 118 deletions(-) diff --git a/Resources/templates/responsive/impact_discover/partials/filters.php b/Resources/templates/responsive/impact_discover/partials/filters.php index 3ca2a58026..09940ac1e2 100644 --- a/Resources/templates/responsive/impact_discover/partials/filters.php +++ b/Resources/templates/responsive/impact_discover/partials/filters.php @@ -8,7 +8,7 @@

t('impact-discover-filter-by-footprints') ?>

- selectedChannel) : ?> - - - + - channels as $cid => $cname): ?> - - - - + channels as $channel): ?> + + +