Skip to content

WIP - Studio: Group Access Level UI - #6095

Closed
talbs wants to merge 6 commits into
masterfrom
talbs/studio-component+groups-ui
Closed

WIP - Studio: Group Access Level UI#6095
talbs wants to merge 6 commits into
masterfrom
talbs/studio-component+groups-ui

Conversation

@talbs

@talbs talbs commented Dec 1, 2014

Copy link
Copy Markdown
Contributor

UX support for statically standing up and styling new UI within containers/components to support group access levels.


Background


Screenshot - Combined Modal UI
screenshot-localhost 8001 2014-12-09 19-23-58

Screenshot - Container/Unit View Tweaks
screenshot-localhost 8001 2014-12-09 19-24-36

@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch from 2240f15 to b4d620e Compare December 1, 2014 17:30
@explorerleslie

Copy link
Copy Markdown

@andy-armstrong I did find this PR for the the UX side of TNL-652 (assigning components to content groups).

@talbs

talbs commented Dec 3, 2014

Copy link
Copy Markdown
Contributor Author

@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.

@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch 5 times, most recently from 91c045d to 75d7531 Compare December 10, 2014 00:13
@talbs

talbs commented Dec 10, 2014

Copy link
Copy Markdown
Contributor Author

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:

  • This UI is very static and the modal I've roughed out contains all of the elements needed for all of the states combined (it is not a 1:1 representation of the UI planned).
  • @andy-armstrong, I've made <!-- NOTE: ... --> comments in places where I needed to explain the current state or a specific piece of logic I need your or an developer's help with. Search is your friend :)
  • The modal set here relies on the existing Studio modal set up and since its static does not leverage the JS-based window centering (i.e. it may not be truly centered in your browser).

A few asks:

  • @andy-armstrong, if someone else on your team picks this up, can you provide them with any light context we've already gone over and your insight into what that means from an engineering perspective?
  • @clrux, can you review my HTML, Sass/CSS, and FED work here?
  • @frrrances, can you do the same as well as review my UI/Visual design work?
  • @catong, if you have copy recommendations, feel free to note them in this code, in a separate commit, or on the wireframes (http://invis.io/K21UDOV7H) as Invision App notes.

I'll address any revisions here or in a developer's working branch depending on timing. Thanks for the support!

Comment thread cms/static/sass/elements/_forms.scss Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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 :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch 2 times, most recently from 308c867 to d5463a2 Compare December 10, 2014 00:32
Comment thread cms/templates/base.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NOTE: @andy-armstrong, please remove this when its not needed for static UI rendering.

@downzer0

Copy link
Copy Markdown
Contributor

@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.

Comment thread cms/static/sass/elements/_forms.scss Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does file need to be in quotes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure does. Good catch on some existing code. On it!

@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch from d5463a2 to 22422d3 Compare December 10, 2014 17:09
@talbs

talbs commented Dec 10, 2014

Copy link
Copy Markdown
Contributor Author

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

@talbs

talbs commented Dec 10, 2014

Copy link
Copy Markdown
Contributor Author

@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: visible

@talbs

talbs commented Dec 11, 2014

Copy link
Copy Markdown
Contributor Author

@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.

@talbs

talbs commented Dec 11, 2014

Copy link
Copy Markdown
Contributor Author

Thanks for the good messaging/copy feedback, @catong! I've made revisions in this commit (edx@4a74e27) based on your suggestions/notes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@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"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i like it! has-group-visibility-set seems solid and reusable.

@frrrances

Copy link
Copy Markdown
Contributor

Nice work, @talbs! I have a few small comments but overall, really good stuff. Once you address my comments, I'm all 👍

@talbs

talbs commented Dec 16, 2014

Copy link
Copy Markdown
Contributor Author

@frrrances, I've addressed all of the very good feedback you gave. There's one note I made about _forms.scss abstraction. Let me know if that's okay by you and thanks for the look through.

@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

RTL @include margin-right($baseline/2);

@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch from 600a843 to af3659e Compare December 17, 2014 15:08
@talbs

talbs commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

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
@talbs
talbs force-pushed the talbs/studio-component+groups-ui branch from af3659e to ac507cb Compare December 17, 2014 17:57
@talbs

talbs commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

@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?

@talbs

talbs commented Dec 17, 2014

Copy link
Copy Markdown
Contributor Author

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.

@talbs talbs closed this Dec 17, 2014
@talbs
talbs deleted the talbs/studio-component+groups-ui branch December 17, 2014 19:18
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.

6 participants