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

Content modelling/748 add review to edit #9735

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

Harriethw
Copy link
Contributor

@Harriethw Harriethw commented Dec 11, 2024

https://trello.com/c/uMVUEObq/748-add-review-email-address-screen-as-part-of-the-edit-journey

  • Adding the row to show either published date or scheduled date if present on the review page.
  • Fixing the cancel process if users were to press cancel on this page during the edit flow.

Screenshot 2024-12-11 at 16 54 22

Screenshot 2024-12-11 at 16 54 00


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@@ -28,6 +28,9 @@ def valid_state?(state)
event :schedule do
transitions from: %i[draft], to: :scheduled
end
event :draft do
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this is a different in_review state here, rather than draft?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the combination of using assign_attributes and valid? means we don't have to mess about with this now :)

this is consistent with structure we've used in
other tests, and will allow us to add a `describe`
block as we had more logic branches to it.
during the review stage, we want to check the
scheduled values from the previous page are valid,
but not yet put the edition into a scheduled or
published state.

here we validate there are no errors by updating
the edition via the `assign_attributes` method which
does not save the changes to the db.
Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

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

Nice work! LGTM 👍

@Harriethw Harriethw merged commit a416b7c into main Dec 17, 2024
19 checks passed
@Harriethw Harriethw deleted the content-modelling/748-add-review-to-edit branch December 17, 2024 16:02
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