Extend lookbook preview for WpInfoLine

This commit is contained in:
Henriette Darge
2026-04-10 10:51:52 +02:00
committed by Oliver Günther
parent 774e64ca8b
commit fb2d0f336c
@@ -32,8 +32,16 @@ module OpenProject::WorkPackages
# @logical_path OpenProject/WorkPackages
class InfoLineComponentPreview < ViewComponent::Preview
# See the [component documentation](/lookbook/pages/components/work_package_info_line) for more details.
def playground
render(WorkPackages::InfoLineComponent.new(work_package: WorkPackage.visible.first))
# @param show_project [Boolean]
# @param show_subject [Boolean]
# @param show_status [Boolean]
# @param font_size [Symbol] select [small, normal]
def playground(show_project: false, show_subject: false, show_status: true, font_size: :small)
render(WorkPackages::InfoLineComponent.new(work_package: WorkPackage.visible.first,
show_project:,
show_subject:,
show_status:,
font_size:))
end
end
end