Skip to content

[#73925] "Move to backlog bucket" and "move to backlog inbox" menu option#23326

Merged
dombesz merged 8 commits into
devfrom
feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module
Jun 2, 2026
Merged

[#73925] "Move to backlog bucket" and "move to backlog inbox" menu option#23326
dombesz merged 8 commits into
devfrom
feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module

Conversation

@dombesz
Copy link
Copy Markdown
Contributor

@dombesz dombesz commented May 22, 2026

Ticket

https://community.openproject.org/wp/73925

What are you trying to accomplish?

Screenshots

What approach did you choose and why?

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Backlogs work package card “Move” menu by adding explicit actions to move a work package to the backlog inbox and to a backlog bucket (via a new async dialog), including routing, UI components, and test coverage.

Changes:

  • Added “Move to inbox” and “Move to backlog bucket” entries to the work package action menu, gated by permissions and availability.
  • Introduced a new move_to_backlog_bucket_dialog endpoint and Backlogs::MoveToBacklogBucketDialogComponent to select a target bucket.
  • Expanded controller/component/routing/feature specs to cover the new menu items and dialog behavior.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
modules/backlogs/spec/support/pages/backlog.rb Adds page-object helpers for bucket assertions and unifies menu interaction helpers for work packages.
modules/backlogs/spec/routing/backlogs/work_packages_routing_spec.rb Adds routing coverage for the new backlog bucket dialog endpoint.
modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb New JS feature spec covering moving to inbox/bucket/sprint across different sources.
modules/backlogs/spec/features/inbox_column_spec.rb Updates to use the generalized work package move-menu helpers.
modules/backlogs/spec/features/backlogs/edit_spec.rb Removes redundant sprint-to-sprint move coverage now handled in the new spec.
modules/backlogs/spec/controllers/backlogs/work_packages_controller_spec.rb Adds controller coverage for other_buckets_exist and the new dialog action (incl. permissions and all=1).
modules/backlogs/spec/components/backlogs/work_package_card_menu_component_spec.rb Extends menu component spec for new items/visibility rules and all=1 propagation.
modules/backlogs/spec/components/backlogs/move_to_backlog_bucket_dialog_component_spec.rb New component spec for dialog rendering and option filtering.
modules/backlogs/lib/open_project/backlogs/engine.rb Extends manage_sprint_items permission mapping to include the new dialog action.
modules/backlogs/config/routes.rb Adds move_to_backlog_bucket_dialog route.
modules/backlogs/config/locales/en.yml Adds i18n strings for the new dialog title and menu entries.
modules/backlogs/app/controllers/backlogs/work_packages_controller.rb Computes other_buckets_exist and serves the new backlog bucket dialog via turbo-stream.
modules/backlogs/app/components/backlogs/work_package_card_menu_component.rb Adds menu visibility predicates and a required other_buckets_exist initializer argument.
modules/backlogs/app/components/backlogs/work_package_card_menu_component.html.erb Renders the new “Move to inbox” (PUT) and “Move to backlog bucket” (async dialog) items.
modules/backlogs/app/components/backlogs/sprint_dialog_component.html.erb Removes redundant data: { turbo: true } from the submit button.
modules/backlogs/app/components/backlogs/move_to_sprint_dialog_component.html.erb Removes redundant data: { turbo: true } from the submit button.
modules/backlogs/app/components/backlogs/move_to_backlog_bucket_dialog_component.rb New dialog component that lists eligible buckets and excludes the current bucket.
modules/backlogs/app/components/backlogs/move_to_backlog_bucket_dialog_component.html.erb New dialog UI with a bucket select and PUT submission to the existing move endpoint.
modules/backlogs/app/components/backlogs/bucket_dialog_component.html.erb Removes redundant data: { turbo: true } from the submit button.

Comment thread modules/backlogs/spec/controllers/backlogs/work_packages_controller_spec.rb Outdated
Comment thread modules/backlogs/spec/support/pages/backlog.rb Outdated
@dombesz dombesz force-pushed the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch 2 times, most recently from d9bf971 to 8312d44 Compare May 26, 2026 13:23
@dombesz dombesz marked this pull request as ready for review May 27, 2026 10:30
@dombesz dombesz force-pushed the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch 3 times, most recently from 9dc77d8 to 608b967 Compare May 27, 2026 11:21
@dombesz dombesz force-pushed the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch 2 times, most recently from 7a74b74 to 520a4ac Compare May 29, 2026 15:51
@myabc myabc requested a review from Copilot May 30, 2026 14:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Comment thread modules/backlogs/spec/support/pages/backlog.rb Outdated
Comment thread modules/backlogs/app/components/backlogs/work_package_card_menu_component.rb Outdated
Comment thread modules/backlogs/spec/support/pages/backlog.rb Outdated
Comment thread modules/backlogs/app/controllers/backlogs/work_packages_controller.rb Outdated
Comment thread modules/backlogs/config/routes.rb Outdated
Copy link
Copy Markdown
Contributor

@myabc myabc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well.

N.B. it was quite difficult to review modules/backlogs/spec/support/pages/backlog.rb because of the various renames and cleanup. I am assuming that there were no significant changes.

Otherwise, my only feedback is nitpicks and minor suggestions, e.g.:

  • unnecessary wait_for_network_idle where we are already calling wait_for_turbo_stream
  • preferring Capybara selectors that don't require assembling long CSS queries
  • and Capybara Accessible Selector's modal selector

Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
Comment thread modules/backlogs/spec/features/work_packages/move_to_backlog_spec.rb Outdated
@dombesz dombesz force-pushed the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch 3 times, most recently from 41903a6 to b848e2b Compare June 2, 2026 15:07
@dombesz dombesz force-pushed the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch from b848e2b to b58f891 Compare June 2, 2026 16:30
@dombesz dombesz merged commit 1512e81 into dev Jun 2, 2026
17 checks passed
@dombesz dombesz deleted the feature/73925-move-to-backlog-bucket-and-move-to-backlog-inbox-menu-option-for-work-packages-within-the-backlog-module branch June 2, 2026 17:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants