Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add "click-to-define" glossary definitions to harvester UI #5051

Open
1 task
rshewitt opened this issue Jan 29, 2025 · 0 comments
Open
1 task

add "click-to-define" glossary definitions to harvester UI #5051

rshewitt opened this issue Jan 29, 2025 · 0 comments

Comments

@rshewitt
Copy link
Contributor

rshewitt commented Jan 29, 2025

User Story

In order to better provide definitions of terms in the harvester app, datagov wants glossary terms within the app pages to be clickable and lead to the definition in the glossary.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN a defined term in the glossary
    WHEN that term is present on the page and clicked
    THEN the user is presented the definition of the term in the glossary

Background

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • replicate what's on resources
  • relavant code
  • may need to add munging prior to regex match ( e.g. "records_with_ckan_id: ", what's on the page, doesn't match its corresponding regex /(\bRecords With CKAN ID\b)(?![^<]*>|[^<>]*<\/)/i, what's on the glossary.
  • can also just change what's on the page instead
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: 📥 Queue
Development

No branches or pull requests

2 participants