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

VACMS-15911: Updates config and code for spotlight content #16145

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

omahane
Copy link
Contributor

@omahane omahane commented Nov 15, 2023

Description

Relates to #15911

Testing done

Manually

Screenshots

VBA Facility

Screenshot 2023-11-16 at 8 23 33 AM

Vet Center Dashboard

Screenshot 2023-11-16 at 8 27 03 AM

Vet Center

Screenshot 2023-11-16 at 8 24 48 AM

QA steps

VBA Facility

  • As [email protected], edit a VBA facility
  • Confirm that the labeling of Spotlight items is clear and correct
  • Add a local spotlight
  • Add another local spotlight
  • Confirm that you cannot add a third spotlight
  • Save the node
  • Confirm that the spotlight information appears in the Spotlight group

Vet Center dashboard

  • Go to the Vet Center dashboard
  • Confirm the change from "Featured content" to "Spotlight content"
  • Click Go to Spotlight content
  • Confirm that this takes you to the spotlight content of the Vet Center

Vet Center node

  • Confirm the change from "Featured content" to "Spotlight content" on the Vet Center node

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

@omahane omahane requested review from a team as code owners November 15, 2023 22:21
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 15, 2023 22:21 Destroyed
@omahane
Copy link
Contributor Author

omahane commented Nov 15, 2023

@davidmpickett I am looking at a VBA Facility and I'm not sure if it reads quite right, lots of "Spotlight content"s.

Screenshot 2023-11-15 at 4 49 20 PM

The same is true (perhaps to a lesser extent) for Vet Center.
Screenshot 2023-11-15 at 4 55 29 PM

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 16, 2023 14:02 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 16, 2023 15:35 Destroyed
@github-actions github-actions bot added the Facilities Facilities products (VAMC, Vet Center, etc) label Nov 16, 2023
module: entity_reference_revisions
locked: false
cardinality: 2
translatable: true
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure Translatable should be false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see anything in the UI that enables this to be turned off. I could set it to false here. Is that the recommendation, @swirtSJW ?

Copy link
Contributor

Choose a reason for hiding this comment

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

This might not be an issue. Language support is disabled for this field type and you have set translation to false on the field settings. I didn't realize this was field.storage when I left the comment. Sorry

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fine. The entity field that is the entity reference is translatable, even though the paragraph itself is not (would just point to a different paragraph).

@@ -9,7 +9,7 @@ id: paragraph.featured_content.field_section_header
field_name: field_section_header
entity_type: paragraph
bundle: featured_content
label: 'Section Header'
label: Title
description: ''
required: true
translatable: false
Copy link
Contributor

Choose a reason for hiding this comment

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

By contrast, I think this field should be translatable. Possible that I'm totally misunderstanding translation though

Copy link
Contributor

Choose a reason for hiding this comment

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

A paragraph can generally not be translatable. Meaning if the node was translated, it would use its own paragraph, not a translation of the original paragraph.

@@ -12,7 +12,7 @@ id: node.vet_center.field_vet_center_feature_content
field_name: field_vet_center_feature_content
entity_type: node
bundle: vet_center
label: 'Featured content'
label: 'Spotlight content'
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider 'Local spotlight(s)' to avoid duplication of 'Spotlight content' phrase

Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2023-11-16 102314

title: 'featured content block'
title_plural: 'featured content blocks'
title: 'spotlight contents'
title_plural: spotlights
Copy link
Contributor

Choose a reason for hiding this comment

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

I am even more convinced now that these fields don't do what they say they do.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I am not sure I follow what you are saying @davidmpickett

Copy link
Contributor

Choose a reason for hiding this comment

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

Just pointing out that the first two fields in Paragraphs (stable) field widget don't actually do what they say they do. The actual source of the button text seems to be the Paragraph label.

lies

It's not a big deal (or in scope for this ticket) it's just confusing

@davidmpickett
Copy link
Contributor

davidmpickett commented Nov 16, 2023

Two other files that might warrant small edits:

field.field.node.vba_facility.field_cc_national_spotlight_1.yml

  • label: 'National spotlight 1'

field.field.node.vet_center.field_cc_vet_center_featured_con.yml

  • 🍇 label: 'Nationally featured Vet Center content spotlight'

davidmpickett
davidmpickett previously approved these changes Nov 16, 2023
Copy link
Contributor

@davidmpickett davidmpickett left a comment

Choose a reason for hiding this comment

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

Thanks for making all those updates. Looks good to me

@omahane omahane requested a review from swirtSJW November 16, 2023 19:34
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 16, 2023 21:33 Destroyed
@swirtSJW
Copy link
Contributor

I was not able to login with this user.
image

I'll look into it.

@swirtSJW
Copy link
Contributor

swirtSJW commented Nov 20, 2023

I am fixing the conflicts now.

@swirtSJW swirtSJW force-pushed the VACMS-15911-add-featured-content-vba branch from 8315212 to 525c4a8 Compare November 20, 2023 01:08
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 20, 2023 01:08 Destroyed
swirtSJW
swirtSJW previously approved these changes Nov 20, 2023
Copy link
Contributor

@swirtSJW swirtSJW left a comment

Choose a reason for hiding this comment

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

This tests out great and is ready for merge.

However, this makes changes to the Vet Center product that were not really scoped in the original ticket and may need some change management with editors and perhaps KBs that were not part of the issue either. So I am not sure if this can be merged.

@davidmpickett and @xiongjaneg please advise.

@swirtSJW
Copy link
Contributor

image

@davidmpickett
Copy link
Contributor

This tests out great and is ready for merge.

However, this makes changes to the Vet Center product that were not really scoped in the original ticket and may need some change management with editors and perhaps KBs that were not part of the issue either. So I am not sure if this can be merged.

@davidmpickett and @xiongjaneg please advise.

Linking to ongoing slack thread about change management

@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 20, 2023 02:38 Destroyed
@laflannery
Copy link
Contributor

Approved

@swirtSJW
Copy link
Contributor

Discussed the need for Change management in today's scrum and Jane and Michelle both gave the thumbs up to go ahead and merge.

@swirtSJW swirtSJW merged commit fe33e58 into main Nov 20, 2023
7 checks passed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 20, 2023 18:34 Destroyed
@swirtSJW swirtSJW deleted the VACMS-15911-add-featured-content-vba branch November 20, 2023 18:34
tjheffner pushed a commit that referenced this pull request Dec 6, 2023
* VACMS-15911: Updates config and code for spotlight content

* VACMS-15911: Updates the labeling of spotlight in VBA form

* VACMS-15911: Updates VBA node:view

* VACMS-15911: Update config after PR

* VACMS-15911 Move local spotlight out of external content.

---------

Co-authored-by: Steve Wirt <[email protected]>
Co-authored-by: Steve Wirt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Facilities Facilities products (VAMC, Vet Center, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants