Skip to content

Update label casing for web data stream controls. #11763

@techanvil

Description

@techanvil

Feature Description

As discussed on Figma, the labels for the web data stream UI controls should be sentence case, rather than title case, to be consistent with other titles and labels.


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

Acceptance criteria

  • The labels for the web data stream dropdown and textfield used on the Analytics setup and settings screens should be "Web data stream".
  • The label for the web data stream name textfield on the Analytics setup and settings screens (shown when creating a new property) should be "Web data stream name".

Implementation Brief

  • Update all Analytics web data stream control labels to sentence case:
    • In assets/js/modules/analytics-4/components/common/WebDataStreamSelect.js, change the label prop for both the <Select> (properties list) and fallback <TextField> from 'Web Data Stream' to 'Web data stream'.
    • In assets/js/modules/analytics-4/components/common/WebDataStreamField.js (account creation flow), switch the label passed to the <TextField> to the same sentence-case string so the setup UI matches.
    • In assets/js/modules/analytics-4/components/common/WebDataStreamNameInput.js, rename the label to 'Web data stream name'.
  • Find any remaining hard-coded 'Web Data Stream' strings (search the repo) that represent UI labels for these controls and update them to the new casing.

Test Coverage

  • Update existing Jest tests/snapshots that assert on the label text (WebDataStreamSelect, WebDataStreamNameInput, SetupForm, ModuleSetup snapshots, etc.) so they expect the sentence-case strings. No new tests needed - just updating the strings in existing checks

QA Brief

  • Ensure the "Web data stream" label has the correct casing throughout the dashboard
    • Analytics setup during initial setup flow, with and without setupFlowRefresh
    • Analytics setup outside initial setup flow
    • Analytics account creation flow
    • Analytics property/web data stream creation flow
    • Debug info in Site Health

Changelog entry

  • Update casing of web data stream labels for consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0High priorityTeam MIssues for Squad 2Type: EnhancementImprovement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions