Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

VACMS-19163: changed required astrisk to after#19882

Open
jv-agile6 wants to merge 7 commits into
mainfrom
VACMS-19163-LinksfieldSpotlightCLPrequired
Open

VACMS-19163: changed required astrisk to after#19882
jv-agile6 wants to merge 7 commits into
mainfrom
VACMS-19163-LinksfieldSpotlightCLPrequired

Conversation

@jv-agile6
Copy link
Copy Markdown
Contributor

@jv-agile6 jv-agile6 commented Nov 15, 2024

Description

Relates to #19163

QA steps

name: "Campaign Landing Page - Spotlight Validation"

description: QA test for ensuring required fields and validation indicators appear correctly when editing a Campaign Landing Page, and that error messages are properly linked to the corresponding fields.

steps:

  • step: "Go to Tugboat instance Log in and create a new Campaign Landing Page."
    expected_result: "Login and successfully go to create a Campaign Landing Page"

    Screenshot 2024-11-19 at 12 07 52 PM
  • step: "Fill out the required fields in the Hero Banner, Why This Matters, What You Can Do, VA Benefits sections. and Selection settings"
    expected_result: "Required fields are filled out without issues."

Screenshot 2024-11-19 at 12 22 39 PM
  • step: "Save as Published and save the node."
    expected_result: "Node is saved successfully."
Screenshot 2024-11-19 at 12 24 51 PM
  • step: "Edit the node and enable the Spotlight section by clicking 'Enable this page segment.'"
    expected_result: "Spotlight section is enabled."
Screenshot 2024-11-20 at 3 13 15 PM
  • step: "Check if the 'List of links with summaries' field is marked as required (red asterisk)."
    expected_result: "The 'List of links with summaries' field is marked with a red asterisk."
Screenshot 2024-11-22 at 12 52 50 PM
  • step: "Add a Link teaser to the 'Links with summaries' field."
    expected_result: "Link teaser is added successfully."
Screenshot 2024-11-20 at 3 16 22 PM
  • step: "Save the node again."
    expected_result: "Node is saved successfully without errors."
Screenshot 2024-11-20 at 3 18 27 PM

expected_behavior:

  • "Required field 'List of links with summaries' should have a red asterisk."

Definition of Done

  • Documentation has been updated, if applicable.
  • Tests have been added if necessary.
  • Automated tests have passed.
  • Code Quality Tests have passed.
  • Acceptance Criteria in related issue are met.
  • Manual Code Review Approved.
  • If there are field changes, front end output has been thoroughly checked.

Select Team for PR review

  • CMS Team
  • Public websites
  • Facilities
  • User support
  • Accelerated Publishing

Is this PR blocked by another PR?

  • DO NOT MERGE

Does this PR need review from a Product Owner

  • Needs PO review

CMS user-facing announcement

Is an announcement needed to let editors know of this change?

  • Yes, and it's written in issue ____ and queued for publication.
    • Merge and ping the UX writer so they are ready to publish after deployment
  • Yes, but it hasn't yet been written
    • Don't merge yet -- ping the UX writer to write and queue content
  • No announcement is needed for this code change.
    • Merge & carry on unburdened by announcements

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 15, 2024 15:25 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 15, 2024 15:31 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 16, 2024 09:16 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 17, 2024 09:05 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 18, 2024 09:06 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 18, 2024 16:32 Destroyed
@github-actions
Copy link
Copy Markdown

GitHub Workflows (.github/workflows/*.yml)

Have you...

  • pinned all affected GitHub Actions at a specific commit by SHA?
  • reviewed the source code of the action at the commit you are pinning?
  • confirmed that no GitHub security measures are being bypassed?
  • checked for any injection of user content into protected contexts?
  • reviewed Security hardening for GitHub Actions?
  • reviewed GitHub Workflows?

@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 19, 2024 08:59 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 19, 2024 15:38 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 19, 2024 17:06 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 20, 2024 08:58 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 20, 2024 20:38 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@jv-agile6 jv-agile6 marked this pull request as ready for review November 20, 2024 21:22
@jv-agile6 jv-agile6 requested review from a team as code owners November 20, 2024 21:22
Copy link
Copy Markdown
Contributor

@dsasser dsasser left a comment

Choose a reason for hiding this comment

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

Some nitpicks, but also seeing duplicate required indicators on the link field:

Screenshot 2024-11-20 at 2 19 16 PM

Comment thread docroot/themes/custom/vagovclaro/assets/scss/components/_paragraphs.scss Outdated
Comment thread docroot/themes/custom/vagovclaro/assets/scss/components/_paragraphs.scss Outdated
Comment thread docroot/themes/custom/vagovclaro/assets/scss/components/_paragraphs.scss Outdated
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 21, 2024 08:41 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 21, 2024 14:54 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

@jv-agile6
Copy link
Copy Markdown
Contributor Author

Some nitpicks, but also seeing duplicate required indicators on the link field:

Screenshot 2024-11-20 at 2 19 16 PM

These styles are pre-exsiting from form.css

.form-item__label.form-required::after, .fieldset__label.form-required::after {
    display: inline-block;
    margin-inline: 0.15em;
    content: "*";
    color: var(--color-maximumred);
    font-size: 0.875rem;
}

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 21, 2024 15:10 Destroyed
@github-actions
Copy link
Copy Markdown

Checking composer.lock changes...

border: var(--va-gray-lightest) solid 1px;
}

#field-clp-spotlight-link-teasers-values .form-item__label::after {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This selector isn't completely accurate in that it is targetted even when the field isn't required. Is there some reason we can't add the [required] attribute to the selector?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I discovered the styles for the asterisk on form.css and was trying to follow it consistency. I can update and add [required].

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 22, 2024 08:41 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 22, 2024 18:37 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 24, 2024 08:35 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 25, 2024 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 26, 2024 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 27, 2024 08:31 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 28, 2024 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 29, 2024 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 30, 2024 08:33 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 31, 2024 08:31 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 1, 2025 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 2, 2025 08:33 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 3, 2025 08:31 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 4, 2025 08:34 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 5, 2025 08:33 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 6, 2025 08:32 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 7, 2025 08:35 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 8, 2025 08:34 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 9, 2025 08:34 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 10, 2025 08:34 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 11, 2025 08:33 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat January 12, 2025 08:32 Destroyed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2025

Checking composer.lock changes...

@va-cms-bot
Copy link
Copy Markdown
Collaborator

va/tests/status-error:


coverage_core
Title Drupal core security coverage
Severity Error
Sid 2
Description Update to a supported minor [1] as soon as possible to continue receiving
security updates. Visit the release cycle overview [2] for more information
on supported releases.

        [1] http://default/admin/reports/updates                                      
        [2] https://www.drupal.org/core/release-cycle-overview                        

Value Coverage has ended

entity_update
Title Entity/field definitions
Severity Error
Sid 2
Description The following changes were detected in the entity type and field definitions.
.... Consumer

         * The /Authorization code scopes/ field needs to be uninstalled.             

Value Mismatched entity and/or field definitions

@va-cms-bot
Copy link
Copy Markdown
Collaborator

Cypress Accessibility Violations

/test-data-aut

ID: button-name
Impact: critical
Tags: cat.name-role-value, wcag2a, wcag412, section508, section508.22.a, TTv5, TT6.a, EN-301-549, EN-9.4.1.2, ACT
Description: Ensure buttons have discernible text
Help: Buttons must have discernible text
Nodes:

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Page introduction' field" data-proofing-help="Add an introduction that helps visitors understand if information on the page is relevant to them."> <span aria-hidden="true">i</span> </button>
    Impact: critical
    Target: .field--name-field-intro-text-limited-html > .field__label > .proofing-element-help[role="tooltip"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element does not have an implicit (wrapped) <label>
    Element does not have an explicit <label>
    Element's default semantics were not overridden with role="none" or role="presentation"

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Generate a table of contents from major headings' field" data-proofing-help="By checking this box, all h2's below this point on the page will be linked with with anchor links. This helps users navigate content on very long pages. Do not check this box unless there is at least 2 h2's on the page.">
    Impact: critical
    Target: .field--name-field-table-of-contents-boolean > .field__label > .proofing-element-help[role="tooltip"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element does not have an implicit (wrapped) <label>
    Element does not have an explicit <label>
    Element's default semantics were not overridden with role="none" or role="presentation"

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Main content' field" data-proofing-help="The main body of the page, which appears below the featured content."> <span aria-hidden="true">i</span> </button>
    Impact: critical
    Target: button[data-proofing-help-title="About 'Main content' field"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element does not have an implicit (wrapped) <label>
    Element does not have an explicit <label>
    Element's default semantics were not overridden with role="none" or role="presentation"

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.

3 participants