Skip to content

Conversation

@dashed
Copy link
Member

@dashed dashed commented Nov 25, 2025

Closes https://linear.app/getsentry/issue/BIL-1811/stack-1-add-formatting-configuration-to-data-category-info

Add DataCategoryFormattingInfo interface and formatting property to all data categories to centralize category-specific formatting logic.

This is the foundation for replacing scattered helper functions like isByteCategory() and isContinuousProfiling() with declarative config.

Categories are now typed with:

  • unitType: 'bytes' | 'durationHours' | 'count'
  • reservedMultiplier: conversion factor for reserved values
  • bigNumUnit: 0 (numbers) or 1 (kiloBytes)
  • priceFormatting: min/max integer digits
  • projectedAbbreviated: whether to abbreviate projected values

Add DataCategoryFormattingInfo interface and formatting property to all
data categories to centralize category-specific formatting logic.

This is the foundation for replacing scattered helper functions like
isByteCategory() and isContinuousProfiling() with declarative config.

Categories are now typed with:
- unitType: 'bytes' | 'durationHours' | 'count'
- reservedMultiplier: conversion factor for reserved values
- bigNumUnit: 0 (numbers) or 1 (kiloBytes)
- priceFormatting: min/max integer digits
- projectedAbbreviated: whether to abbreviate projected values

BIL-952
@dashed dashed requested a review from a team November 25, 2025 22:10
@dashed dashed self-assigned this Nov 25, 2025
@linear
Copy link

linear bot commented Nov 25, 2025

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

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants