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

Alert for content editors on incorrect block usage #274

Open
1 task done
cogniSyb opened this issue Dec 1, 2023 · 1 comment
Open
1 task done

Alert for content editors on incorrect block usage #274

cogniSyb opened this issue Dec 1, 2023 · 1 comment
Labels
Documentation Improvements or additions to documentation Enhancement New feature or request Moved to prod repo Migrated to the production project SRB tickets that need to be discussed in the SRB

Comments

@cogniSyb
Copy link
Collaborator

cogniSyb commented Dec 1, 2023

We should display an alert on non production environments when the content editor adds a v2 block on the page that is not a v2-redesign page. This will allow incorrect use of a component to be spotted more quickly and reduce errors and questions in the future.

  • Will we also add an alert when a non-redesign block is used on a redesign page?

Requirements

  • Check whether we’re on a develop/preview URL
  • Check whether we’re on a redesign page
    • Check whether a v2 block is present on a page (a block that starts with v2-)
    • Check whether a whitelisted block is present on a page
  • Mention which block is used that is 'in violation'
@cogniSyb cogniSyb added Documentation Improvements or additions to documentation Enhancement New feature or request labels Dec 1, 2023
@cogniSyb cogniSyb added the SRB tickets that need to be discussed in the SRB label Dec 11, 2023
@shirin27
Copy link
Collaborator

Kamino cloned this issue to hlxsites/vg-volvotrucks-us

@shirin27 shirin27 added the Moved to prod repo Migrated to the production project label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Enhancement New feature or request Moved to prod repo Migrated to the production project SRB tickets that need to be discussed in the SRB
Projects
None yet
Development

No branches or pull requests

2 participants