openedx / openedx/frontend-app-authoring
A new, empty library shows "Draft" with changes to publish
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.
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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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