-
Notifications
You must be signed in to change notification settings - Fork 25
[BD-14] Library Authoring - Edit Library Title #61
[BD-14] Library Authoring - Edit Library Title #61
Conversation
Thanks for the pull request, @UvgenGen! When this pull request is ready, tag your edX technical lead. |
Looks good you have some lint fixes to do real quick though. |
@connorhaugh linter fixed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally, this is definitely a great feature to add!
One thing I noticed in testing is that the user must click (or tab) outside of the text box to fire onBlur and apply the change (pressing enter doesn't work). When I first tried to edit a Content Library name I pressed enter and nothing happened.
I'm not sure if that's unique to this field, or if it's a UX oddity that exists throughout the rest of Open edX as well.
@brian-smith-tcril hi! Should we add handler for enter button? |
Codecov ReportBase: 48.59% // Head: 49.13% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master openedx/frontend-wg#61 +/- ##
==========================================
+ Coverage 48.59% 49.13% +0.54%
==========================================
Files 76 76
Lines 1953 1972 +19
Branches 353 358 +5
==========================================
+ Hits 949 969 +20
+ Misses 970 969 -1
Partials 34 34
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
It seems on the Account MFE the pattern is slightly different. This PR is creating what I'd describe as an "editable header" or "editable title," which is not something we have a Paragon component for. The account MFE has
and uses some paragon components (https://github.com/openedx/frontend-app-account/blob/e01b595a0c4be60f886587c62203b35b70f50f61/src/account-settings/name-change/NameChange.jsx), but it seems there is still room for improvement re: component reusability This PR hasOverall thoughtsI'm not sure if any of these UX questions really belong in the scope of this PR. It's definitely worth documenting the flows that we want to have for MFEs. It's also definitely worth creating reusable components to support those flows. I'm just not sure if that should be a blocker for adding this functionality. Ideally we can determine:
|
@brian-smith-tcril, @UvgenGen this MFE is in need of a UX and styling makeover anyway. We should stick to the minimal changes here: adding the enter key handler, for instance. Longer term, Brian and I are discussing what to do about bringing the MFE up to speed with Paragon (via #71). |
@arbrandes I've added the enter key handler |
@arbrandes is there anything specific we need to handle here then?
seems to imply that this PR can be approved. |
Yeah, we can totally merge this! |
@UvgenGen 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description:
Library title is editable by clicking on it like in Account MFE