WIP - Studio: Group Access Level UI - #6095
Conversation
2240f15 to
b4d620e
Compare
|
@andy-armstrong I did find this PR for the the UX side of TNL-652 (assigning components to content groups). |
|
@andy-armstrong and @explorerleslie, yes, sorry. This PR is a WIP for the access level settings. My commit messages should give you a clue what's been accounted for thus far. The one remaining item is the final modal UI. |
91c045d to
75d7531
Compare
|
Status Update: This work should be ready for engineering to pick up and for a UI/FED-focused review. @explorerleslie, @catong, and @andy-armstrong, this branch now contains all of the static UI we went over today in our hand off/review meeting. I've also addressed the good feedback you had and decision we made as part of that meeting (in a separate follow-up commit - edx@75d7531). I'll be spinning up a sandbox so its easier for you folks to see the very very very static UI rendering in the browser as well as for the UI/Design portion of my team's review. A few notes:
A few asks:
I'll address any revisions here or in a developer's working branch depending on timing. Thanks for the support! |
There was a problem hiding this comment.
NOTE: these are redundant rules for checkboxes/radio buttons - I could move them into a Sass extend or define them both with a 2 selector rule if this offends anyone's religion :)
There was a problem hiding this comment.
If the same rules will apply, what about something like:
.input-tickable {
// Generic rules for checkboxes and radios
}
And then add specificity like:
.input-tickable {
.checkbox { }
.radio { }
}
As needed?
There was a problem hiding this comment.
Good point! I can abstract, but my preference would be to make it a Sass placeholder (something like %input-checkable {}) that we can extend (@extend %input-checkable;) in these two cases vs. adding another class to the HTML. Sound okay?
There was a problem hiding this comment.
I wonder if 'checkable' is the best term. You 'tick' both checkboxes and radios, but you only really check a checkbox. I wonder if 'tickable' would be best?
But yes, I like your approach.
308c867 to
d5463a2
Compare
There was a problem hiding this comment.
NOTE: @andy-armstrong, please remove this when its not needed for static UI rendering.
|
@talbs I've made a pass through the code and added a few thoughts. I'm not very familiar with "xblocks" so I don't know how valid my thoughts are. Let me know if you want to discuss. |
There was a problem hiding this comment.
Does file need to be in quotes?
There was a problem hiding this comment.
Sure does. Good catch on some existing code. On it!
d5463a2 to
22422d3
Compare
|
Update: I finally got a sandbox up. You can view the static unit FED/UI in all of its modal glory here - http://studio.talbs.m.sandbox.edx.org/container/i4x://edX/DemoX/vertical/vertical_0270f6de40fc |
|
@clrux and @explorerleslie, thanks for the UI and FED feedback - I've pushed those small tweaks to this PR and kicked off another sandbox build. You should be able to see the small visual changes in a bit. |
|
@andy-armstrong, I've revised the markup/styling of the modal based on our quick in-person huddles. They are contained in this commit (edx@7b36805). Also, I renamed my placeholder modal to match the "visibility" term. That's fixed up in a previous commit now (edx@6b941fd) in case you want to cherry pick them both. |
|
Thanks for the good messaging/copy feedback, @catong! I've made revisions in this commit (edx@4a74e27) based on your suggestions/notes. |
There was a problem hiding this comment.
@cahrens, here's the static build for the how I was hoping to flag any component with visibility explicitly set - a class that's added to the overall component/xblock wrapper. Shout if this is confusing or just plain wrong.
There was a problem hiding this comment.
@talbs Since "visibility" is pretty overloaded (current "visibility" states are related to publish state, locking, etc.), can we make it explicitly about content groups? Perhaps "has-content-group-visibility-set"?
There was a problem hiding this comment.
@cahrens, happy to scope this down a bit, but how does .has-group-visibility-set sound? I'd like to keep it a bit more generic group focused knowing that we'll ideally be adding in other types of groups to the modal that relates to this down the road (i.e. Content Experiment Groups),
Make sense and seem cool to you?
There was a problem hiding this comment.
i like it! has-group-visibility-set seems solid and reusable.
|
Nice work, @talbs! I have a few small comments but overall, really good stuff. Once you address my comments, I'm all 👍 |
|
@frrrances, I've addressed all of the very good feedback you gave. There's one note I made about @andy-armstrong and @explorerleslie, heads up that I corrected the extra visual space between two removed content groups in the modal. @andy-armstrong, I did have to make one small HTML/DOM change to do this. Here's the commit (edx@35be936). Let me know if all of you are fine with these revisions. I'll squash them down to one "feedback-addressing" commit for easier cherrypicking. |
600a843 to
af3659e
Compare
|
Thanks for the RTL wisdom, @frrrances. I've made all of those conversions to make sure this UI is BFFs with RTL (commit is here if you wanna check - edx@af3659e). |
* removing rem unit of measurement * removing not used visibility modal styling * simplifying form styling to rely on base form inheritance * removing extra padding from no-content UI * resolving extra padding for removed content group checkbox fields * RTLing ALLTHETHINGS
af3659e to
ac507cb
Compare
|
@andy-armstrong, I've gotten the famous @frrrances 👍 on this and rebased all of my additional feedback/fix commits into one for you to cherry-pick into your work (edx@ac507cb). Mind doing that and I'll close this PR? |
|
Closing this since all of the UX/FED has been reviewed here and the appropriate commits now live on with https://github.com/edx/edx-platform/pull/6227. |
UX support for statically standing up and styling new UI within containers/components to support group access levels.
Background
Screenshot - Combined Modal UI

Screenshot - Container/Unit View Tweaks
