-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #36210 - FEATURE: Automatically add 'Add Translation' post menu when content localization enabled #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_36210_20251204_3543
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
Benchmark PR discourse#36210
Type: Corrupted (contains bugs)
Original PR Title: FEATURE: Automatically add 'Add Translation' post menu when content localization enabled
Original PR Description: Many users have been tripping over not seeing this post menu item, so we'll add it automatically.
Meta: https://meta.discourse.org/t/automatically-add-the-add-translation-post-menu-button-when-content-localization-is-enabled/389557
Original PR URL: discourse#36210
PR Type
Enhancement, Tests
Description
Automatically add 'Add Translation' button to post menu when content localization enabled
Insert button after edit button or at start if edit unavailable
Handle both visible post_menu and post_menu_hidden_items settings
Update system tests to use new post action button API instead of direct selectors
Diagram Walkthrough
File Walkthrough
014-track-setting-changes.rb
Add translation button auto-insertion on localization enableconfig/initializers/014-track-setting-changes.rb
content_localization_enabledsetting changespost_menuandpost_menu_hidden_itemssettingsaddTranslationbutton after edit button position or at start ifedit doesn't exist
addTranslationalready exists in the menucontent_localization_setting_spec.rb
Test content localization setting auto-configurationspec/initializers/content_localization_setting_spec.rb
addTranslationafter edit button inpost_menuaddTranslationas first button when edit doesn't existaddTranslationentriespost_menu_hidden_itemssettingpost_translation_spec.rb
Refactor tests to use post action button APIspec/system/post_translation_spec.rb
configuration
post_menu_hidden_itemsconfiguration to test setupclick_post_action_buttonshow_moreandadd_translationactionbuttons instead of direct element selection
postinstead ofmarkdown_postinone test)