Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OI - 278, 280. Expert review and cropping. (#156)
* OI-246 Removed link to content from News title, fixed tags visibility on News page itself and inside the /news. Fixed "User page" condition submit logic. * OI-206 Changed thumbnail style to compact_user_icon in next user view modes: additional details, default, edit. * OI-243 Change OpenidealIdeaUpdateInfo create and change date formats. Fix CSS styles for right sidebar of content types canonical pages. * OI-85 Fix CSS for workflow block, and mobile view of /idea page. * Reverted composer.json changes. * OI-243 Removed unneeded code. * OI-125,142 Changed moderation content view title, and altered local task title. Changed slideshow arrows. * OI-246. Implemented OpenidealRRSSBBlock, which provide ability to set an entity from context e.g. from layout builder. Implemented styles for /news page. * OI-159 Implement: "user_mention" Message template, Rules action - "Create message after mentioning user". Add appropriate message_template texts for the message displayed itslef, email subject and body. Add additional conditions for "activity feed" views. Rework the MessageAction. * OI-166 Replace the voting apis form's ajax submit handler. Implement logic to update the count of like in real time. * OI-166 Add todo. * OI-159 Implemented logic to change the showed text for user mention activity for current user page, and others users pages. Fixed the pswp image arrows on mobile screen. Fixed logic to send the message during user mentions only for mentioned user. * OI-166 Fix bug related to rules, and voting, add additional condition to rules action. Reworked _openideal_challenge_vote_ajax_submit logic, add additional ajax command to response. Remove unneeded logic from scripts. * OI-159 Move logic of changing the partial field into mentions entity preprocess. * OI-159 Add delta to getText method. * OI-242 Remove image button. OI-113 Increase size of the modal for entity browser. * OI-00 Change the gulp script, remove source map and cleanCss gulp plugins. * OI-166 Implemented new render element - Statistics theme for the element statistics_element, related twig template, ability to change attributes. Replace site_wide_statistics_block theme with statistics_item, reworked all blocks that used this theme. Implemented ability to set data-* attribute to statistics count, that adds ability to update counters in real time, without rely on css classes. * OI-166 Add css files. * OI-258 Implemented AutocompleteController and ideas_autocomplete_entity_reference views entity reference for ideas autocomplete. Add the ability to show autocomplete for title field of the Idea. * OI-258 Reworked IdeasAutocompleteController to use entity_reference_selection plugin, implemented ability to add the url to autocomplete keys. Implemented script that listen "autocompleteselect" event, and redirects user on autocomplete selection. Implemented logic to show message after user being redirected into possible dublication page. * OI-258 Change query parameter name. * OI-00 npm audit fix. * OI-166 Workflow identification fix. * OI-255 Reworked the openideal_user_form_user_login_form_alter hook, implemented ability to add images for the login-with template and reworked the template itself. Create a custom block type for login right section. Implemented styles for login page. Installed and configured "Underline" js library, implemented related script to make it works. * OI-255 Implement hook_update that creates a block_content for right login section, export the block via default_content module. Implement styles for register, reset password forms. Implement modile styles for login form. Add signup, forgot password links, and related to them styles|logic. * OI-276 Composer dependencies fix. * OI-275 Move all logic related to login block, into openideal_login. Create libraries. Reworked openideal_user hook install, to enable the login module. Move all related to block configurations into the block. * OI-275 Move hook_user_login into login module. * OI-255 Small fixes. * OI-255: Add missed module dependencies, move appropriate configuration into config/optional folder. * OI-255: Remove useless dependence. * OI-159 Move cache context out from if statement. * OI-113 Change width of entity browser entity configurations. * OI-00 Remove logic that change behavior of html[type=date] input. * OI-255: Remove position absolute from em. * OI-279: Create discussion node type, with body, comments and status fields. Implement openideal_discussion module with: hook_form_FORM_ID_alter that hide title for the discussion add form, and body label; openideal_discussion_comment_create_access - that allows to add comments in Idea discussion only for group Author, Co-author and Expert; OpenidealDiscussionAddBlock - that has "Add Expert Review", and Export Review (@count) where count is all idea expert reviews. Install bootstrap4_modal module. Install Group Content discussion for the Idea group type. Create Idea discussions view block that displays all the ideas discussions. Add appropriate permissions for group_node:discussion group content. Apply patch to Drupal core that preventsmMultiple usages of FieldPluginBase::getEntity do not check for NULL, leading to WSOD. * OI-279: Remove disscusion field, add additional logic to not allow to add new comments when field_status is false. * OI-279: Implement "Entity In moderation state" condition plugin and add appropriate conditions to discussions related blocks. Create event subscriber that react on layout builder SECTION_COMPONENT_BUILD_RENDER_ARRAY event and add "Read review" button to the discussion teaser mode. Add boolean field_visibility that indicates if the discussion is visible for user with certain permission. Rework logic of DuscissionAddBlock to restrict access to add discussions when node isn't in "Expert Review" state. Implement openideal_discussion_node_access that hide the discussion when field_visibility turned off and make it visible only for user with 'view unpublished group_node:discussion entity' permission. Add all needed fields into discussion teaser view mode. * OI-281: Implement Discussion "message" view mode layout template. Implement 'Create a message after adding discussion' rule, and make additional conditions to hide Discussion from default Create node rules, and to not create discussion if it's status "invisible". Fix MessageAction.php assignment selector. Implement styles for discussion message. Started creating access to now show the discussion after it was created, but status was changed to invisible. * OI-281,282: Implement: - message template 'New discussion'; - field_idea for Discussion and openideal_discussion_node_insert that automatically fill it; - ability to show all needed for the discussion blocks. Rework: - Replace GroupMember->hasPermission checks with GroupPermissionChecker::hasPermissionInGroup; - Add ability to show edit button, for OpenidealIdeaUpdateInfo.php block. - openideal_discussion_node_access and openideal_discussion_comment_create_access: make these hooks use Group permission checker instead of Member permissions. - "personal activity" view, add ability to show discussions and comments inside discussions for users those follows Idea. - openideal_content_views_query_alter: Fix the join Instead of adding three time flagging relation ship in views change "main" join conditions. Fix: - GroupPageRedirect.php return logic. * OI-281,282: Implement: - message template 'New discussion'; - field_idea for Discussion and openideal_discussion_node_insert that automatically fill it; - ability to show all needed for the discussion blocks. Rework: - Replace GroupMember->hasPermission checks with GroupPermissionChecker::hasPermissionInGroup; - Add ability to show edit button, for OpenidealIdeaUpdateInfo.php block. - openideal_discussion_node_access and openideal_discussion_comment_create_access: make these hooks use Group permission checker instead of Member permissions. - "personal activity" view, add ability to show discussions and comments inside discussions for users those follows Idea. - openideal_content_views_query_alter: Fix the join Instead of adding three time flagging relation ship in views change "main" join conditions. Fix: - GroupPageRedirect.php return logic. * OI-281: Move configurations files from global config/install into appropriate modules for openideal_idea, openideal_discussion, openideal_challenge. Install update helper module, and implement update hooks, and create config/update/* configurations for experts reviews changes. * OI-281: Fixed broken views configurations. * OI-281: Export rules configurations. Move installation of update_helper module into hook idea profile update hook. * OI-281: Reverted rabbit hole changes. Made bootstrap4modal optional module. Move installing of update_helper into idea_update hook. * OI-281: Set a exact version for rabbit_hole module. * OI-281: Add theaddCacheableDependency() to openideal_discussion_comment_create_access return AccessResult. * OI-281: Fixed logic in openideal_theme_preprocess_message__user_mention() * OI-281: Removed unneeded access logic from OpenidealIdeaUpdateInfo.php. Fixes the appropriate permissions for group roles. Removed field visibility and uses instead default published logic. * OI-281: Added group role permissions. Small fixes. * OI-282: Sets explicit version using commit hash for ajax_comments, ckeditor_mentions. Remove useless patch for rabbit_hole module, and set 1.0-beta9 version for it. * Removed packages with hashes from composer.json * Sorts packages alphabetically * Adds ckeitor_mentions and ajax_comments here. * OI-282: Update the rabbit_hole configurations. * OI-282: Remove unused rabbit_hole configuration. * OI-238: Sets: * explicit version for: ultimate_cron, rules, eu_cookie_compliance; Implements: * ultimate_cron.* configuration update hooks; * eu_cookie_compliance.settings.yml update; Fixes: * Private activity Views conditions, relations, view_query_alter extra join and creates for them update configuration; * Permission for openideal_discussion_comment_create_accesss hook; * Conditions for rules.reaction.create_a_message_after_adding_discussion.yml; * rules.reaction.create_a_message_after_replying_on_comment.yml conditions, and create update hook for it; * OI-281: CS. * OI-281: Fixes: * message.template.comment_created.yml email text, and creates for it update configuration. * adds ability to change status widget title also for node.discussion.edit form. Changes: * body field now is required. * Go back logic, implements ability to add this block also to discussion node. Implements: * full view mode display for discussion and attaches to it: Go back block. * ability to send emails for discussion_create and comments_created (in discussion) message templates. * OI-281: Fixes plural labels for Go back block. * OI-238: Removes update for message template. * OI-281: Adds todo. * OI-238: Implements: * CSS styles for discussion teaser, and full view modes. Reworks: * OpenidealBEMLayout.php: adds ability to set classes inside build() method, and removed unneeded classes from layout templates. * OpenidealFooterMobileFooterBlock.ph: adds ability to show comments and not render unneeded content for discussion. Fixes: * Bug in layout builder, which doesn't give ability to move sections by drop-n-drag. * OI-281: Exports: * configuration for blocks: mobile_footer, rrssb_footer; and creates for update for them; Implements: * discussion full and teaser view modes layout_builder templates. * Layout builder styles: card; Fixes: * CS. * OI-283: Change variable name. * Implements: * OpenidealDiscussionExpertsVoting.php block, that provides ability to show Idea fivestar widget in discussion. * FiveStarWidget plugin block that overrides default plugin block and adds ability to set needed permission for the five stars widgets including group member. * Permission for Idea group: 'vote on five stars'; * Field five-stars widget. * Updates configurations hook for field, blocks, view modes. * Styles for five-star related FE view. * Reworks OpenidealStatisticsIdeaStatisticsBlock.php: adds ability to show five-star widget when user check checkbox. * OI-281, 292, 280, 279: Implements: * Adds __global_actions to update helper. * Changes go back styles. * Adds tags icons for idea and discussion and attached them to Idea and Discussion full view modes. * OI-273: Fix Idea installation. * Implements: * Forms: Add five stars; Edit Five Stars; * Menu task; * openideal_theme_preprocess_votingapi_widgets_summary that add label variable to votingapi_widget_result template. Reworks: * OpenidealDiscussionExpertsVoting.php block, make possibility show as many five stars widgets as they are attached to the Idea page. * OI-238: Changes the logic of label showing in fiver_stars widgets. Implements five stars vote results into the overall score formula. Reworks OpenidealHelper::computeOverallScore() signature, and service at all. Reworks OpenidealStatisticsIdeaStatisticsBlock.php block, adds ability to show all five stars widgets attached to the idea. Reworks votingapi-widgets-summary--oi-fivestar--node--idea.html.twig template, removes from the template label variable and related hook preprocess. Implements styles for, voting_api_field, discussion_experts_block. * OI-273: Rename shutdown function, change description. * OI-291: CS * OI-238: Refactors to not reuse code twice. Change permission name. Add ability to show fivestar weight in ScoreConfigForm. * OI-281: Fix fivestars label cache, and saving five stars logic. * OI-278: Fixed OpenidealStatisticsIdeaStatisticsBlock.php, creates a OpenidealStatisticsBaseStatisticsBlock.php and refactor all statistics block ecosystem to use it. * OI-278 Refactored styles for all content and user pictures. * Add update instruction to README file. * Add domain registration module. * Change composer update command. * Remove update section from README. * OI-278: Move user related configuration into openideal_user module; Install image_widget_crop module, create crop types: profile, image. Create openideal_media module: and moves all media related file there. * OI-278: Create update for openideal_(user|idea) * OI-278: Move image styles to optional folder. Create updates for openideal_challenge, and article default. * Add openideal_media to global action. * OI-278: Add block local tasks update, fix location of openideal_idea update. * OI-278: Change method descriptions. * OI-278: Move layout_builder templates from theme to openideal_content module. * OI-278: Move layouts into module. * OI-278: Add installation of module to configuration page. * OI-298: Fix notifications bug. * OI-278: Change configurations directories, rework isNotViewMode. * OI-278: Move existing image styles configurations into profile install directory. * OI-278: Fix notice from non existing relationship. * OI-278: Rework isViewMode method. * OI-278: Fix bug with not found bootstrap_bario/file library. * OI-278: Add paddings to "Five stars widgets" in Add Five Stars form. * Add css file, change five-stars -> fivestar. * OI-126: Redirect to Idea page even if it's an administrator. Co-authored-by: Zohar Stolar <z.stolar@gmail.com> Co-authored-by: Ivan Doroshenko <i.doroshenko@dev-branch.com> Co-authored-by: Ivan Doroshenko <57439293+db-Matroskeen@users.noreply.github.com>
- Loading branch information