Code2Gether-Discord / Code2Gether-Discord/subtrack

Add the option to display whole values instead of showing unnecessary fractions in decimals

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
feature patch
Dominant language
C#
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Background
This is how decimal values are presented in subtrack right now:
$ 10.50
$ 10.00
$ 2.00

Most of the time we are interested in only the whole number and in some countries such as Sweden prices are commonly only in whole numbers. We should make it optional wether the fractional part in the decimal should be displayed.

If the option is on the above costs would be displayed as
$ 10
$ 10
$ 2

### Tips
- The feature https://github.com/Code2Gether-Discord/subtrack/issues/137 has issues regarding creating the settings page and adding options. Use as reference
- When fractions are displayed it would be nice if the fractional part (including the dot ".") would have a smaller font size so that it is less noticeable, same as how amazon does it.
![Discord_6S4dInmeH0](https://github.com/Code2Gether-Discord/subtrack/assets/72318023/cfc9296f-6668-4bd5-add9-228e9e34f2e6)

### Acceptance Criteria
- The option is added to the settings page as a toggle named "Hide Fractions". Default value is off so that fractions are displayed by default
- Index, Monthly, Details, and Upsert page are updated according to wether the setting is on

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.