openedx / openedx/frontend-app-authoring

A new, empty library shows "Draft" with changes to publish

Open
#3,044 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17
Forks
218
Avg merge
9d 20h
Merged PRs (30d)
20

Description

When you create a new library, it appears with the sidebar open and the Draft (never published) notice is quite prominent, as is the Publish All button.

Image

Clicking the "Publish All" button will change this (and behind the scenes, does create an empty PublishLog record), but it hasn't actually published anything as there is nothing to publish.

Image

I am not sure what the correct behavior is, but I don't think we should show a "Publish" button option when there isn't anything to publish.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the new, empty library state and locating the sidebar code that renders the Draft (never published) notice and Publish All button. Trace how the empty library creates a PublishLog record, then verify the chosen behavior prevents a publish action from appearing when there are no changes to publish.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.