Skip to content

Conversation

@andy-armstrong
Copy link
Contributor

STUD-1754

@andy-armstrong
Copy link
Contributor Author

Updated PR for https://github.com/edx/edx-platform/pull/4116 that compares against the bulk-publishing branch.

@andy-armstrong andy-armstrong changed the title Add unit location component to the container page Replace the unit page with the container page Jun 18, 2014
@andy-armstrong
Copy link
Contributor Author

@explorerleslie @cahrens @frrrances I've made the changes we discussed this morning so I've put this up on my sandbox. I also created a test course that has both published and unpublished changes since you can't make those changes now that the publishing sidebar has gone!

http://studio.andy-armstrong.m.sandbox.edx.org/course/slashes:AndyA+BP101+BP101

@cahrens
Copy link

cahrens commented Jun 23, 2014

@andy-armstrong Breadcrumbs are getting truncated.

screen shot 2014-06-23 at 1 44 34 pm

@cahrens
Copy link

cahrens commented Jun 23, 2014

@frrrances Subsections in the RHS "unit locator" thingy shouldn't look clickable. Right now they do, though Andy has correct disabled navigation to the Subsection page.

@andy-armstrong
Copy link
Contributor Author

@cahrens the breadcrumbs appear to be generated with the correct HTML so @frrrances was investigating the styling.

@andy-armstrong
Copy link
Contributor Author

@cahrens Thanks for catching this. I've made the changes we discussed so that the special logic for static pages is clearly pointed out.

@andy-armstrong
Copy link
Contributor Author

@frrrances FYI, you can remove view-unit from the sass now, as that view has gone entirely.

Copy link

Choose a reason for hiding this comment

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

Let's rename as xblock_input_editor and be clear that it is only for strings.

Copy link

Choose a reason for hiding this comment

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

Or if you want to move to generalizing it, create something like the abstract editor class with getValue, setValue, hideEditor, and showEditor methods. Then have a StringEditor implementation of it that deals with the input field.

@cahrens
Copy link

cahrens commented Jun 24, 2014

@frrrances can _unit.scss be deleted?

Copy link

Choose a reason for hiding this comment

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

Note to reviewer: I deleted the Lettuce tests around publishing and creating drafts. I will write tests for the new workflow in bok choy.

@cahrens
Copy link

cahrens commented Jun 25, 2014

@andy-armstrong and/or @frrrances Styling of editor for the video component is broken. They are doing custom tab work, so probably their CSS is no longer getting applied on the "container page".

screen shot 2014-06-25 at 11 21 15 am

@cahrens
Copy link

cahrens commented Jun 25, 2014

The upload dialog within the Video editor has issues as well. It is supposed to be small enough that you can work with it, but now it is large and scrolling causes it and the settings editor behind to move.

Steps to reproduce: Create video, click "Advanced", click on "Upload Handout".
screen shot 2014-06-25 at 11 23 45 am

Copy link

Choose a reason for hiding this comment

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

I'm not sure read_only is necessary here. But I guess it doesn't hurt anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are templates that assume it is set, and I thought this was simpler than updating them all to be tolerant of the missing value. Would you prefer that I did?

@cahrens
Copy link

cahrens commented Jun 25, 2014

@andy-armstrong Done reviewing.

@andy-armstrong
Copy link
Contributor Author

👍 for your changes, @cahrens. Thanks for helping me get through all those test failures.

I'm done with addressing your review comments too, btw.

@cahrens
Copy link

cahrens commented Jun 25, 2014

I've squashed our code review changes (and corrected the issue I introduced a couple commits ago). 👍 on your stuff, Andy.

@frrrances
Copy link
Contributor

@andy-armstrong On the video editor displaying incorrectly: it looks like the model-type-[type] is not getting populated correctly. Once the class reads "modal-type-video" it seems to fix both the editor window and the Upload Handout dialog. Let me know if you need help with getting that fixed.

@andy-armstrong
Copy link
Contributor Author

@cahrens @frrrances I've fixed the video editing bug (somehow the key line of code that set the category of the block got removed). I've also implemented the title logic for container pages.

Please re-review just my last two commits.

@frrrances
Copy link
Contributor

@marcotuts Can you review my FED and UX work on this?

@frrrances
Copy link
Contributor

@andy-armstrong Video looks much better! 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

should this be our edX white/off-white as opposed to browser white? (nitpick, skippable)

@andy-armstrong
Copy link
Contributor Author

I've updated my Sandbox and added a test course:

http://studio.andy-armstrong.m.sandbox.edx.org/course/slashes:AndyA+AAT101+AAT101

@explorerleslie
Copy link

This looks great, thanks @andy-armstrong and @frrrances!

Two minor pieces of feedback (both of which I think are targeted to @andy-armstrong):

  • The click target for editing the display name is too large. It seems to span half the width of the left side. Could we make that target the same width as the name?
  • When you click the Edit button from a content experiment (a non-unit container), there is still a field for editing Display Name. Could we remove that now that the display name is click to edit? (Sorry, I should have caught that in acceptance criteria in the story.)

@marcotuts
Copy link
Contributor

Awesome! Glad to see this work to replace the unit page. A couple thoughts (after chatting with Frances to make sure I caught everything included in this work), but nothing that would stop this from merging.

1.) For the breadcrumb navigation, I think it would be good to find a way to make all of those items clickable, including the subsection pages (eventually). This could come in the form of an outline page link anchored to the relevant Section or Subsection, but this way all of these links can be used consistently as navigation.

2.) Additional iconography or hover states for the editable Unit page name would be a helpful improvement, though it sounds like that is already planned for.

Look great! 👍

@andy-armstrong
Copy link
Contributor Author

@explorerleslie
#1 - I believe that this is a styling issue as the layout of the widget is controlled by CSS. @frrrances, ny thoughts?
#2 - The problem with removing the display name from the edit modal is that you can then can't change the display name from the unit page. I think it would actually be more common to change it there. I wonder if we should add inline editing of those names too.

@cahrens
Copy link

cahrens commented Jun 27, 2014

We need to leave display_name in the edit modal. As Andy alluded to, there is no way for us to tell on the server at the time we create the information for the settings modal where it will be displayed.

@explorerleslie
Copy link

@cahrens thanks, Andy and I talked about that and I'm ok with leaving it as is for now.

@cahrens cahrens merged this pull request into bulk-publishing Jun 28, 2014
@cahrens
Copy link

cahrens commented Jun 28, 2014

Uck, I lost this commit when I tried to rebase bulk-publishing onto master. I will create a new branch and PR with the cherry-picked commit. Need to figure out how to do this better next time!

@cahrens
Copy link

cahrens commented Jun 28, 2014

New PR is #4245

@benpatterson benpatterson deleted the andya/remove-unit-page branch January 21, 2015 13:09
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