-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added unpublish status in site listing #2290
base: master
Are you sure you want to change the base?
added unpublish status in site listing #2290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to the site listing look good, but it looks like this item from the issue wasn't addressed:
There are no indications in the course publish drawer that the course is unpublished, or is in the process of being unpublished.
What this is trying to say, I think, is that even though my course (test-site-2290
) is unpublished here in the site listing:
...it is still marked as "succeeded" when you click into the site for editing:
Could we also make the status in the upper right corner here (and in the publish drawer) match the status shown on the listing page?
Sorry, I'm still thinking about this and I'd like to bring in some UX advice. To help out the UX team, can you list out all the possible status for:
|
const publishStatusIndicatorClass = (status: PublishStatus): string => {
switch (status) {
case PublishStatus.NotStarted:
return "bg-secondary"
case PublishStatus.Pending:
case PublishStatus.Started:
return "bg-warning"
case PublishStatus.Aborted:
case PublishStatus.Errored:
return "bg-danger"
case PublishStatus.Success:
return "bg-success"
default:
return ""
}
}
|
After discussing the issue with Umer, I believe that not having labels for both statuses may still confuse users. For best practices and good UX, it’s important to guide users, and I think labels will help with that. I've proposed a solution to include separate labels for each. Please see the attached image and let me know if this resolves the problem. In the first screenshot, I proposed the label 'Deployment,' while in the second screenshot, I used 'Site Status.' Umer preferred 'Site Status,' but I would rather avoid using 'Status' twice.
|
Looks a bit like a Christmas Tree, or a traffic signal. 🙂 I appreciate the desire for clarity, but sometimes more information leads to increased cognitive load and confusion.
|
After discussing it with umer & reading the thread
Peter Comment:
I think on the listing page, we need to either show both statuses for consistency or not show them at all. This means we should either display both or none. Currently, we are only showing one status, which is the deployment status. Also, the use of multiple colors is usually unavoidable when showing different statuses, but I’m open to any suggestions. |
Sorry guys, this still isn't working for me. First, I think there are two different bits of information to communicate. One is the current state of the course -- is it never published, published or unpublished (to production). Most of the time, this is all the user wants to know. Then there's the state of change of the publication. that could be requested by "not started", "in progress", "failed" or "succeeded". Most of the time this is static. Second, I think we should be judicious about what information to show. For the list view, the most common use case is to lok through the list and see if a course has been published or not. The state of change is usually irrelevant and only of interest to someone who cares about that specific course. Can we give that less prominence? Maybe put it in a hover state, or a drop-down, or behind some of kind of "updating..." indicator? I'll discuss this a bit with Jen today to validate my assumptions about values and priority. |
@umar8hassan can you pick this up again and use it to close https://github.com/mitodl/hq/issues/6017 ? Let's narrow the scope and remove any changes to the publish drawer. We can save those for a future issue. |
What are the relevant tickets?
Fixes https://github.com/mitodl/hq/issues/4858
Description (What does it do?)
This PR aims to add appropriate site status according to its
live publish status
for the courses in Listing Dashboard.How can this be tested?
umar/4858-ocw-studio-course-publication-status-in-course-listing
branch inocw-studio
ocw-studio
athttp://localhost:8043/sites
live
http://localhost:8043/sites
⋮
menu for the course should not appear until the course publishing is completepending/not-started
initially then topublish/failed
.Additional Testing
Publish date
,Live publish status
, andUnpublish status
fields inWebsite details
on Django Admin panelScreenshots:
Some test scenarios and their respective values in DB

