[72005] New Administration for User Custom Fields and Custom Field Sections#23454
Conversation
fc67cba to
d9347cb
Compare
mrmir
left a comment
There was a problem hiding this comment.
This is not an exhaustive review, but it seems to work well and matches the mock ups/AC.
I don't know how many of these will change with the upcoming UI/primerisation work, but they're here nonetheless:
- Why does a new section in user attributes default to the top?
- Can there be a button in the section header to add a new attribute to it directly?
- It makes sense to me to return to the user attributes list after saving a new one
- There is no search bar to filter user attributes
There are also some inline code remarks.
Additionally, I would like it if the upcoming primerisation work can be done in a separate PR as at 4.5k+ lines this is already rather difficult to review properly in detail, imo.
|
Thank you for your first comments @mrmir
That is indeed my intention too, I really do agree with you. I will even try to make it a separate WP so that we can ship the feature first and the embellishment later. |
73c29fd to
287e9a6
Compare
klaustopher
left a comment
There was a problem hiding this comment.
Great. Thank you. About the open point... Let's see what will be said during review. But I have no hard opinion there.
|
Warning Flaky specs
|
…m. wp/72005 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
55474a1 to
211e72c
Compare
…tom-fields-and-custom-field-sections
…tom-fields-and-custom-field-sections
Ticket
https://community.openproject.org/wp/72005
What are you trying to accomplish?
Screenshots
What approach did you choose and why?
UserCustomFieldsController+UserCustomFieldSectionsControllerwith a new "User attributes" entry in the "Users & Permissions" menu;UserCustomFieldSectionmodel — new STI subclass ofCustomFieldSectionwith full Create/Update/Delete service and contract layer;UserCustomFieldSectionand bulk-assigns all existing orphanedUserCustomFieldrecords to it;UserCustomFieldalongsideProjectCustomField.visible_on_user_cardflag on custom fields and renders those flagged fields in the user hover card;attribute_order text[]column oncustom_field_sectionsas the single ordering mechanism;BuiltInAttributeRowComponentin the section admin UI — drag handle, "Built-in" badge, move actions only (no edit or delete), and companionBuiltInAttributesControllerfor move/drop of built-in fields within and across sections.attribute_orderinto Projects so that all the subclasses uses the same vector, slimming down the STI a bit.Merge checklist