department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

508 Spike – Audit FE codebase for all accordion components #10380

Closed wesrowe closed 2 years ago

wesrowe commented 2 years ago

Description

Discovery = https://github.com/department-of-veterans-affairs/va.gov-cms/issues/10136

Related/companion issue = CMS-side audit for accordions is ticketed #10486

Assuming that the latest version of the Accordion design system component can be passed a parameter that selects its header level...

Search the PW codebase (across repos) to find the instances/templates that use the Accordion component.

In vets-website, there are only 20-25 files using the va-accordion component, and a similar number in content-build, which would make auditing header level and adjusting manually a manageable task.

Acceptance Criteria

CMS Team

Please check the team(s) that will do this work.

jilladams commented 2 years ago

I asked re: a CMS content audit of accordions, https://dsva.slack.com/archives/CT4GZBM8F/p1661364422311699?thread_ts=1661354422.964899&cid=CT4GZBM8F

per Swirt he concurred we need a code audit, so this should represent code level check:

[Accordions are] a little more complicated as accordions I think are used in multiple types. So it may be a little more challenging to find them all. Also I think some only exist on the FE.

A question for the engineer who picks this up is probably: will our FE code audit cover all cases of accordions coming through the CMS? And what level of confidence do we have in that answer?

jtmst commented 2 years ago

Accordion headers audit

Summary: In total, I've found 7 examples of the va-accordion component using incorrect header levels. 4 in vets-website on various react components, and 3 in content-build on various liquid templates. Some instances can be resolved by passing in the appropriate header level as props, and others will require some conditional logic to be added.

Vets Website:

Coronavirus vaccination widget

Coronavirus info pages

Healthcare apply widget

How to pay detail FAQ

Connected Apps FAQ

Manage debt page (CMS)

How to pay

Virtual Agent FAQ

Content Build

Facility Health Service

Vet Centers Services

Campaign Landing Page

FAQ Multiple template

Healthcare Local Facility

Landing page template

Vet Center

Health Service

Collapsable Panel

QA Collapsable Panel