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

Hfeyp 612 preview labels #560

Merged
merged 13 commits into from
Jan 26, 2022
Merged

Hfeyp 612 preview labels #560

merged 13 commits into from
Jan 26, 2022

Conversation

tunde-anddigital
Copy link
Contributor

Ticket and context

Ticket: HFEYP-612

Tech review

Is there anything that the code reviewer should know?

Added a new preview of the live site to for content pages and content page versions

Code quality checks

  • All commit messages are meaningful and true

Product review

Check new endpoints for preview pages function correctly

How can someone see it in review app?

  1. Click the link to review app (posted by a github-actions bot below)
  2. Follow the steps from the ticket.

@github-actions
Copy link

Copy link
Contributor

@reggieb reggieb left a comment

Choose a reason for hiding this comment

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

Some minor comments. The item that needs to be fixed is the removal of the unnecessary @page object creation in the controller.

app/controllers/admin/content_pages_controller.rb Outdated Show resolved Hide resolved
app/views/admin/content_page_versions/preview_of_draft.erb Outdated Show resolved Hide resolved
app/views/admin/content_pages/preview_of_live.erb Outdated Show resolved Hide resolved
app/controllers/admin/content_pages_controller.rb Outdated Show resolved Hide resolved
app/controllers/admin/content_pages_controller.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@reggieb reggieb left a comment

Choose a reason for hiding this comment

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

LGTM 🙂

@ebrett ebrett added this to the v1.10.5 milestone Jan 21, 2022
@ebrett ebrett merged commit 4db8298 into develop Jan 26, 2022
@ebrett ebrett deleted the hfeyp-612-preview-labels branch January 26, 2022 16:44
ebrett added a commit that referenced this pull request Jan 27, 2022
* remove conditional so Articles link always displays (#527)

Co-authored-by: Adam Goldstone <adam.goldstone@education.gov.uk>

* v1.3.1 causes failure so downgrading to v1.3.0 (#533)

see unsplash/comment-on-pr#51

* update page title, now responsive to article title and correctly ends with "GOV.UK" (#537)

* change deletion notice to accepted wording (#539)

* Hfeyp 597 remove back button on edit page screen (#530)

* remove back button from edit page screen

* update syntax to newer form of key value assignment, move class assignment outside data assignment

* changed behaviour so clicking cancel returns to previous screen

* Add space to end of hash

Co-authored-by: Rob Nichols <reggieb@users.noreply.github.com>

Co-authored-by: Rob Nichols <reggieb@users.noreply.github.com>

* Move sentry configuration file to initializers to ensure it is loaded on app start (#546)

* Update of gems (#548)

* aws-sdk-s3
* devise-security
* rails gems to 6.1.4.4
  actioncable
  actionmailbox
  actionmailer
  actionpack
  actiontext
  actionview
  activejob
  activemodel
  activerecord
  activestorage
  activesupport
  railsties
* govspeak

* Update tracking id for preprod to use new value (#547)

* remove other useful resources section (#542)

* remove other useful resources section

* add newline at end of file

* HFEYP-623 change from flexbox to grid so last line of grid aligns left (#545)

* change from flexbox to grid so last line of grid aligns left

* change column width to correct calculation

* add gem-c-govspeak class to articles (#532)

* add gem-c-govspeak class to articles

* move gem-c-govspeak class to govuk-body, add to article preview

* HFEYP-626 Adds alt text to article feature image with helper (#538)

* Add feature image helper to properly format images for articles

Added proper styling to the admin preview page, which was missing

* Include thumbnail images on index page

* Add guard to helper

* Use alt text for title attribute

* Cms refactor (#506)

* refactor content blocks into admin namespace

* WIP: refactor content assets into admin namespace

* refactor content blocks into admin namespace

* remove commented out code

* refactor contentPage & versions to admin namespace

* minor changes to back button positions

* fix rubocop issues

* refactor specs

* refactor specs

* delete routing specs

* fix typo

* add 404 redirect

* refactor feature specs for admin paths

* refactor request specs for admin path

* refactor view specs for admin paths

* refactor for admin path

* correct path

* add description

* fix syntax errors

* fix content_pages rspec

* remove unnecessary comments

* HFEYP-651 Update javascript packages and listen gem (#551)

* Update using `yarn upgrade --latest`

* Update listen gem

* Upgrade using bundle update

* Preprod uses staging credentials, not production (#553)

* HFEYP-652 remove duplicate spec (#554)

* remove duplicate and flaky spec

* remove empty spec

* Updated with suggestion to remove unused class (#555)

Still some concern with the issue that Youtube snippets will not go
go through the sanitize method

* HFEYP-604 Update styles for contents list (#550)

* Add styling from govuk_publishing_component

* Move contents list style within govspeak

* Revert to using the margins on li elements

* add target _blank to open in new tab (#567)

* Hfeyp 612 preview labels (#560)

* add preview of live to controller and route

* add preview label to draft preview page

* update links to preview of live page

* update preview of live page link

* add preview of live page

* add preview live spec

* correct id

* correct path

* move to one line

* add newline

* remove creation of new copy of content page

* add aria labels for context

Co-authored-by: Brett McHargue <ebrett@users.noreply.github.com>

* Hfeyp 199 editor sign in page update (#571)

* change header text

* change label classes so now smaller text

* move line break inside conditional, remove unnecessary line break

* change call to action wording

Co-authored-by: Brett McHargue <ebrett@users.noreply.github.com>

* HFEYP 36 CMS - Change Log out to take user to sign in page (#572)

* change sign out redirect to page that user was previously on

* add rubocop suggestions

* - update failing specs with new behaviour
- remove duplicate specs

Co-authored-by: Brett McHargue <ebrett@users.noreply.github.com>

* Use main as integration branch, rather than develop (#575)

* Update gems and packages (#577)

Co-authored-by: Adam Goldstone <13471320+agoldstone93@users.noreply.github.com>
Co-authored-by: Adam Goldstone <adam.goldstone@education.gov.uk>
Co-authored-by: Rob Nichols <reggieb@users.noreply.github.com>
Co-authored-by: tunde-anddigital <50167725+tunde-anddigital@users.noreply.github.com>
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.

4 participants