126 Commits

Author SHA1 Message Date
Oliver Günther 37081e8ded Remove useless turbo: true 2026-05-26 11:26:08 +02:00
Henriette Darge 72a274dbd5 Restore the old customOptions table but within a separate "items" tab 2026-02-19 15:45:20 +01:00
Henriette Darge dd581b800b Add mising form elements to exisiting cf::detailsForm instead of creating two different ways of rendering cf forms 2026-02-18 13:35:42 +01:00
ulferts 68d851870d use appropriate font weight on the type 2026-01-30 15:49:32 +01:00
ulferts 17d8ee3c54 show type on edit form of custom fields 2026-01-28 16:19:54 +01:00
ulferts 7fba5cadbf display cf type in page title 2026-01-27 17:58:10 +01:00
Alexander Brandon Coles 8c6676b92e Merge branch 'dev' into merge-release/17.0-20260112162124 2026-01-12 13:24:48 -03:00
Alexander Brandon Coles 45a4cd2d2b Prune redundant args from #with_primary_action calls
- `tag:` is always 'a' and cannot not be overriden.
- `scheme:` defaults to `primary` for primary action.
2026-01-11 16:07:43 -03:00
Alexander Brandon Coles 6455afca7c Merge branch 'dev' into merge-release/17.0-20260108132255 2026-01-08 10:26:08 -03:00
ulferts 59f27bea3d change label on help text tab in cf administration 2026-01-07 14:49:20 +01:00
OpenProject Actions CI c7d88c5c2d Merge branch 'release/17.0' into dev 2025-12-18 14:13:56 +00:00
Eric Schubert 595f4c7583 Merge branch 'dev' into merge-release/17.0-20251218034959 2025-12-18 11:19:44 +01:00
Jens Ulferts b83de3c073 Merge pull request #21346 from opf/feature/69399-required-project-attributes-which-are-not-activated-for-all-project
Feature/69399 required project attributes which are not activated for all project
2025-12-18 10:16:09 +01:00
ulferts a24f6bc414 consolidate custom field form and component 2025-12-17 17:12:45 +01:00
Marcello Rocha 73754944f8 Optimize number of queries on Hierarchy Custom field views. (#21467)
* Reduce the number of queries per compoment

* Adds job to update the counts
2025-12-17 16:34:28 +01:00
Eric Schubert 8448581224 Merge pull request #21477 from opf/bug/69906-reduce-sql-queries-from-tree-view
[#69906] remove descendants check from tree view callbacks
2025-12-17 16:32:03 +01:00
OpenProject Actions CI b15de22185 Merge branch 'release/17.0' into dev 2025-12-17 14:43:07 +00:00
Eric Schubert a291914e85 [#69906] remove descendants check from tree view callbacks
- https://community.openproject.org/work_packages/69906
- switch expanded, disabled and current from callback to simple
  arguments
  - this way data must be preloaded and can be optimized in a way
  - no more traps of n+1 when having unnecessary sql queries in
    callbacks
- removed check for ancestors completely, as tree view can expand the
  path of an expanded node by itself
2025-12-17 14:59:39 +01:00
Klaus Zanders c52ccf59dd Merge branch 'dev' into merge-release/17.0-20251217034954 2025-12-17 12:43:33 +01:00
ulferts 782027843d remove required from calculated and bool 2025-12-16 18:18:22 +01:00
Eric Schubert 7a5da94fe8 [#69906] fixed turbo target of item link
- https://community.openproject.org/work_packages/69906
- target items frame to avoid full page load on clicking a single item
2025-12-16 15:52:05 +01:00
Eric Schubert 8a6dcb4148 [#69906] deferred loading of item actions
- https://community.openproject.org/work_packages/69906
- load item actions only when clicking on three dots menu
- drastically reduce response size when initially load all items of a
  single level
2025-12-12 16:24:17 +01:00
Eric Schubert 0cc0cb8f2d [#68225] use item formatter to display items
- https://community.openproject.org/work_packages/68225
- use item formatter for tree views, item view components and standard to_s
- add deprecation warning for stringifying methods without new
  formatting
2025-12-02 17:13:05 +01:00
Eric Schubert ac436b1cfe [#69129] harmonize suffix for hierarchy items
- https://community.openproject.org/work_packages/69129
- shorts and weights both are now serialized with parenthesis
2025-11-26 14:19:00 +01:00
Oliver Günther 47477fe687 Add tab for work package custom fields 2025-11-25 22:06:39 +01:00
Oliver Günther 3237096fe5 Add tab to project custom fields settings 2025-11-25 22:06:39 +01:00
Oliver Günther a8d2efb608 Use filter_map if custom value is empty 2025-11-24 09:26:46 +01:00
Klaus Zanders 5bf222ac08 Display changes in the modal 2025-11-21 15:45:07 +01:00
Eric Schubert 7cabf568c6 [#68789] use correct hrefs for project custom field hierarchies
- https://community.openproject.org/work_packages/68789
- add correct url helpers for context of project custom fields
2025-11-04 15:56:07 +01:00
Eric Schubert 38d5222c5b [#68700] replace score with weight
- add migration for db column name
- update AR relations in code
- update display texts and locale keys
- update test, method, class, variable names
- fix formatting mistake in item base controller
2025-11-03 13:58:05 +01:00
Yauheni Suhakou 0de0713a53 Big rename
Renames `scored_list` to `weighted_item_list`
2025-10-30 15:36:55 +01:00
Eric Schubert c0425ee119 [#67622] handled code review improvements
- rename render_tree to populate_tree_view to improve understanding of
  the method's purpose
- refined the methods arguments
2025-10-29 17:19:18 +01:00
Eric Schubert 3db59f0a48 [#67622] readded current state for overview tree 2025-10-29 15:20:05 +01:00
Eric Schubert 7b1e6b62e7 [#67622] use render_tree helper for change parent and overview 2025-10-29 14:31:55 +01:00
Eric Schubert eb41b7caa3 [#68044] remove feature flag
- https://community.openproject.org/work_packages/68044
- removed feature flag for change parent feature
2025-10-10 16:14:35 +02:00
Eric Schubert 5e27cbbe38 Merge pull request #20592 from opf/code-maintenance/68045-use-single-select-variant-for-the-tree-view
[#68045] switch to single select variant for change parent
2025-10-10 11:48:36 +02:00
Eric Schubert 4e1192a609 [#68045] switch to single select variant for change parent
- https://community.openproject.org/work_packages/68045
- use new select_variant :single
- disable current item and current parent for selection
- remove custom error messages
2025-10-10 09:58:14 +02:00
Klaus Zanders fb2310cb25 Merge branch 'dev' into merge-release/16.5-20251009034130 2025-10-09 09:32:03 +02:00
Jens Ulferts 701e75f536 Merge pull request #20515 from opf/fix-enterprise-banner-for-calculated-values-form
fix enterprise banner for calculated_values form
2025-10-08 14:48:07 +02:00
dombesz 57c049953a Merge branch 'dev' into merge-release/16.5-20251007034048 2025-10-07 11:55:28 +02:00
Eric Schubert 4c15fba1da [#67722] hide segmented control and checkbox
- https://community.openproject.org/work_packages/67722
- set segmented control to hidden: true
- set include checkbox to hidden: true
2025-10-06 13:53:59 +02:00
Ivan Kuchin 272aed820c fix enterprise banner for calculated_values form 2025-10-02 17:34:33 +02:00
Jan Sandbrink a284ba602c Merge pull request #20404 from opf/action-menu-dsl
Introduce DSL to build item groups
2025-09-29 10:33:47 +02:00
Jan Sandbrink 22b9d3f9c7 Introduce DSL to build item groups
Existing code around menu handling is sometimes hard
to read, because the divider is rendered based on conditions surrounding
the elements before or after it.

The new helper ensures that divided groups are reasonably
visible in code, while taking away the need to special-case conditionals.
2025-09-26 12:25:40 +02:00
Ivan Kuchin 459e288931 use image instead of video for calculated-values enterprise banner 2025-09-24 20:03:32 +02:00
Ivan Kuchin 7973c77dd7 show enterprise banner for calculated value 2025-09-24 20:03:31 +02:00
Ivan Kuchin bfb4f1436f display calculated values form errors using flash
It should not be possible to state where field_format error is there, as
field_format is defined by parameter that switches displaying calculated
value form
2025-09-24 19:25:04 +02:00
Eric Schubert 256a078486 [#67462] code cleanup after code review
- removed locale keys that would never be caused by user error
- display root element in change parent dialog
2025-09-22 14:48:04 +02:00
Eric Schubert aa63f3c903 Merge branch 'dev' into implementation/67462-add-filterable-tree-view-component-to-dialog 2025-09-22 13:28:08 +02:00
Eric Schubert 2c07cf981c [#67462] Add filterable tree view for parent selection
- https://community.openproject.org/work_packages/67462
- change parent by selecting from existing hierarchy
  - show error if same item or same parent is selected, of if multiple
    items are selected
2025-09-17 17:07:14 +02:00