20 Commits

Author SHA1 Message Date
Tobias Dillmann adb9f6b071 Authorize project custom field access in inplace edit dialog 2026-06-10 14:09:25 +02:00
Oliver Günther 5afbb96f07 Avoid loading all custom fields to find out which is a hierarchy 2026-03-23 13:55:27 +01:00
Henriette Darge 4f9a486c6d Refactor extract_tree_view_value to avoid exception-based control flow 2026-03-23 11:25:40 +01:00
Henriette Darge c7afb4968f Get inplaceEditField for customField dynamically by the format instead of registring them all directly 2026-03-20 08:40:33 +01:00
Henriette Darge adb88c979b Some more test fixing.. There is light and the end of the tunnel :fingers_crossed: 2026-03-19 15:10:27 +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 eb60f205e6 Add HierarchyFields for inplaceEditComponents 2026-03-12 11:16:04 +01:00
Henriette Darge 45d9c5f12c Support custom comments for custom fields 2026-03-11 09:14:51 +01:00
Henriette Darge 3541a96060 Merge remote-tracking branch 'origin/dev' into feature/71380-inplace-edit-for-project-attributes-on-project-overview-page 2026-03-10 08:53:12 +01:00
Alexander Brandon Coles c64f2a9278 Add .default class method to both registries
Adds `attr_reader :default` to `FieldRegistry` and `UpdateRegistry`
inside their `class << self` blocks, exposing the pre-built `@default`
instance via `.default`. Updates `InplaceEditFieldComponent` and
`InplaceEditFieldsController` to reference `.default` instead of
the class itself, so the parameter is consistently an instance.
2026-03-05 07:13:51 -03:00
Alexander Brandon Coles 3c6dee61d2 Inject update_registry instance into component and controller
Passes an `UpdateRegistry` instance as a parameter to
`InplaceEditFieldComponent` and `InplaceEditFieldsController` instead of
referencing the global class directly. Updates both specs to inject a
dedicated `UpdateRegistry.new` instance rather than stubbing class-level
methods.
2026-03-05 07:13:50 -03:00
Henriette Darge a3ec1fc15c Support small spaces for inplaceEditFields by opening inplaceEditFields inside a dialog and truncating the display field 2026-02-17 14:51:48 +01:00
Henriette Darge dbe4e5ee52 Basic select list for inplace edit fields 2026-02-16 15:16:47 +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 93751c5cc4 Replace unsafe constantize call 2026-01-29 14:37:12 +01:00
Henriette Darge c40349223d Add a real switch between Display and Edit Field for RichTextArea 2026-01-29 14:37:08 +01:00
Henriette Darge f9d251904c Add RichTextAreaComponent to inplace edit fields 2026-01-29 14:37:07 +01:00
Henriette Darge 1b7e30eb49 Do a permission check in the InplaceEditField based on the contracts 2026-01-29 14:37:06 +01:00
Henriette Darge 13664c2fe8 Create a update handler registry to be able to update different models from the inplaceEditField component 2026-01-29 14:37:03 +01:00