comicrelief / campaign Goto Github PK
View Code? Open in Web Editor NEWComic Relief Campaign Distribution in Drupal 8
Home Page: https://master-tx3mbsqmxtu74.eu.platform.sh/fundraise
License: GNU General Public License v2.0
Comic Relief Campaign Distribution in Drupal 8
Home Page: https://master-tx3mbsqmxtu74.eu.platform.sh/fundraise
License: GNU General Public License v2.0
Since we start to use this project they update their vendors or replace them with others, we should follow their suggestions otherwise we may have to deal with issues that they no longer maintain.
Thunder v2 provides some really nice documentation related to their dealing with config. Don’t think we need to adopt it as-is, but it might be useful to have a deeper look into it.
For example:
Drupal\config_update\ConfigReverter::import()
Drupal\thunder_updater\Updater::updateConfig()
to update config, and they check beforehand whether that config was overwritten or not. Since we’ll initially be managing few sites (not 100s like thunder), this feels like overkill especially since we don’t want to deal with overwritten config, but worth knowing a way to do soWe need to make one field (ie desk_img) to output different responsive images depending on what layout you choose (big header or smaller head).
Remove inline responsive image styles and create a function to display the two options.
Big header:
And use something like: field_landing_image.big_header
and field_landing_image.small_header
Currently the colours added to content is not displayed in the WYSIWYG view - this means editors must publish content before really seeing what it looks like.
The colours drop down currently doesn't include yellow - can we make rules that all colours in the pattern lab are automatically in the CMS editorial tools?
Inline links are also manually added in the HTML rather than as an editor tool.
We want to add more badges, we have the following list to check the source of the badges.
Badges that probably we want:
The following is appearing on every admin page at the top.
This is meta icons block, Use block--cr-meta-icons.html.twig in your theme templates folder to override it
Breadcrumb
Modify the cr_single_msg module to allow the colour options to be overridden easily by a child theme.
Roave security advisories is a composer tool that blocks composer packages from being installed that have know security advisories. It is run against composer update or composer require and prevents packages with known issues from being installed.
CR logo overlapping cms edit menu,
Behat test not able click edit. Test failing.
The single message update to enable text to go extend below the line of the image has broken the single message when text is less than the image height. The expected behaviour would be that the bottom of the single message would be in line with the bottom of the image unless the text is bigger than the image.
Image #4 x 3
Regenerating composer.lock
using composer update nothing
, then validating it using composer validate
Currently the news component auto-generates a news category for every category added by the content team and puts the category into the drop down filter:
The categories currently are used a bit like tags so that the 'related news' is relevant to the article - for example 'Women and Girls' is a grants initiative we support and we would want those articles to link to each other. We do not want the 'Women and Girls' category to be displayed as a front end filter to the end user.
The category should still exist in the background to link relevant articles to each other - the content team just need to be able to choose if they are displayed as final front end filters to the end users.
The Drupal version is currently set to 8.2.7, it needs to be upgraded to 8.2.8 to implement the latest security release.
We have a Test broken because the date format.
A possible way to fix this:
c4bbe14#diff-a27cab3af67f912d403d2d66ee78e582R76
Currently, we manage our stack (PHP, MySQL, etc) manually on Travis, but it would be easier to reuse our Docker setup, so we can debug Travis runs locally.
Editors often don't have a category to add to an article, so we should consider making this field optional instead of required. We should review how the article overview page will then show the article, would all articles without a category be shown via "None" dropdown option?
campaign/docs/install.md
the order should be 1st bundle install
and then npm install
also for Ubuntu users we should add: sudo ln -s /usr/bin/nodejs /usr/bin/node
Sorry for comment this here :)
All of the custom modules have colour configuration duplicated across them and are not easy to override in child themes
Button 'Add existing Partner' not found
Failed scenario
Drupal\DrupalExtension\Context\MinkContext::pressButton()
And I press the "Add existing Partner" button # Drupal\DrupalExtension\Context\MinkContext::pressButton()
Button with id|name|title|alt|value "Add existing Partner" not found. (Behat\Mink\Exception\ElementNotFoundException)
https://comicrelief.atlassian.net/browse/CR-5
The current navigation module that's enabled by default is the feature navigation (3 items featured plus the hamburger menu). This should be changed to a default navigation that shows all the menu items inline and only has the hamburger menu on small and medium screen sizes. The feature navigation should be an optional module that can be enabled to replace the default navigation.
Styling and javascript of the new default navigation is done in the pattern-lab:
comicrelief/pattern-lab#43
Specific styling for comicrelief.com:
comicrelief/pattern-lab#71
The javascript for the feature navigation still lives in the navigation module, so this needs to be moved to the pattern-lab too and the feature navigation needs to be either renamed or moved to a new feature nav module.
We need to find a way to override the default navigation when the feature navigation module is enabled.
Some RND specific changes:
https://github.com/comicrelief/rnd17/issues/298
Disable cr_navigation module in comicrelief theme:
https://github.com/comicrelief/comicrelief/issues/75
Styling for the feature nav needs to be checked:
comicrelief/pattern-lab#120
Open and close search block not working. Search results have no layout.
Change media file path in media feature test.
Failed scenarios
Then I should see "File nose (administration) has been created." # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
The text "File nose (administration) has been created." was not found anywhere in the text of the current page. (Behat\Mink\Exception\ResponseTextException)
Then I should see "File pdf (administration) has been created." # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
The text "File pdf (administration) has been created." was not found anywhere in the text of the current page. (Behat\Mink\Exception\ResponseTextException)
And I enter "Here goes the video caption" for "Video caption" # Drupal\DrupalExtension\Context\MinkContext::assertEnterField()
Element is not currently visible and so may not be interacted with
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'bf1d7a1502a8', ip: '172.19.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.8.0-52-generic', java.version: '1.8.0_91'
Driver info: driver.version: unknown (WebDriver\Exception\ElementNotVisible)
Then I should see "File video file has been created." # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
The text "File video file has been created." was not found anywhere in the text of the current page. (Behat\Mink\Exception\ResponseTextException)
From access_unpublished
:
Easy to use module grants access to view unpublished content to anyone who has a unique URL and appropriate permissions. Visitor can be anonymous or authenticated user with the user role.
Review whether this is wanted functionality (it is now part of Thunder v2)?
We want to start to use our docker images in Travis, in order to do that we need to update some functions or use different ones.
List of features failing:
tests/behat/features/media.feature:5
tests/behat/features/media.feature:20
tests/behat/features/media.feature:62
tests/behat/features/search.feature:9
tests/behat/features/search.feature:15
tests/behat/features/search.feature:20
Currently we have some components with bg colour field required some not. For those required we had to add an option "no colour". We have decided to make them all not required so we can have the option "none" as default.
The following files are part of the repo still:
however these aren't used anymore since we use composer for everything. We need to remove these.
When contributing the profile to d.o. we might need to re-add specific makefiles, as the documentation still forces you to use makefiles, but we'll re-add this then.
Now we have grunt task to download modernizr.
We need to remove it from composer and enable it in grunt.
grunt.registerTask('build', [
// only needed if you have your own components
// 'sass_globbing',
'sass',
'concat',
'uglify',
// we need to remove modernizr downloading via composer first so we can enable it and let grunt build it
// 'modernizr',
'kss',
// 'imagemin'
]);
There are certain instances where we do not want an article to be pulled through onto article aggregator views (e.g. an email landing page which links to a specific moment-in-time piece of marketing).
Similarly for the articles which we are using as Press Releases. they should be excluded from the main news aggregator views.
Currently, a thank-you message is added to the welcome_queue
, which in turn is being consumed by smart_consumer. We'll replace this consumer with serverless_consumer, which accepts a slightly different message format.
RabbitMQ format: https://github.com/comicrelief/serverless-mailer/blob/master/docs/message_formatting.md
General use case: In order to auto-display templated content on pages on a website, we need to be able to display articles based on their category - for example on cr.com: Press Releases only on the media centre page or Grants initiatives only on the grants page.
The category would also be required to not display on 'All news'
Follow-up from first attempt in #859 (we got stuck at the content_moderation upgrade path).
Unofficial upgrade path that can be tried now is described in https://www.drupal.org/node/2846618
Test fails in local env.
Status code not available from selenium driver.
News landing page for RND was built under the section of /news-tv-and-events/ - this is only relevant to that specific site. We need to replace this logic in the Campaign code base.
The platform config should be just “the initial state” and every site later onwards can do what they want with the config (quote from @pvhee )
Upgrades
Editors currently can apply a few different actions to many of the same content via the editor library view drop down (see admin list)
We need to review what is currently on this list - but one request is that applying tags could be an action which can be done from the library view rather than having to open each article and apply individually (image to be provided by content team).
I think is better if we add in the documentation install composer and do a "composer global require drush/drush phing/phing" to get everything rather than the actual way. @pvhee @peter-brady
We've fully adopted composer in favor of phing. Remove legacy phing files from the repo
Generated via https://github.com/skywinder/github-changelog-generator
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Closed issues:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
Merged pull requests:
* This Change Log was automatically generated by github_changelog_generator
Old title 'Featured' news in row component.
Auto-pull through relevant articles onto pages via a 'Featured' component.
This should be flexible to the content theme of the page and should be set by the content editors in the row component - for example: Showing news relating to a celebrity challenge on that landing page or news articles about grants on the grants landing page.
This will mean that we will need to have a 'featured' tag on the articles themselves to show when they should be pulled through - this tag should be set as default but can be removed (for example when the content is dry/obligatory for legal reasons).
Currently applied filters on the news landing pages are not reflected in the url (see here)
There are cases where we may need to direct users to a pre-filtered page with only 1 category's articles displaying (for example only show The Difference We Make articles to users coming from the need section).
Ajax was added to the site when we removed the 'apply' button from the filter so ideally the new solution to meet both requirements (pulling the category into the url and single click category selection).
Display the block and search results by default in Campaign installation using Drupal db search
Follow up from #906 (comment): we don't currently have behat tests around media search. Write a couple of tests using our default content
As an admin user, while on the Drupal site admin, the cookie notice displays. Ideally this should be blocked from display when logged in as an admin user for all /admin/ routes.
Partners block is pulling through the default settings from RND which means that it keeps being reset to default in CR when campaign is updated. This issue hasn't occurred this week but was happening to content team and meant that the pages with Partner blocks kept being reset.
New user groups for CMS for comicrelief.com
Admin
• Can do everything
User manager
• Can add/edit other individuals’ user permissions
• Can create and publish all content
• Can view all published and unpublished content
Editor
• Can create and publish all content
• Can view all published and unpublished content
Contributor
• Can create content but cannot publish content
• Can view all published and unpublished content
Press team
• Can only create articles (preferably only have option to tag as press release? Don’t worry if not…)
• Can publish the articles they create
• Restricted only to adding articles, no other CMS permissions
Reviewer
• Can view all published and unpublished content
• No other CMS permissions i.e. can’t see CMS menu
Security update available - https://www.drupal.org/node/2879180
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.