microsoft / microsoft/calculator

Converter doesn't automatically flip from & to fields during conversion

Open
#266 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

approved Enhancement Pri: 2
Dominant language
C#
Stars
31.1k
Forks
5.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Converter doesn't easily flip the from & to fields during conversions (Temperature, Volume, Speed etc.)

Steps To Reproduce
Steps to reproduce the behavior:

  1. Launch Calculator
  2. Click on Menu and open the Temperature Converter
  3. It loads Celsius to Fahrenheit
  4. Try to flip the conversion
  5. Change first field from Celsius to Fahrenheit
  6. Change second field from Fahrenheit to Celsius

Expected behavior
It would be nice if the converter could automatically flip the from & to values during conversion. If a Celsius-> Fahrenheit conversion is changed to Fahrenheit -> Fahrenheit conversion then it should be modify it to Fahrenheit -> Celsius similar to how most of these converters work online. In the above steps if the user shouldn't have to perform step #6.

Screenshots

Device and Application Information (please complete the following information):

  • OS Build: 10.0.17763.0
  • Architecture: X64
  • Application Version: 10.1812.10048.0

Additional context
Might also be good to add a flip or exchange button to directly flip the to & from fields.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in Calculator's Temperature Converter using the listed steps, then trace the converter controls for the from and to selections. The work is done when changing one selection automatically exchanges the other selection across the listed converters, with an optional direct flip or exchange control if supported by the existing design.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.