Skip to content
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

Improve locked doc state #456

Merged
merged 7 commits into from
Nov 28, 2023
Merged

Improve locked doc state #456

merged 7 commits into from
Nov 28, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Nov 28, 2023

Reduces confusion of the locked-doc state by improving the precision of the isReadOnly logic in the sidebar. We were incorrectly allowing some fields to be (or at least appear) editable by a document owner even if the doc was in a locked state. We now check for this.

@jeffdaley jeffdaley changed the title Jeffdaley/locked doc Improve locked doc state Nov 28, 2023
@jeffdaley jeffdaley marked this pull request as ready for review November 28, 2023 18:40
@jeffdaley jeffdaley requested a review from a team as a code owner November 28, 2023 18:40
Copy link
Collaborator

@jfreda jfreda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change suggested, otherwise looks good

@@ -209,6 +209,7 @@ export default class NewDocFormComponent extends Component<NewDocFormComponentSi
productAbbreviation: this.productAbbreviation,
summary: cleanString(this.summary),
title: cleanString(this.title),
appCreated: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is automatically set by the backend and not needed.

@jeffdaley jeffdaley merged commit 318f395 into main Nov 28, 2023
2 checks passed
@jeffdaley jeffdaley deleted the jeffdaley/locked-doc branch November 28, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants