Skip to content

Migrate to CategorizedFormatter and Remove Legacy UnitsFormatter #6900

@younies

Description

@younies

Overview

This issue tracks the migration from the legacy UnitsFormatter to the new CategorizedFormatter architecture, which provides better type safety, improved data organization, and more efficient data loading patterns.

Tasks

1. Migrate Duration Formatter

Priority: High

  • Update all the code that using DurationFormatter in components/experimental/src/duration/formatter.rs to use CategorizedFormatter<Duration> instead of individual UnitsFormatter instances
  • Replace DurationUnitFormatter struct that contains 10 separate UnitsFormatter instances with categorized approach
  • Update all duration unit creation (year, month, week, day, hour, minute, second, millisecond, microsecond, nanosecond) to use Duration category
  • Update tests in components/experimental/src/duration/format.rs to verify functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions