Recent Commits to calculator

  • 20/11/2025 6:27

    use the production version of storebroker (#2409)

    use the production version of storebroker (#2409)
  • 18/11/2025 1:50

    reject outdated data from settings (#2407)

    reject outdated data from settings (#2407)
  • 21/10/2025 2:21

    Layout corrections for RTL language environments, including flipped G…

    Layout corrections for RTL language environments, including flipped Grapher (#2391)
    
    * Added FlowDirection override on Grapher
    
    * Fixed GraphNumPad layout to ensure LTR FlowDirection
    
    * Fixed EquationIInputArea to still show variables on the left hand side and value on the right
    
    * Reverted localization changes
    
    * Fixed encoding on Resources.resw
    
    * Fixed operator panel scroll button icon directions in RTL
    
    * Adjusted RightToLeft layout for operators panels
    
    * Revised GraphNumPad to reduce layers of Grids
  • 20/10/2025 2:45

    change vm image (#2397)

    change vm image (#2397)
  • 17/10/2025 4:20

    fix azure pipeline (#2395)

    fix azure pipeline (#2395)
  • 17/10/2025 0:39

    Stop building ARM32 (#2394)

    Stop building ARM32 (#2394)
    
    * remove the ARM platform
    
    * remove the ARM configs
  • 16/10/2025 9:02

    Upgrade win-sdk to 24h2 (#2393)

    Upgrade win-sdk to 24h2 (#2393)
    
    * upgrade win-sdk to 24h2
    
    * upgrade upstream deps
  • 19/09/2025 4:25

    fix mismatched types (#2383)

    fix mismatched types (#2383)
  • 02/09/2025 22:36

    Increment minor version from 2508 to 2509 (#2378)

    Increment minor version from 2508 to 2509 (#2378)
  • 27/08/2025 12:43

    Update minor version from 2506 to 2508 (#2377)

    Update minor version from 2506 to 2508 (#2377)
  • 20/08/2025 6:41

    update internal package version to 119 (#2373)

    update internal package version to 119 (#2373)
  • 20/08/2025 2:44

    upgrade winsdk to 22h2 (#2372)

    upgrade winsdk to 22h2 (#2372)
  • 09/07/2025 5:39

    Migrate ApplicationViewModel to C# (#2353)

    Migrate ApplicationViewModel to C# (#2353)
    
    * migrate ApplicationViewModel to C#
    
    * fix aot mode
    
    * save ctor
  • 08/07/2025 0:15

    use correct image (#2352)

    use correct image (#2352)
  • 04/07/2025 3:45

    Adding support for Tsubo, a Japanese unit of floorspace for Japan and…

    Adding support for Tsubo, a Japanese unit of floorspace for Japan and Taiwan (#2101)
    Tags:
  • 04/07/2025 3:14

    fix strings for Turkish (#2351)

    fix strings for Turkish (#2351)
  • 02/07/2025 23:31

    replace the manual prefast with policheck (#2350)

    replace the manual prefast with policheck (#2350)
  • 02/07/2025 1:42

    Fixes issue #2326 (#2327)

    Fixes issue #2326 (#2327)
    
    * Fixes issue #2326
    
    * Fixed an additional "decimal place" defect, in scope of issue #2326
  • 24/06/2025 5:49

    Update minor version to 2506 (#2339)

    Update minor version to 2506 (#2339)
  • 24/06/2025 5:48

    Comment out unused variable (#2347)

    Comment out unused variable (#2347)
    
    With the 17.14 release of Visual Studio 2022, I see the following error:
    ```
    ...\src\GraphingImpl\Mocks\Graph.h(47,47): warning C4100: 'variableName': unreferenced parameter [...\src\GraphingImpl\GraphingImpl.vcxproj
    ...
    ...\src\GraphingImpl\Mocks\Graph.h(47,47): error C2220: the following warning is treated as an error [...\src\GraphingImpl\GraphingImpl.vcxproj
    ```
    Comment out the unused variable to resolve this.
  • 10/06/2025 4:18

    update loc res (#2342)

    update loc res (#2342)
  • 04/06/2025 5:21

    Mark release-store as a release job (#2340)

    Mark release-store as a release job (#2340)
  • 03/06/2025 22:21

    Run PREFast (#2338)

    Run  PREFast (#2338)
    
    * prefast
    
    * fix comment
  • 30/05/2025 5:54

    Bump Aero Upload Task version 1.x -> 2.x (#2336)

    Bump Aero Upload Task version 1.x -> 2.x (#2336)
  • 17/04/2025 23:45

    Update minor version to 2503 (#2309)

    Update minor version to 2503 (#2309)
  • 17/03/2025 4:09

    Update azure-pipelines.loc.yaml (#2314)

    Update azure-pipelines.loc.yaml (#2314)
  • 21/02/2025 5:53

    Work around a currency service defect for localization (#2302)

    Work around a currency service defect for localization (#2302)
    
    * always use `lang-region` for localization
    
    * language code may have a single segment
  • 19/02/2025 4:18

    Bugfix: Division Bug in Programmer Dec Mode (#2300)

    Bugfix: Division Bug in Programmer Dec Mode (#2300)
    
    * Update intrat function
    
    added a programmer mode test case
    
    * Added three more test cases
    
    ---------
    
    Co-authored-by: Ishuah Kariuki <ikariuki@microsoft.com>
  • 19/02/2025 3:58

    prefast and LKG compiler (#2301)

    prefast and LKG compiler (#2301)
  • 19/02/2025 2:03

    Switch to PME signing service (#2298)

    Switch to PME signing service (#2298)
    
    * update package version
    
    * temp
    
    * service connection
    
    * reset
  • 17/02/2025 22:51

    Enable and configure TSA (#2297)

    Enable and configure TSA (#2297)
    
    * test
    
    * read config from variable
    
    * fix
    
    * fix
    
    * add prefix
    
    * reset some
    
    * reset version
  • 13/02/2025 23:38

    Auto-generated baselines by 1ES Pipeline Templates (#2296)

    Auto-generated baselines by 1ES Pipeline Templates (#2296)
    
    * Updated for https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build?definitionId=141517 by using baselines generated in https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build/results?buildId=107506753
    
    * Updated for https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build?definitionId=36523 by using baselines generated in https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build/results?buildId=111679366
    
    * Updated for https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build?definitionId=141517 by using baselines generated in https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_build/results?buildId=116208330
    
    ---------
    
    Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
  • 13/02/2025 5:30

    Change copyright year to 2025 (#2289)

    Change copyright year to 2025 (#2289)
    
    Co-authored-by: ghost <ghost@users.noreply.github.com>
  • 10/02/2025 1:43

    Update URI for license terms (#2293)

    Update URI for license terms (#2293)
  • 06/02/2025 13:31

    Update Main minor version to 2502 (#2287)

    Update Main minor version to 2502 (#2287)
  • 03/02/2025 16:56

    Update minor version to 2501 (#2286)

    Update minor version to 2501 (#2286)
  • 23/01/2025 9:00

    Upgrade artifact version (#2282)

    Upgrade artifact version (#2282)
  • 23/01/2025 4:02

    Update const to align with the internal repo (#2281)

    Update const to align with the internal repo (#2281)
    
    * Update to const function to align with the internal repo
    
    * Remove redundant const
  • 23/01/2025 2:38

    Update vulnerable transitive packages (#2280)

    Update vulnerable transitive packages (#2280)
  • 21/01/2025 4:44

    Set /W4 and treat warnings as errors (#2279)

    Set /W4 and treat warnings as errors (#2279)
  • 03/12/2024 11:32

    Enable reflection for json serialization (#2261)

    Enable reflection for json serialization (#2261)
  • 29/11/2024 3:57

    upgrade artifact version (#2259)

    upgrade artifact version (#2259)
  • 28/11/2024 7:57

    replace mocked awaitable with std future (#2258)

    replace mocked awaitable with std future (#2258)
  • 28/11/2024 5:12

    Decouple with a mocked service (#2256)

    Decouple with a mocked service (#2256)
    
    * refactor
    
    * build succeed
    
    * mock web failures
    
    * mock awaitable
    
    * resolve comment
    
    * improve scope guard
    
    * resolve a comment
  • 28/11/2024 4:16

    update esrp (#2257)

    update esrp (#2257)
  • 21/11/2024 13:54

    Update minor version in Main to 2412 (#2251)

    Update minor version in Main to 2412 (#2251)
  • 18/11/2024 7:34

    Resolve an existing defect when restoring from snapshots (#2249)

    Resolve an existing defect when restoring from snapshots (#2249)
    
    * fix bug
    
    * fix a comment
  • 07/11/2024 6:04

    Improve the Recall support (#2245)

    Improve the Recall support (#2245)
    
    * stash changes
    
    * stash changes
    
    * pass build
    
    * set snapshot
    
    * stash changes
    
    * update launch utils
    
    * stash changes
    
    * stash changes
    
    * renaming
    
    * DeflateUtils
    
    * stash changes
    
    * deserialization
    
    * restore session
    
    * connect ui
    
    * handle errors
    
    * rename CalcManagerHistoryToken
    
    * handle optional props
    
    * fix optional props
    
    * ensure error state
    
    * resolve a comment
    
    * resolve a comment
  • 05/11/2024 13:43

    Update Main to 2411 minor version (#2247)

    Update Main to 2411 minor version (#2247)
  • 23/09/2024 23:03

    Add Angstroms Length-Converter option (#2229)

    Add Angstroms Length-Converter option (#2229)
    
    * Add Length_Angstrom as a new unit constant
    
    Adds Angstrom as a length unit to the list of unit constants in UnitConverterDataConstants.h file.
    
    * Add Angstrom unit to Length units in UnitConverterDataLoader.cpp
    
    Adds the Angstrom unit of length to the list of length units in UnitConverterDataLoader.cpp and its conversion data is added to the GetConversionData() function.
    
    It is assigned the value of 15.
    
    * Add Angstrom as a Unit of Length
    
    Adds new data entries to Resources.resw for unit abbreviation of Angstrom, and the unit name for Angstrom.
    
    * Add conversion data "Meters-Angstroms" in Test.resw
    
    Adds new data entry for "Meters-Angstroms" to Test.resw file
    
    * Changes order of units of Length to add Angstroms
    
    This commit changes the order of the units of length so that Angstrom is before Nanometers.
    Increments orders of all other units by 1 and sets order of Angstroms to 1.
    
    * Fixes 'TestStandardUnitConverterAndDateViewModels' test case failing
    
    This commit fixes the "TestStandardUnitConverterAndDateViewModels" failing by introducing a new resource entry to the Test.resw file.
    
    These changes needed to be made because adding the new unit changed the order of units, hence the test case expected a different value, since it was converting other units.
    Tags:
  • 01/07/2024 9:41

    Improve the "about equal to" for Data Converter (#2170)

    Improve the "about equal to" for Data Converter  (#2170)
    
    * updated dvd size from 5046 MB to 4700 MB
    
    * Update Updated size for CD-R to 700 Megabytes
    Tags:
  • 28/05/2024 5:08

    Rehydrate for Recall (#2176)

    Rehydrate for Recall (#2176)
    
    * Merged PR 10748585: Recall | Connect UserActivity to support restoring from snapshots
    
    ## What
    Thanks to @<Brendan Elliott ⌨>  for his PoC !10573092
    This PR is going to use `UserActivity` APIs to connect the app to Recall so that we can take a snapshot when asked and then retore our states from the snapshot later.
    
    ## How
    - Add a new type `SnapshotLaunchArguments` to identify a protocol launch requested by Recall.
    - Add an extension `LaunchExtensions` as helper to retrieve key information from fundamental types.
    - Refactor `App::OnActivated()` and `MainPage::OnNavigatedTo()` to handle different protocols properly.
    - Create or parse `UserActivity` in `MainPage` in the way like what the PoC is doing.
    - Improve the coding style a bit for `MainPage`.
    
    ## Note
    The serialization work and restoring from JSON is going to be done in a separate PR.
    
    ## Testing
    Manually tested.
    Some typical test cases:
    - Launch the app from *Start menu*
    - Launch the app from *Task bar*
    - Launch the app from *Command line*
    - Launch with the protocol for Recall
    - Launch with the protocol that is injected with evil data.
    
    Related work items: #50854714
    
    * Merged PR 10741448: [Recall] Snapshot saving and restoring
    
    ####What
    According to PM [Spec](https://microsoft.sharepoint-df.com/:w:/t/PAXEssentialExperiences421/EcpP5tGRtFdIsRrP84ueRfUBjb6tfayxWtF9ujvJuNx6Dg?e=AeRzVf), saving and restoring Calculator snapshot when required.
    
    The current snapshot supports to:
    - Restore the calculator mode.
    - Restore the current calculation (display value and expression).
    - Restore the history of calculations (either in Standard mode or Scientific mode) shown at the time the snapshot was taken.
    - Restore the current calculation error state, if applicable.
    
    ####How
    - Added `SnapshotHelper` to help save and restore snapshots.
    - Besides the existing snapshot information from view models, added an extra field `SnapshotVersion` in `ApplicationSnapshot` for backward compatibility.
    
    #### Note
    Unit tests will be added in a separate PR.
    
    Related work items: #50701758
    
    * Merged PR 10772614: Recall | Update the LaunchURI design
    
    ## What
    Since `System.Uri` already has the `Segment` property which contains the parsed path blocks, Query in Uri looks too heavy and intrusive in implementation to retrieve the activity id.
    
    ## Changes
    Changed the launch URI from something like `ms-calculator:///snapshot?activityId=<a guid>` to `ms-calculator:snapshots/<a guid>`
    
    Related work items: #50854714
    
    * Merged PR 10778666: Recall | Show error dialog if launching from snapshot has failed
    
    ## What
    Per Figma design, we can show an error dialog with messages for the failures happens during snapshot launch.
    
    ## Notes
    - Fixed a crash about taking a snapshot when Calculator hasn't initialized a standard calculator.
    - Simplified the restore path.
    
    ## Screenshot
    ![image.png](https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_apis/git/repositories/6255259e-4ead-4d8d-b165-55eeacc5ca48/pullRequests/10778666/attachments/image.png)
    
    Related work items: #50858262
    
    * Merged PR 10790341: [Recall] Update calculator engine with snapshot for further calculations
    
    ####What
    When restoring from snapshot, we need to set calculator engine properly to make further calculations correct.
    
    ####How
    Update calculator engine by a serial of corresponding commands from snapshot.
    
    To get the commands for the display area when saving snapshot,
    1. If the expression is not from history and the primary display is the result of the expression, `DisplayCommands` of `StandardCalculatorSnapshot` will be empty, and we will use the commands from `ExpressionDisplay` for restoring in the future.
    2. If the expression is not from history and the primary display is not the result of the expression, `DisplayCommands` of `StandardCalculatorSnapshot` will be the commands from the history collector in addition to the operand command in the primary display, and it will be used for restoring in the future.
    3. If the expression and primary display are from history, `DisplayCommands` will be incomplete with the operand command in the primary display missing as by current design of history, and the commands from `ExpressionDisplay` will be used for restoring in the future.
    
    Related work items: #51002745
    
    * Merged PR 10802927: Recall | Add threat model
    
    ## What
    The support for Recall introduced a URI activation process allowing the Recall app to launch Calculator with desired snapshot metadata. This led to a potential security problem, and we need to address it by providing justifications.
    
    Threat model is a well-known practice among Inbox Apps. After offline discussion, we decide to add diagrams for this Recall feature to prepare for the security review.
    
    ## Diagram preview
    ![image.png](https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_apis/git/repositories/6255259e-4ead-4d8d-b165-55eeacc5ca48/pullRequests/10802927/attachments/image.png)
    
    ![image (2).png](https://dev.azure.com/microsoft/d1a24475-535d-4c83-988a-9491e6dbc858/_apis/git/repositories/6255259e-4ead-4d8d-b165-55eeacc5ca48/pullRequests/10802927/attachments/image%20%282%29.png)
    
    Related work items: #51165486
    
    * Merged PR 10794979: Add Recall Telemetry
    
    **Snapshot**
    EventName: `RecallSnapshot`
    Payload example:` { "CalcMode": "Standard"}`
    **_Fires when a snapshot (UserActivityRequested) is triggered_**
    
    **Restore**
    EventName: `RecallRestore`
    Payload example:`{ "CalcMode": "Standard"}`
    **_Fires when launching by snapshot (recall restore)**
    
    **Error**
    EventName: `Exception`
    Payload example: `{ "CalcMode": "Standard", "FunctionName" : "MainPage::ShowSnapshotLaunchErrorAsync", "Message": "SnapshotRestoreError" }`
    **_Fires when launching by snapshot failed_**
    
    Related work items: #51114542
    
    ---------
    
    Co-authored-by: Tian Liao ☕ <tilia@microsoft.com>
    Co-authored-by: Jian Zhang <zjian@microsoft.com>
    Tags:
  • 01/08/2023 8:44

    Workaround for Simplified Chinese localization issue of currency API …

    Workaround for Simplified Chinese localization issue of currency API (#2031)
    
    * Workaround for Simplified Chinese localization issue of currency API
    
    * Update fix
    Tags:

Log in