feat: Add 30+ currency options for billing and stats display#41
Merged
Conversation
Introduces a new 'currency' field in project configuration, allowing users to specify the ISO 4217 currency code for billing rates and earnings display. Updates CLI commands, configuration handling, and documentation to support currency selection (defaulting to USD), and adds a new internal/currency package for formatting and validating currency codes. Includes comprehensive tests for currency formatting and config integration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
mainbranch of tmpo.Closes #34
Description
This pull request adds support for customizable currency codes in project configuration, allowing users to specify the currency symbol used for billing rates and earnings. The changes affect project setup, display of earnings and hourly rates, configuration file structure, and documentation. The most important updates are grouped below.
Feature: Currency Code Support
currencyfield to the project configuration (Configstruct and.tmporcfiles) to allow users to specify an ISO 4217 currency code for billing display (e.g., USD, EUR, GBP). If not set, it defaults to USD. [1] [2] [3]tmpo init) to prompt for currency code, validate input, and store it in the config. The display of hourly rate and earnings now uses the selected currency symbol. [1] [2] [3] [4]Configuration and API Changes
currencyfield, including a helper method to get the currency or default to USD. [1] [2] [3]Documentation Updates
currencyfield, provide examples for multiple currencies, and update setup instructions to reflect currency support. [1] [2] [3] [4] [5] [6]