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

CLP: View screen should match Edit screen in Drupal #18954

Closed
3 of 4 tasks
laflannery opened this issue Aug 15, 2024 · 10 comments
Closed
3 of 4 tasks

CLP: View screen should match Edit screen in Drupal #18954

laflannery opened this issue Aug 15, 2024 · 10 comments
Assignees
Labels
Campaign Landing Page Marketing campaign oriented, CMS-managed product owned by Public Websites team Drupal engineering CMS team practice area Drupal Site Building For tasks that require Drupal Admin access, but don't require updating code or making a PR Public Websites Scrum team in the Sitewide crew sitewide UX debt Known issues with the user experience

Comments

@laflannery
Copy link
Contributor

laflannery commented Aug 15, 2024

Status

[2024-09-06] [Dave] Pulled in to sprint as a Site Building ticket
[2024-08-15] [Fran] Prioritization not decided yet, but moving to Next Refinement so it will be ready in case this bubbles up.

Background

In Drupal for the Campaign Landing page content type, the edit screen has multiple sections that can be enabled to build the page. However, very few of these sections actually show on the View screen in Drupal when they are enabled. There is no issue on the FE - everything is working as expected on the FE - this is just a Drupal View issue.

This did however recently lead to quite a bit of confusion when Justin from VHA was trying to add the Downloadable resources section to a page for SECVA. He, as well as the Helpdesk all thought this section was not working because they couldn't see it being added in Drupal. Slack thread for reference

Description

In order to avoid future confusion, we should ensure that all enabled sections on a CLP are also shown on the View screen in Drupal.

Example (This is a tugboat link so it may break but I also have screenshots)

Acceptance Criteria

  • All enabled sections on a CLP display on the View screen in the same order as the edit screen
  • Optional sections that have never been enabled do not show on the View screen
    • Optional sections that have been enabled and then disabled may still show up on the View screen
  • Requires QA

Issues out of scope

@laflannery laflannery added Needs refining Issue status Drupal engineering CMS team practice area Public Websites Scrum team in the Sitewide crew sitewide labels Aug 15, 2024
@laflannery
Copy link
Contributor Author

@mmiddaugh I wanted to just let you know I made a ticket for this but I'm not sure if it needs to be prioritized or not. But at least you know it exists now.

CC: @FranECross

@FranECross FranECross added the Campaign Landing Page Marketing campaign oriented, CMS-managed product owned by Public Websites team label Aug 15, 2024
@FranECross
Copy link

@laflannery Thanks so much! I'll move it to Next Refinement so that it'll be ready in case we do decide to prioritize.

@davidmpickett davidmpickett self-assigned this Sep 5, 2024
@davidmpickett davidmpickett removed the Needs refining Issue status label Sep 6, 2024
@davidmpickett
Copy link
Contributor

Notes:

  • Video = not showing
  • Spotlight = not showing
  • Stories = not showing
  • Downloadable resources = not showing
  • Events = not showing
  • FAQs = showing up at very bottom
  • VA benefits = showing up inside of Connect with us

screencapture-main-sivbehcvqkui7ce9b67dwanfbohmenin-demo-cms-va-gov-initiatives-everything-enabled-2024-09-06-10_52_31

@davidmpickett
Copy link
Contributor

Seems like the culprit here is a custom module that would hide unused widgets on View back before that was a core widget functionality (leave "Show if empty" unchecked)

@davidmpickett
Copy link
Contributor

My work on the PR is basically done. Enabled and disabled sections are now functioning as expected. I have also rearranged/renamed/reformatted a few fields so the View and Edit screens match better.

Remaining work is writing up QA steps etc.

@davidmpickett davidmpickett added Drupal Site Building For tasks that require Drupal Admin access, but don't require updating code or making a PR UX debt Known issues with the user experience labels Sep 6, 2024
@davidmpickett
Copy link
Contributor

davidmpickett commented Sep 9, 2024

@FranECross @mmiddaugh @laflannery - I would like to request a modification to one of the ACs:

  • Sections not enabled do not show on the View screen

I have a solution working that partially resolves this. It won't show sections of the page that have never been enabled.

However, if an editor enables a section and then later disables it without manually clearing out the content, that content will still show on Node View. This is not ideal state, but I'd argue it's still functional.

Resolving this would require a much larger effort and would balloon the size of this ticket. We'd need to tag in an engineer and discuss tradeoffs of various possible solutions. I suggest that we ship my solution which improves 80% of the scenarios.

Here's a comparison from my QA of the current state in Prod vs the state in my tugboat:

✅ = Ideal state
⚠️ = Functional but not ideal
⛔ = Not functional

Scenario Current prod behavior Tugboat behavior
Create a new CLP with no optional panels Hero banner ✅
Why this matters ✅
What can you do ⚠️
VA Benefits ⚠️
Hero banner ✅
Why this matters to you ✅
What you can do ✅
VA Benefits ✅
Create a new CLP with all optional panels Hero banner ✅
Why this matters ✅
What can you do ⚠️
Video ⛔
Spotlight ⛔
Stories ⛔
Downloadable resources ⛔
Events ⛔
FAQs ⚠️
Connect with us ⚠️
VA Benefits ⚠️
Hero banner ✅
Why this matters ✅
What you can do ✅
Video ✅
Spotlight ✅
Stories ✅
Downloadable resources ✅
Events ✅
FAQs ✅
Connect with us ✅
VA Benefits ✅
Enable an optional panel on an existing CLP Video ⛔
Spotlight ⛔
Stories ⛔
Downloadable resources ⛔
Events ⛔
FAQs ⚠️
Connect with us ⚠️
Video ✅
Spotlight ⚠️
Stories ✅
Downloadable resources ✅
Events ✅
FAQs ✅
Connect with us ✅
Disable an optional panel on an existing CLP Video ✅
Spotlight ✅
Stories ⛔
Downloadable resources ✅
Events ✅
FAQs ⚠️
Connect with us ⚠️
Video ⚠️
Spotlight ⚠️
Stories ⛔
Downloadable resources ⚠️
Events ⚠️
FAQs ⚠️
Connect with us ✅

Edit and here are the issues I stubbed for the remaining quirks

@FranECross
Copy link

@davidmpickett Thanks for providing the amazing table showing prod/future prod. I'm in favor of shipping with the 80% improvement, but defer to Michelle and Laura for final call.

@mmiddaugh
Copy link
Contributor

Agree! The table is amazing and shipping an 80% improvement is a great win.
We may pursue an iteration to the CLP in CY4Q24 so heroic efforts otherwise can wait until then

@davidmpickett
Copy link
Contributor

davidmpickett commented Sep 12, 2024

End of sprint update

  • This is waiting for Code Review, but is low on the priority list given the other Drupal PRs in flight this sprint

@davidmpickett
Copy link
Contributor

davidmpickett commented Sep 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Campaign Landing Page Marketing campaign oriented, CMS-managed product owned by Public Websites team Drupal engineering CMS team practice area Drupal Site Building For tasks that require Drupal Admin access, but don't require updating code or making a PR Public Websites Scrum team in the Sitewide crew sitewide UX debt Known issues with the user experience
Projects
None yet
Development

No branches or pull requests

4 participants