WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
244 stars 87 forks source link

Improve "no pathways found" message #2633

Closed jasmussen closed 2 weeks ago

jasmussen commented 3 weeks ago

We could use a better message or design treatment for “No [pathways] found.”:

Image

Maybe just a border:

Image

kathrynwp commented 3 weeks ago

Looping in @thetinyl for any wording suggestions as well.

thetinyl commented 3 weeks ago

Hmmm. @adamwoodnz Is there any way to hide pathway levels that don't have any content available? So if only the Beginner level is there, then Inter and Adv sections don't show up at all (thus negating the need to have this kind messaging).

If we need an empty state, I think there's an opportunity here for guidance. Someone looking in those sections is looking for more to learn, after all. We also want to hint at a future where there will be content there.

My suggestion (which is also generic and can be applied across the board):

There’s nothing here yet. Check again soon or find another course.

adamwoodnz commented 3 weeks ago

Hmmm. @adamwoodnz Is there any way to hide pathway levels that don't have any content available? So if only the Beginner level is there, then Inter and Adv sections don't show up at all (thus negating the need to have this kind messaging).

I knew this would come up, and I tried a custom block based approach initially to make this easier, but ran into problems and settled on simple query loop blocks. It should be possible but given the effort involved and volume of other launch issues, I'd prefer to update the empty state for now. I will use your suggestion.

thetinyl commented 2 weeks ago

It should be possible but given the effort involved and volume of other launch issues, I'd prefer to update the empty state for now.

Totally fair. I had a feeling you might've already thought through this. Thanks @adamwoodnz.

adamwoodnz commented 2 weeks ago

Opened a post launch issue for not including a section if empty.

adamwoodnz commented 2 weeks ago

~How does this look, do you think the border is necessary with the longer message @jasmussen ?~ Please comment on PR