Граф коммитов

857 Коммитов

Автор SHA1 Сообщение Дата
Tian L. 2b0521eb59
Resolve an existing defect when restoring from snapshots (#2249)
* fix bug

* fix a comment
2024-11-18 18:34:12 +08:00
Tian L. 80015d227f
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
2024-11-07 17:04:01 +08:00
Cory Volk 9d7d3a6b79
Update Main to 2411 minor version (#2247) 2024-11-05 08:43:00 -08:00
Cory Volk bafc18802b
Update Main to 2410 minor version (#2236) 2024-10-08 10:09:13 +08:00
philliprobinson 6ece807db8
Update App.xaml.cs (#2230)
Implemented guard clause to improve readability of OnActivated
2024-09-27 13:40:36 +08:00
hanzhang54 04650948fb
Stop showing error message for snapshot launch failure (#2235)
* Stop showing error message for snapshot launch failure

* Remove
2024-09-24 14:13:25 +08:00
DevBoiAgru ff16a72271
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.
2024-09-24 10:03:47 +08:00
Cory Volk 88c22ca81e
Update Main's minor version to 2409 (#2226) 2024-09-04 08:25:36 -07:00
Tian L. b30ece5c03
eng: Remove PFXs from codebase (#2219)
* Squashed commit of the following:

commit a7d403386e3df430edf67d89ca23f81313022d2d
Author: Tian Liao <tilia@microsoft.com>
Date:   Mon Aug 12 16:58:30 2024 +0800

    remove pfx from ignore list

commit 26ffa46d9a92dcbadc9d9d471715fdec10c6f013
Author: Tian Liao <tilia@microsoft.com>
Date:   Mon Aug 12 16:58:07 2024 +0800

    Remove PFXs

* fix yaml

* fix gh action

* fix gh action
2024-08-13 09:52:35 +08:00
Tian L. 3782412791
bump transitive dependency's version (#2218) 2024-08-12 13:43:03 +08:00
Cory Volk 3f83e4c301
Update Main branch minor version to 2408 (#2213) 2024-08-01 08:49:07 -07:00
Cory Volk 94dc7bfa66
Update azure-pipelines.release.yaml (#2204) 2024-07-10 18:00:20 -07:00
Tian L 1f4b4dfe51
Update AeroUpload with a federated identity (#2202) 2024-07-04 13:37:26 +08:00
zxzxxzxhk 41a3fa07de
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
2024-07-01 20:41:11 +08:00
Tiramisu d65100005c
Higher quality README screenshots (#2172)
* Higher quality, transparent screenshots

* Adjust for HQ screenshots

This commit adjusts the calculator screenshot to be smaller horizontally

---------

Co-authored-by: pikiwedia <165537498+wikiwedia@users.noreply.github.com>
2024-06-24 13:52:00 +08:00
Tian L 3e1f13dbbe
update ci badge (#2196) 2024-06-24 13:49:49 +08:00
Tian L 3c583676fb
eng: New CI pipeline with GitHub Action (#2195)
* init ci action

* new action
2024-06-21 12:42:03 +08:00
oneonezhang c1448db9d3
Use authentication with FC for localization pipeline (#2192)
* use fc

* only create patch on main
2024-06-19 15:56:31 +08:00
oneonezhang 82b8ffa4d7
update (#2189) 2024-06-17 21:27:23 +08:00
oneonezhang 1feb376108
Use managed identity for ESRP code signing task (#2185)
* draft: update esrp

* variable

* update
2024-06-12 14:06:40 +08:00
hanzhang54 d9691038d8
Fix exception when setting content to clipboard (#2188)
* Fix exception when setting content to clipboard

* Update
2024-06-11 20:01:51 +08:00
hanzhang54 f3d8e7588c
Update localized strings 2024-06-04 (#2181) 2024-06-05 13:15:24 +08:00
Cory Volk 48ecaa4f3a
Update minor version to 2406 (#2180) 2024-06-04 09:04:50 -07:00
oneonezhang 7315f364b9
Migrate StoreBroker tasks to SN+I authentication (#2179)
* update

* reset
2024-05-31 23:43:12 +08:00
hanzhang54 b0f1531eeb
Update minor version to 2405 (#2177) 2024-05-28 16:18:48 +08:00
hanzhang54 90af5adcd2
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>
2024-05-28 16:08:27 +08:00
Tian L e0a17f43b0
eng: Add publish control into the release pipeline (#2167)
* add publish control

* use test version

* update display name

* revert the test version
2024-04-29 17:17:07 +08:00
Tian L 10df81d11c
Resize on the first launch (#2165) 2024-04-28 13:48:53 +08:00
oneonezhang 80fafa0946
Migrate Loc pipelines to TDBuildAzureDevOpsTask V2 (#2163)
* use v2

* fix warning

* fix
2024-04-28 10:54:11 +08:00
Tian L 46c2857c34
Multi-instance (#2161)
* launch multi instances

* trace error

* simplify the graphing test

* remove an assertion

* simplify some code

* remove some trivial code.

* fix runtime cast
2024-04-25 08:57:05 +08:00
Tian L 1bc539ffbb
Fix #2146: SWIPE DELETE FUNCTION FREEZES APP (#2157)
* fix stackoverflow

* space
2024-04-11 15:34:25 +09:00
Tian L 6ee1eb9e2c
Fix: heap corruption in the Graphing mode (#2152)
* Run render pass asynchronously on UI thread

* remove unused fields

* async for SetVariable

* resolve comments
2024-04-09 15:17:15 +08:00
Cory Volk 22d758e02c
Update minor version in main to 2404 (#2154) 2024-04-08 09:26:33 -07:00
hanzhang54 2571d38a2e
Update localized strings 2024-03-29 (#2149) 2024-03-29 14:46:16 +08:00
hanzhang54 05ee7a012c
Add hint about MathRichEditBox's context menu for narrator (#2147)
* Add hint about MathRichEditBox's context menu for narrator

* Update resource string

* Update resource string
2024-03-26 14:20:51 +08:00
Tian L 15cd5bc5f4
Setup SBOM signing for VPack (#2133)
* setup SBOM signing for VPack

* yield output

* try get variable properly

* rename variable

* cap the name of output variable

* ready for review
2024-03-18 12:58:55 +09:00
Cory Volk c3ae2367ca
updating minor version to 2403 (#2125) 2024-03-01 09:11:20 -08:00
Tian L b5e8b207f7
bump minor version to 2401 (#2117) 2024-02-05 12:15:05 -08:00
Tian L f69f74b59c
Fix: Narrator doesn't announce "There's no history yet" (#2116)
* provide UIA names properly

* fix ui testing
2024-02-01 18:40:22 +08:00
hanzhang54 c4cb05fe40
Fix foreground resource of operator panel button in high contrast theme (#2110)
* Fix foreground resource of operator panel button in high contrast theme

* Update fix
2024-01-23 10:47:49 +08:00
hanzhang54 e7d3b3b3ac
Fix background of controls with focus in Date calculation in high contrast theme (#2109)
* Fix option ComboBox resources

* Fix background of CalendarDatePicker in focus
2024-01-22 16:49:20 +08:00
hanzhang54 6f947d5f7e
Fix History/Memory tab item style in high contrast theme (#2107) 2024-01-19 16:38:34 +08:00
Cory Volk 1e7996dfe8
Updating main minor version to 2312 (#2103)
Co-authored-by: Tian Liao <tilia@microsoft.com>
2024-01-10 01:38:51 +08:00
Tian L 1eea5e2b9c
upgrade ui test to dotnet8 (#2104) 2024-01-08 18:32:58 +08:00
hanzhang54 3b71d7bd1a
Update localized strings 2023-12-05 (#2095) 2023-12-05 22:24:46 +08:00
hanzhang54 48b8dc141e
Update Settings Page (#2094)
* Fix monochrome image of About expander in Settings page

* Update style

* Remove resource

* Remove unused style
2023-12-05 20:20:21 +08:00
Niels Laute c2c4795cee
Adding new Settings UX (#2049)
* Revert "Revert PR#1964 (#2032)"

This reverts commit fbc6598770.

* Updating namespaces

* Using Uwp package and loc fix
2023-12-04 20:18:32 +08:00
Tian L eb0324f1a0
Update minor version to 2311 (#2085) 2023-11-08 12:44:32 +08:00
Tian L a5cee49253
eng: migrate pipelines to 1ES PT (#2080)
* onboard 1ES PT

* revert the todo item

* resolve comments

* add back the nuget security analysis for OSSBuild
2023-10-27 15:25:40 +08:00
Ʋ 246138621a
Implement Nibble Data-Converter Option (#2056)
* Implement Nibble > Update UnitConverterDataLoader.cpp

Added Nibble Unit Data into the UnitConverterDataLoader.cpp file.

* Implement Nibble > Update UnitConverterDataConstants.h

* Update Test.resw > Adding Test

* Update Resources.resw

* Update Resources.resw > Nibble

* Update Resources.resw > Fixed Typo

* Update Resources.resw > Fixed Typo

* Update UnitConverterDataConstants.h

* Update Resources.resw

* Update Resources.resw

* revert Resources GB

* Update UnitConverterDataLoader.cpp ~ set Nibble to right spot.
2023-10-19 12:56:46 +08:00