Conversation
e01de87 to
41915ca
Compare
b1029b3 to
b1476e3
Compare
…ds inside a dialog and truncating the display field
2558874 to
7d88b14
Compare
…edit-for-project-attributes-on-project-overview-page
7d88b14 to
3541a96
Compare
…ent field was updated
…edit-for-project-attributes-on-project-overview-page
53bdd05 to
0f4f0d1
Compare
8ce0e3c to
ee83264
Compare
…utes-on-project-overview-page
| if value.present? | ||
| format_text(value) | ||
| if value.is_a?(TrueClass) || value.is_a?(FalseClass) | ||
| boolean_display_value(value) | ||
| elsif value.is_a?(Date) || value.is_a?(Time) | ||
| helpers.format_date(value) | ||
| elsif value.present? && value != [nil] | ||
| format_present_value(value) |
There was a problem hiding this comment.
Feel free to ignore if you already decided against it. But a CustomValue has a formatted_value method which in many cases uses the same logic as defined here. we might be able to delegate to it?
There was a problem hiding this comment.
Good catch. That makes things slightly easier 👍
The formatting is actually not behaving as we want. It deals with default values and user fields differently than what we expect. So I reverted that for now. We can tackle that separately
...components/open_project/common/inplace_edit_fields/display_fields/display_field_component.rb
Outdated
Show resolved
Hide resolved
...components/open_project/common/inplace_edit_fields/display_fields/display_field_component.rb
Show resolved
Hide resolved
79a44ad to
150560d
Compare
app/components/open_project/common/inplace_edit_fields/display_fields/link_input_component.rb
Outdated
Show resolved
Hide resolved
app/components/open_project/common/inplace_edit_fields/boolean_input_component.rb
Show resolved
Hide resolved
a97e719 to
71921d3
Compare
app/components/open_project/common/inplace_edit_field_component.rb
Outdated
Show resolved
Hide resolved
71921d3 to
9c820cc
Compare
…d of registring them all directly
9c820cc to
2d92b5d
Compare
…ues manually" This reverts commit 2d92b5d.
oliverguenther
left a comment
There was a problem hiding this comment.
I have one more remark that may or may not apply. Would be fine for me to address separately. 👍
Awesome 👍 I fixed the remark you had, waiting for the CI now |
Ticket
https://community.openproject.org/wp/71380
What are you trying to accomplish?
Todo
Technical
edit_project_attributesas well asedit_projectpermission. This is different than before but consistent with the API. There is a separate bug to change that again.Screenshots
Merge checklist