Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

docs[Op#57989]: Improve `PaginationHelper#turbo_action` dev helper doc

Kabiru Mwenja998eb22dd3ee
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb
index 81bf2516eb3..28e9f79f3c8 100644
--- a/app/helpers/pagination_helper.rb
+++ b/app/helpers/pagination_helper.rb
@@ -215,6 +215,12 @@ module PaginationHelper
# "advance" - push a new entry onto the history stack.
# "replace" - replace the current history entry.
# See: https://turbo.hotwired.dev/reference/attributes
+ #
+ # Example: Promoting a Frame Navigation to a Page Visit
+ # By default navigation within a turbo frame does not change the rest of the browser's state,
+ # but you can promote a frame navigation a "Visit" by setting the turbo-action attribute to "advance".
+ # See: https://turbo.hotwired.dev/handbook/frames#promoting-a-frame-navigation-to-a-page-visit
+ #
def turbo_action
@options[:turbo_action] # rubocop:disable Rails/HelperInstanceVariable
end