Skip to content

Commit

Permalink
feat(designer): Adding options to switch between Local Time and UTC f…
Browse files Browse the repository at this point in the history
…or monitoring view (#4775)

* add UTC to monitoring times

* moved changes

* update

* update specs

* fix

* Update snapshots

* see if this works

* remove unnecssary code

* Revert "fix(Designer): Updated HTML Editor to support newline characters (for dynamic content) (#4635)"

This reverts commit f4e1f8b.

* testing if this fixes

* more attempts

* more attempts

* adding unit tests

* readding file and praying it works

* please give me some coverage!

---------

Co-authored-by: Travis Harris <travisharris@microsoft.com>
Co-authored-by: Travis Harris <hartra344@users.noreply.github.com>
  • Loading branch information
3 people committed May 8, 2024
1 parent cbe47f6 commit 1580602
Show file tree
Hide file tree
Showing 29 changed files with 1,814 additions and 339 deletions.
10 changes: 8 additions & 2 deletions Localize/lang/strings.json
Expand Up @@ -816,7 +816,6 @@
"W6FdMh": "Required. The name of the new property.",
"WCASt1": "Describe something in your flow that should be replaced, as well as what should replace it. Add details where possible, including the connector to use and if any content should be included.",
"WGwH45": "Clear",
"WK6hZX": "Select all text in {label}",
"WMX2ig": "What is the concurrency setting of this workflow?",
"WR1K3z": "(UTC+04:00) Astrakhan, Ulyanovsk",
"WS55UF": "Specify the duration in ISO 8601 format",
Expand Down Expand Up @@ -909,6 +908,7 @@
"ZKnJnh": "Secure String",
"ZM1mRy": "Concurrency Control",
"ZME5hh": "Returns the day of month component of a string timestamp",
"ZN050N": "Select all text in ''{label}''",
"ZRdkFN": "Collapse Static Result",
"ZUCTVP": "Paste an action",
"ZUaz3Y": "Shorthand for trigger().outputs.body",
Expand Down Expand Up @@ -1736,7 +1736,6 @@
"_W6FdMh.comment": "Required string parameter for new property name in addProperty function",
"_WCASt1.comment": "Chatbot prompt to replace an action description",
"_WGwH45.comment": "Label to clear editor",
"_WK6hZX.comment": "Accessibility label for a button to select all text in a value box",
"_WMX2ig.comment": "Chatbot suggestion message to get the concurrency setting of the workflow",
"_WR1K3z.comment": "Time zone value ",
"_WS55UF.comment": "description of request options duration setting",
Expand Down Expand Up @@ -1829,6 +1828,7 @@
"_ZKnJnh.comment": "This is an option in a dropdown where users can select type Secure String for their parameter.",
"_ZM1mRy.comment": "title for concurrency setting",
"_ZME5hh.comment": "Label for description of custom dayOfMonth Function",
"_ZN050N.comment": "Accessibility label for a button to select all text in a value box",
"_ZRdkFN.comment": "An accessible label for collapse toggle icon",
"_ZUCTVP.comment": "Text for button to paste an action from clipboard",
"_ZUaz3Y.comment": "Label for description of custom triggerBody Function",
Expand Down Expand Up @@ -1892,6 +1892,7 @@
"_cZXqqf.comment": "Header for the change connection panel",
"_cZv9J0.comment": "Tooltip for the button to reassign actions",
"_ca/QIc.comment": "The title of the error message property within Error in the static result schema",
"_ca7S+o.comment": "Text for local time",
"_ceVB5l.comment": "Label for the description of the custom 'multipartBody' function",
"_cfUHfs.comment": "Label for description of custom dateDifference Function",
"_cgq/+y.comment": "Placehodler text for dropdown",
Expand Down Expand Up @@ -2323,6 +2324,7 @@
"_td5//c.comment": "Collapse tree node",
"_ti5TEd.comment": "Text for cancel button",
"_toWTrl.comment": "Search from file list",
"_tooc6v.comment": "label for switching time format to local time",
"_tqqUHX.comment": "Time zone value ",
"_tsPPWB.comment": "Button text to create workflow from this template",
"_tsmuoF.comment": "Column header for connection display name",
Expand Down Expand Up @@ -2367,6 +2369,7 @@
"_vEBhDX.comment": "Label for description of custom lastIndexOf Function",
"_vF+gWH.comment": "Chatbot query sentence that asks to explain what the workflow does",
"_vLereV.comment": "Required. The collection parameter on which to apply the 'take' function.",
"_vO/I7P.comment": "label for switching time format to UTC",
"_vQcQkU.comment": "Required text parameter to search endsWith function with",
"_vSlNPe.comment": "Delete text",
"_vT0DCP.comment": "Display name for operation outputs",
Expand Down Expand Up @@ -2532,6 +2535,7 @@
"cZXqqf": "Change Connection",
"cZv9J0": "Connection is valid",
"ca/QIc": "Error Message",
"ca7S+o": "Local Time",
"ceVB5l": "Returns the body for a part in a multipart output from an action.",
"cfUHfs": "Returns the difference between two dates as a timespan string",
"cgq/+y": "Please select an identity",
Expand Down Expand Up @@ -2963,6 +2967,7 @@
"td5//c": "Collapse tree node",
"ti5TEd": "Cancel",
"toWTrl": "Search",
"tooc6v": "Switch ''{label}'' to the local time",
"tqqUHX": "(UTC+12:45) Chatham Islands",
"tsPPWB": "Create Workflow",
"tsmuoF": "Display Name",
Expand Down Expand Up @@ -3007,6 +3012,7 @@
"vEBhDX": "Returns the last index of a value within a string (case-insensitive, invariant culture)",
"vF+gWH": "Explain what this flow does",
"vLereV": "Required. The collection from where to take the first Count objects.",
"vO/I7P": "Switch ''{label}'' to the UTC time format",
"vQcQkU": "Required. The value the string may end with.",
"vSlNPe": "Delete",
"vT0DCP": "Outputs",
Expand Down
11 changes: 6 additions & 5 deletions libs/designer-ui/package.json
Expand Up @@ -9,12 +9,12 @@
"@fluentui/theme": "2.6.25",
"@fluentui/utilities": "8.15.0",
"@lexical/html": "0.14.5",
"@lexical/table": "0.14.5",
"@lexical/link": "0.14.5",
"@lexical/list": "0.14.5",
"@lexical/react": "0.14.5",
"@lexical/rich-text": "0.14.5",
"@lexical/selection": "0.14.5",
"@lexical/table": "0.14.5",
"@lexical/utils": "0.14.5",
"@microsoft/logic-apps-shared": "workspace:*",
"@monaco-editor/react": "4.6.0",
Expand All @@ -32,7 +32,8 @@
"reactflow": "11.11.1"
},
"devDependencies": {
"@types/dompurify": "3.0.5"
"@types/dompurify": "3.0.5",
"timezone-mock": "^1.3.6"
},
"engines": {
"node": ">=12"
Expand All @@ -53,10 +54,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"peerDependencies": {
"react": "^16.4.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.4.0 || ^17.0.0 || ^18.0.0",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-query-devtools": "4.36.1"
"@tanstack/react-query-devtools": "4.36.1",
"react": "^16.4.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.4.0 || ^17.0.0 || ^18.0.0"
},
"publishConfig": {
"main": "build/lib/index.cjs",
Expand Down

0 comments on commit 1580602

Please sign in to comment.