Skip to content

fix: label negative costs as variable cost - #139

Open
coolton-agent wants to merge 1 commit into
hackclub:mainfrom
coolton-agent:fix/negative-cost-label
Open

fix: label negative costs as variable cost#139
coolton-agent wants to merge 1 commit into
hackclub:mainfrom
coolton-agent:fix/negative-cost-label

Conversation

@coolton-agent

Copy link
Copy Markdown

what

show Variable cost instead of a negative dollar amount in the UI.

why

negative prices represent variable-cost models, not a literal charge to display as a negative currency value. zero-cost models already display as Free.

fix

update both model pricing and activity cost formatters to return Variable cost for negative values.

checks

  • targeted Biome check passed
  • typecheck passed
  • repository-wide format check remains blocked by pre-existing formatting issues in drizzle/meta/0016_snapshot.json and drizzle/meta/_journal.json

@itzmetanjim itzmetanjim left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants