467 Commits

Author SHA1 Message Date
Alexander Brandon Coles 0794eb4497 [#73968] Add card box truncate-middle pagination
Teaches `WorkPackageCardBoxComponent` an optional
`with_show_more(truncate_middle:, text:)` slot. When set, the box
truncates `work_packages` to the first `truncate_middle` rows plus
a derived tail (20% of first page, min 1) and emits a
`Box-row scheme: :neutral` between them advertising the omitted
middle. The slot is also the toggle — leaving it unset means no
truncation, preserving sprint and bucket behaviour.

Default copy is sourced from the new
`work_package_card_box_component.show_more` locale key with
`one`/`other` plurals; consumers can override via `text:` (with a
`%{count}` placeholder). Adds a Lookbook preview for the slot.

https://community.openproject.org/wp/73968
2026-04-30 16:47:08 +02:00
Alexander Brandon Coles 393bd42741 [#73968] Extract work package card primitives
Adds the shared `WorkPackageCardBoxComponent` (with nested `Header`)
and `WorkPackageCardComponent` (with nested `Menu`), so
`SprintComponent`, `BucketComponent`, and the inbox can converge on
a single Primer `BorderBox` + card-row rendering path.

The box derives its DOM id, list id, drop-target id, and per-card URLs
from a single `container:` argument (`Sprint`, `BacklogBucket`, or
`nil` for the inbox). It exposes `header`, `empty_state`, and
`footer` slots; the header exposes `description`, `actions` (typed
`:button` slot), and `menu`.

Adds component specs for all four classes plus Lookbook previews for
the two top-level primitives. Consumers are migrated in follow-up
commits.

https://community.openproject.org/wp/73968
2026-04-30 16:46:19 +02:00
Henriette Darge 0868900a7b Add link to Primer component docs 2026-04-30 13:21:38 +02:00
David F 68f3d335fa Add optional hidden sentinel field for Primer’s checkbox groups. wp/74398 2026-04-30 11:10:28 +02:00
Mir Bhatia 156bcb8320 Add SelectPanel components docs 2026-04-30 08:32:50 +02:00
David. 070c9d41f8 Merge branch 'dev' into feature/72383-workflows-ux-improvement-apply-workflow-setting-from-role-to-role 2026-04-21 13:51:06 +02:00
Henriette Darge fb2d0f336c Extend lookbook preview for WpInfoLine 2026-04-19 21:10:42 +02:00
Jan Sandbrink b5b95dd935 Add a component for inline macros
This is intended to become a replacement for the angular-based
<opce-macro-wp-quickinfo> component.

However, the new component should be more generic, so that it can
also be used for other cases, such as rich links to wiki pages.
2026-04-15 13:23:40 +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
David F 4690be175e Improve contextual information and navigation for workflow copy. wp/72383 2026-03-27 17:18:21 +01: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
Wieland Lindenthal 60e63674e8 [#70191] Allow searching for work package types and status when selecting work package for time entries (#21522) 2026-03-25 19:31:09 +01:00
Behrokh Satarnejad 7014e13d3e Merge pull request #22475 from opf/71063-create-a-pagination-component-based-on-the-primer-specification
[71063] Update PVC with new Pagination component and Banner styles
2026-03-25 14:02:04 +01:00
Mir Bhatia e95ecee780 Merge branch 'dev' into epic/workflows-ux-quick-wins 2026-03-24 15:46:36 +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
Mir Bhatia 465d7a1418 Merge branch 'feature/72234-workflows-ux-improvement-show-workflows-by-type' into feature/72239-workflows-ux-improvement-select-relevant-statuses 2026-03-18 13:08:56 +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
David F a22e03d578 Filter types on admin workflow index. 2026-03-16 08:59:35 +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
OpenProject Actions CI 0648468fd7 Merge branch 'release/17.2' into dev 2026-03-04 21:52:20 +00:00
Alexander Brandon Coles fb29bbc310 Update CollapsibleHeader usages for API change
Pass in `collapsible_id` in order to properly set `aria-controls` on the
CollapsibleHeader's clickable area.
2026-03-04 11:58:18 +01:00
Jan Sandbrink 9e216690d2 Validate schemes for CopyToClipboardComponent
When trying to use this component, I wanted to use the input scheme
that I copied from elsewhere in the code. At first I was surprised that
the lookbook didn't yet contain a playground, where I could try this style out.

After adding it, I was surprised that it didn't look like an input at all and learned
that this scheme does not even exist... But it was already used multiple times :O
2026-03-02 16:54:58 +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 712731ca73 Render link warning 2026-01-28 13:51:53 +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
Behrokh Satarnejad e29a1f8798 Replace fieldset form component 2026-01-23 17:12:51 +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
Alexander Brandon Coles 5f22828fe5 Provide CheckAllComponent separator slot
Supports customization (or removal) of separator.
2026-01-14 14:17:31 -03:00
Alexander Brandon Coles b7577e1ddb [#69963] Add Lookbook previews for CheckAllComponent
https://community.openproject.org/wp/69963
2026-01-14 14:17:30 -03:00
Alexander Brandon Coles 5436a27358 [#70200] Introduce Fieldset component, input group
Introduces both an unstyled, low-level `FieldsetComponent` and the
`fieldset_group` input group for use with the Primer Forms DSL.

https://community.openproject.org/work_packages/70200
2026-01-14 05:43:56 -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
Henriette Darge 6d3a0666c8 Provide previews for advanced radio button and checkbox group 2026-01-09 11:13:54 +01:00
OpenProject Actions CI 7f0a200736 Merge branch 'release/17.0' into dev 2026-01-08 19:08:46 +00: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
Alexander Brandon Coles 6455afca7c Merge branch 'dev' into merge-release/17.0-20260108132255 2026-01-08 10:26:08 -03:00
Behrokh Satarnejad e2e49867c1 [65066] Global search is not usable via keyboard (#21278)
* Dont check the first item in the list of search box, show the list items for screen reader

* highlight the WP if the full id is added and change aria-live message

* feature spec for live region

* use the global live region for announcing changes

* set void for promises
2026-01-08 09:43:58 +01:00