276 Commits

Author SHA1 Message Date
Mir Bhatia 91d99dee01 Move page to /components 2026-06-12 14:01:42 +02:00
Mir Bhatia aed94f1522 Update quick filter lookbook docs 2026-06-12 12:43:22 +02:00
Mir Bhatia 81304f093d Update docs 2026-06-09 08:51:19 +02:00
Mir Bhatia addc37c0ff Rename QuickFilter::SegmentedControlComponent 2026-06-09 08:51:17 +02:00
Henriette Darge 396de9362f [74625] Make project hierarchy collapsable in the global project selector (#23137)
* Use new async FilterableTreeView for global project selector

* Remove replaced angular component

* Fine tune sorting and expansion state of the new project selector

* Update primer to 0.86.1

* Add workspace information and filter results hierarchy information to project selector

* Include review feedback: Harmonize I18n keys, fix visible scope, use guarded local storage

* Add a turboFrame in the project select overlay to only load the projects when it is actually opened

* Restore BIM tab styles which were broken for a while already but the new project selector changes made it so bad that the test broke because the plus icon was overlapping the checkbox

* Clarify spec expectation
2026-06-08 08:14:47 +02:00
Henriette Darge 13fbeb1612 Merge pull request #23458 from opf/code-maintenance/75462-harmonize-colours-for-selection-state-between-backlogs-workpackages-and-notifications
[75462] Harmonize colours for selection state between Backlogs, WorkPackages & Notifications
2026-06-08 07:48:56 +02:00
Henriette Darge 287b8c6e4a Apply differentiation between selected and pressed to WP table view 2026-06-03 11:48:05 +02:00
Alexander Brandon Coles 8572a3c7be [OP-19415] Primer patterns in FilterFormComponent
Uses `ConditionalWrapper` to eliminate template duplication in the
`wrap_with_controller` branch, and `merge_data` from
`Primer::AttributesHelper` for Stimulus data attributes.

https://community.openproject.org/wp/OP-19415
2026-06-02 18:51:05 +02:00
Alexander Brandon Coles e7a01b741f [OP-19415] Convert FilterForm to ViewComponent
Replaces `Filters::FilterForm` (an `ApplicationForm` subclass) with
`Filters::FilterFormComponent` (an `ApplicationComponent`). The old form
overrode `:nodoc:` Primer hooks (`before_render`, `perform_render`) and
read semi-public ivars (`@builder`, `@view_context`). The new component
receives the builder as an explicit keyword arg and uses a standard ERB
template, reducing Primer internal coupling from five semi-public APIs
to one (`FormList`).

https://community.openproject.org/wp/OP-19415
2026-06-02 18:50:35 +02:00
Klaus Zanders 32e2002f8e Disable Async Dialog trigger while the dialog is loading 2026-06-02 15:23:22 +02:00
Klaus Zanders 78abead8b4 Fix interaction between Filters::FilterForm and the WorkPackage Query 2026-05-29 13:40:58 +02:00
Klaus Zanders 89f3ab316b Fix lookbook article that was broken by erb_lint 2026-05-29 09:42:34 +02:00
Klaus Zanders 2a7e93d978 Add compatability for Work Package Queries 2026-05-29 09:28:03 +02:00
Klaus Zanders d726484b7b Add Lookbook for Filter Forms 2026-05-29 09:28:03 +02:00
Alexander Brandon Coles 1c386ffa74 Refine Border Box List docs
Address follow-up review comments by using the component name, clarifying interactive ARIA behavior, and grouping usage guidance.
2026-05-21 15:11:10 +02:00
Alexander Brandon Coles 87b9373270 Remove link to low-level CollapsibleHeader docs 2026-05-21 15:04:37 +02:00
Alexander Brandon Coles ff22ca77b9 Note Blankslate in empty state docs, show 3 WPs
Mentions that `with_empty_state` renders a `Primer::Beta::Blankslate`
and accepts `title:`, `description:`, and `icon:` keywords. Bumps the
work-package preview from 2 to 3 items for visual consistency with the
other preview scenarios.
2026-05-21 12:28:35 +02:00
Alexander Brandon Coles 986dc16e77 Simplify code structure example
Drops the `title_arguments:` forward-reference to an `id` defined later
in the block. The `aria-describedby` wiring is an advanced pattern that
cluttered an introductory example.
2026-05-21 12:28:35 +02:00
Alexander Brandon Coles 5642c29986 [#75029] Document header parameters and slots
Surfaces the keywords accepted by `with_header` and its sub-slots
(`with_description`, `with_action_button`, `with_menu`) in dedicated
tables so readers do not need to inspect the component source.

https://community.openproject.org/wp/75029
2026-05-21 12:28:34 +02:00
Alexander Brandon Coles d3547a1ff0 [#75029] Document Border Box List in Lookbook
Updates Border Box references to point to higher-level Border Box List
component. Also removes old Border Box examples.

https://community.openproject.org/wp/75029
2026-05-21 12:28:34 +02:00
Henriette Darge 7dc866dfca Avoid that the status scheme is always set and status specific highlighting is ignored.
Include some further review feedback
2026-05-18 13:41:09 +02:00
Henriette Darge 91de3310bd Extend the WorkPackageCardComponent with new optionss 2026-05-13 08:51:35 +02:00
Henriette Darge 1ec3629508 Document split_view and split_create rails rendering in the lookbook 2026-05-12 08:14:35 +02:00
Mir Bhatia 29ee672061 Add docs 2026-05-06 10:53:57 +02:00
Henriette Darge 0868900a7b Add link to Primer component docs 2026-04-30 13:21:38 +02:00
Mir Bhatia 156bcb8320 Add SelectPanel components docs 2026-04-30 08:32:50 +02:00
David F 6e2efe8eb1 Merge branch 'dev' into feature/72383-workflows-ux-improvement-apply-workflow-setting-from-role-to-role 2026-04-09 09:42:46 +02:00
Henriette Darge d703f98dc0 Structure and extend our documentation on forms 2026-04-07 13:49:10 +02:00
David F 004876b177 Merge workflow copy modes into one unified form. wp/72383 2026-04-02 14:56:01 +02:00
David F f24e41fd83 Turn full page forms into dialogs. wp/72383 2026-03-31 08:21:40 +02:00
Tobias Dillmann a21ba36a83 [#69596] Use better identifier for hover card templates 2026-03-26 10:27:21 +01:00
Tobias Dillmann 7222729e43 [#69596] Update lookbook documentation 2026-03-26 10:27:21 +01:00
Henriette Darge 141ae1a8ea Merge pull request #21972 from opf/feature/71380-inplace-edit-for-project-attributes-on-project-overview-page
[71380] Inplace edit for project attributes on project overview page
2026-03-23 11:50:31 +01:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Henriette Darge d9339747e9 Revert "Use CustomValue.formatted_value instead of formatting the values manually"
This reverts commit 2d92b5ddcf.
2026-03-20 09:05:30 +01:00
Henriette Darge 2d92b5ddcf Use CustomValue.formatted_value instead of formatting the values manually 2026-03-20 08:42:27 +01:00
Henriette Darge f2410d0b43 Add comment fields to the displayFields in case a user w/o permissions opens the dialog to see the comment in readonly mode 2026-03-18 10:08:11 +01:00
Henriette Darge a445cc196c * Take care that newly created CF are also correctly registered
* Introduce spec helper for inplace edit fields
* Preserve system_arguments for calculated fields when they are updated
2026-03-17 15:13:21 +01:00
Henriette Darge 1f8853a024 Support calculatedFields error messages and update them once a dependent field was updated 2026-03-12 15:02:03 +01:00
Henriette Darge 420b85c6ea Avoid that calculated fields are editable at all && update docs 2026-03-12 12:24:23 +01:00
Henriette Darge 45d9c5f12c Support custom comments for custom fields 2026-03-11 09:14:51 +01:00
Henriette Darge 71592a79fc Remove eager loading option from the inplace edit fields. Now all fields are rendered the same way, making it easier to understand und use the code. 2026-01-29 14:37:14 +01:00
Henriette Darge b2955ffad7 Add Lookbook docs for inplaceEditFields 2026-01-29 14:37:09 +01:00
Oliver Günther 43f961cce3 Add FullPagePromptComponent 2026-01-28 13:51:52 +01:00
Behrokh Satarnejad 8d9f0644d1 Add the link to the preview of fieldset group 2026-01-26 12:17:12 +01:00
Behrokh Satarnejad 88fa974dd8 Add doc for the fieldset group form input 2026-01-23 17:40:31 +01:00
Henriette Darge b6ce2a9b1b Remove old icon reference 2026-01-22 10:56:28 +01:00
Alexander Brandon Coles 5ddaedb78c [#69963] Add Lookbook page for CheckAllComponent
https://community.openproject.org/wp/69963
2026-01-14 14:17:31 -03:00
Behrokh Satarnejad 612c01ef64 [69417] Show breadcrumb with full project hierachy in Project Overview showing portfolios and programs (#21614)
* Show ancestors of the project in project overview page

* add a feature spec

* Update docs

* remove feature flag for the test

* Update modules/overviews/app/components/overviews/page_header_component.rb

Co-authored-by: Henriette Darge <h.darge@openproject.com>

* update test

---------

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2026-01-13 12:50:32 +01:00
Alexander Brandon Coles fd04f0dc62 Merge pull request #21523 from opf/bug/70190-border-box-table-missing-roles-aria-attributes
[#70190] Add missing accessibility semantics for Border Box Table
2026-01-08 14:19:55 -03:00