Sensei: Distinguish between lessons that belong to a module and lessons that do not

Created on 13 Oct 2020  Â·  10Comments  Â·  Source: Automattic/sensei

Is your feature request related to a problem? Please describe

There is no visual distinction between lessons in a module and lessons that are not.

Describe the solution you'd like

We should move the border styles and border color settings from the course outline block to the module block to better distinguish between the two types of lessons.

If doing the above does not provide enough of a visual separation, then we may need to consider adding the _Other Lessons_ heading above lessons that are not part of a module.

Additional context

Discussion here - p1602494083011500-slack-C013QUH20TS

[Status] Accepted [Type] Enhancement

Most helpful comment

@renatho Maybe we should post about this in the Sensei Design Slack channel and get Pablo's opinion before we get too far down a particular path.

All 10 comments

I think the Minimal block style for the module shouldn't have a border (or at least have the option to disable border), so the best bet would be adding the Other Lessons header.

I didn't find a good design solution yet. Some screenshots:

1) With the "Other Lessons" header

Screen Shot 2020-10-16 at 18 16 23

2) With the "Other Lessons" header and module border

Screen Shot 2020-10-16 at 18 16 54

2.1) Collapsed

Screen Shot 2020-10-16 at 18 17 02

2.2) Without border

Screen Shot 2020-10-16 at 18 19 38

2.2.1) Collapsed

Screen Shot 2020-10-16 at 18 19 47

3) Borders in the modules, but not in the lessons

Screen Shot 2020-10-16 at 18 18 49

3.1) Collapsed

Screen Shot 2020-10-16 at 18 32 37

3.2) Without module borders

Screen Shot 2020-10-16 at 18 20 11

4) With a margin between the blocks

Screen Shot 2020-10-16 at 18 37 47

4.1) Collapsed

Screen Shot 2020-10-16 at 18 37 52

4.2) Without border

Screen Shot 2020-10-16 at 18 39 03

4.2.1) Collapsed

Screen Shot 2020-10-16 at 18 39 21

5) With a different title

Screen Shot 2020-10-16 at 18 45 16

5.1) Collapsed

Screen Shot 2020-10-16 at 18 45 24

5.2) Without border

Screen Shot 2020-10-16 at 18 47 19

6) Title similar to the modules

Screen Shot 2020-10-16 at 18 49 57

6.1) Collapsed

Screen Shot 2020-10-16 at 18 50 03

6.2) Without border

Screen Shot 2020-10-16 at 18 49 23

6.3) With minimal style

Screen Shot 2020-10-16 at 18 51 39

6.3.4) Minimal style without border

Screen Shot 2020-10-16 at 18 51 58

Personally, I most like option 6. But I think the "Other classes" should also be styled (Probably in the Course Outline Block). Opinions? Other ideas?

cc @pablohoneyhoney

We should definitely add some spacing above the Other lessons section, so that it's distinct even if there is a collapsed module. The same style as Lessons inside the module could be good, but the bigger header as in option 5 does look better.
Maybe also a horizontal top border / separator above the Other lessons section?

We should definitely add some spacing above the Other lessons section, so that it's distinct even if there is a collapsed module. The same style as Lessons inside the module could be good, but the bigger header as in option 5 does look better.
Maybe also a horizontal top border / separator above the Other lessons section?

Some screenshots with this test:

7)

Screen Shot 2020-10-16 at 19 21 32

7.1)

Screen Shot 2020-10-16 at 19 21 40

7.2)

Screen Shot 2020-10-16 at 19 22 11

7.3)

Screen Shot 2020-10-16 at 19 22 20

7.4)

Screen Shot 2020-10-16 at 19 24 06

7.5)

Screen Shot 2020-10-16 at 19 24 19

7.6)

Screen Shot 2020-10-16 at 19 24 57

7.7)

Screen Shot 2020-10-16 at 19 25 08

I was exploring a little some approaches to separate it in the editor. I think the best approach will be changing a little how we add the lessons without modules. Instead of adding everything in the same InnerBlocks, we'll have 2 separate InnerBlocks - One for the modules and one for the lessons. To the interface don't be confusing, I'm thinking to add customized appender buttons, like "Add module", and "Add lesson without a module" (this still would need a better name).

The bad part is that we can't just add 2 InnerBlocks in the same block. We'll need to create some new blocks for that to work only as a container. It'll add some extra complexity to our code, but it works. We can create it locked, so the users can't add/remove/reorder these blocks that we'll use only like a container.

This approach will also solve the weird case, where the user can add lessons between modules, and after saving we reorder it sending the lessons to the bottom.

@renatho Maybe we should post about this in the Sensei Design Slack channel and get Pablo's opinion before we get too far down a particular path.

@renatho Maybe we should post about this in the Sensei Design Slack channel and get Pablo's opinion before we get too far down a particular path.

Will do! :)

➤ Renatho Rosa commented:

This card is blocked waiting for Designs feedback.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BusinessBloomer picture BusinessBloomer  Â·  3Comments

richardmtl picture richardmtl  Â·  5Comments

kraftbj picture kraftbj  Â·  4Comments

merkushin picture merkushin  Â·  3Comments

donnapep picture donnapep  Â·  5Comments