Skip to content

Devices on PDF report are in lower case #13664

Description

@wpdarren

Bug Description

This issue was reported on the Performance Benchmarking bug bash.

Due to the API, they display the Visitors by devices data in lowercase. We had to make a change in the dashboard so that they appear in title case. The same issue is occurring on the PDF report. Would be good if we can have them in title case too.

Image

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • In the generated PDF report, the values in the Traffic Overview "Visitors by devices" card render in title case, matching the dashboard card - e.g. "Desktop", "Mobile", "Tablet", not "desktop".
  • Key metric tiles in the PDF whose value is a text label, such as "Top device driving purchases", render that value with the same casing as the equivalent dashboard tile.
  • The values in the other Traffic Overview breakdown cards, "Visitors by channels" and "Visitors by locations", are unchanged, as on the dashboard.

Implementation Brief

Test Coverage

  • Extend PDFMetricTileTable.test.tsx with a case asserting the new primary style reaches the rendered primary label, and that rows render unchanged when it is omitted.
  • Extend the Traffic Overview PDF test (pdf/indexPDF.test.tsx) with a case asserting that only the devices card's rows carry the capitalizing style, while the channels and locations cards do not.
  • Extend PDFMetricTileText.test.tsx with a case asserting the value carries the capitalizing style.

QA Brief

Changelog entry

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module: AnalyticsGoogle Analytics module related issuesP1Medium priorityType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions