Skip to content

(828) Show changenotes in review and show screens #9851

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

Conversation

pezholio
Copy link
Contributor

@pezholio pezholio commented Jan 28, 2025

Trello card: https://trello.com/c/eqAcYy1U/828-add-internal-and-external-change-notes-when-editing-blocks

This adds Change note related content to the review and show screens for a content block:

Screenshots

image

image

@pezholio pezholio force-pushed the content-modelling/828-show-changenotes-in-review-and-show-screens branch 2 times, most recently from 656cae0 to da6a65f Compare January 28, 2025 12:56
@pezholio pezholio changed the title Content modelling/828 show changenotes in review and show screens (828) Show changenotes in review and show screens Jan 28, 2025
@pezholio pezholio marked this pull request as ready for review January 28, 2025 13:07
@pezholio pezholio requested a review from Harriethw January 29, 2025 11:04
I’ve also tightened up the selectors on the component test
We only show the change note if the change is a major one.
Again, if the change is minor, we don’t show the change note
I had the document with the copy changes in, so might as well
do this now :)
@pezholio pezholio force-pushed the content-modelling/828-show-changenotes-in-review-and-show-screens branch from da6a65f to 42c6917 Compare January 29, 2025 11:05
end

def change_note_items
content_block_edition.major_change ? [major_change_item, external_change_note_item] : [major_change_item]
Copy link
Contributor

Choose a reason for hiding this comment

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

don't think it really makes a difference at the moment, but an internal change note can't be added unless it's a major change right? If there is value under the internal change not field but it's not a major change, shouldn't we still show the note anyway? just in case those user-facing rules changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Internal notes can be added regardless of if it's a major or minor. It's only public change notes that depend on major/minor

Copy link
Contributor

Choose a reason for hiding this comment

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

Internal notes can be added regardless of if it's a major or minor.

sorry I meant external note, not internal - it's only possible to add one if it's a major change at the moment

Copy link
Contributor

Choose a reason for hiding this comment

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

If there is value under the internal change not field but it's not a major change, shouldn't we still show the note anyway? just in case those user-facing rules changed?

was trying to say that it doesn't seem quite right to check the major_change field instead of just checking if there's an external note, but don't think it needs to hold up the PR!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, gotcha!

@pezholio pezholio requested a review from Harriethw January 30, 2025 14:19
@pezholio pezholio merged commit a770b26 into main Feb 3, 2025
19 checks passed
@pezholio pezholio deleted the content-modelling/828-show-changenotes-in-review-and-show-screens branch February 3, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants