Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Draft: chore: add a new utility class `CategoryStringFormatter` to handle category string formatting

Description

This commit ensures consistent capitalization of categories throughout the application (inside category list and app details screens).

Screenshots

Click to expand

Screenshot_20240822_165856 Screenshot_20240822_165928

Screenshot_20240822_171536 Screenshot_20240822_170720

Technical details

A CategoryStringFormatter utility class has been added to capitalize categories such as "health and fitness" to "Health and Fitness" etc.

Tests

Unit tests are added to check the formatting. Manual tests are also performed.

Issues

e/backlog#6456

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Summary by CodeRabbit

  • New Features

    • Introduced a utility for formatting category strings, improving readability and presentation.
    • Added new constants for game categories to streamline category title management.
  • Enhancements

    • Updated category title formatting logic for better consistency and branding alignment.
    • Refactored logic for updating category titles, improving code clarity and maintainability.
  • Bug Fixes

    • Corrected capitalization of category titles for consistency.
  • Documentation

    • Updated copyright information in relevant files.
Edited by CodeRabbitAI

Merge request reports

Loading