Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0/asset inline edit #377

Closed
wants to merge 4 commits into from
Closed

5.0/asset inline edit #377

wants to merge 4 commits into from

Conversation

sunnavy
Copy link
Member

@sunnavy sunnavy commented Dec 19, 2023

No description provided.

…t yet

Custom role groups could be absent if the corresponding custom roles
were created/applied after some assets or the lazy option is enabled.
Inline edit doesn't actually work for them anyway, because of the absent
helper component.

Previously we disabled it in /SelfService/Elements/MyRequests, which is
not enough any more as now we support various components for SelfService
especially via dashboards.
Copy link
Member

@cbrandtbuffalo cbrandtbuffalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions on a few portlets:

  • Links gets squashed in the 3-column view, making the labels wrap poorly. We should make it single column with existing values on top and edit on the bottom like tickets.
  • I'm seeing a pencil for dates, but when I click there's nothing to edit because the core dates for assets (Created and LastUpdated) can't be edited. Maybe we should only show the pencil if there are CFs that can be edited? Otherwise it's confusing to be able to click the pencil but not be able to edit anything.
  • I'm not seeing a pencil for custom fields. Something in my config?

@bestpractical-mirror bestpractical-mirror deleted the 5.0/asset-inline-edit branch December 20, 2023 19:22
@sunnavy
Copy link
Member Author

sunnavy commented Dec 20, 2023

Some questions on a few portlets:

  • Links gets squashed in the 3-column view, making the labels wrap poorly. We should make it single column with existing values on top and edit on the bottom like tickets.
  • I'm not seeing a pencil for custom fields. Something in my config?

Good catches, both are fixed.

  • I'm seeing a pencil for dates, but when I click there's nothing to edit because the core dates for assets (Created and LastUpdated) can't be edited. Maybe we should only show the pencil if there are CFs that can be edited? Otherwise it's confusing to be able to click the pencil but not be able to edit anything.

There is a callback in "/Asset/Elements/EditDates" where users can do anything, so checking cfs might not be enough.
I chose to disable inline edit by default for "Dates" widget, and users can always update config to explicitly enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants