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

148 Коммитов

Автор SHA1 Сообщение Дата
Jane Chu 3e26e4046a
Fixed an issue where the React Form would error when recieving a custom message (#183)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
Custom messages cause the Form to error due to a previous refactor, this has been fixed in this change which should not look at dataDictionary or any other data structures internals unless the message is one known to contain those.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2022-01-13 16:51:31 -08:00
Jane Chu f46a5b1287
Fix the redo shortcut keys and correct the next targeted history action (#182)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This pull request fixes an issue where the key was not capitalized, which it has to be because the special key shift is used. This also fixes an issue where the incorrect history index was used to fire the next message.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2022-01-13 14:11:46 -08:00
FAST DevOps adfbdb7a3b applying package updates 2022-01-13 07:07:24 +00:00
Jane Chu a55ec68bdb
Ensure that null messages are not sent (#181)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This update ensures that all messages sent back are either outgoing messages or null. This does not include tests as the strict null check should be enabled in the tsconfig, but that is not part of this task.

Another change in this PR is the removal of returning of IDs from the history function, this is because they are never assigned or used.

To better track navigation updates to determine how well shortcuts are working, a small check and indicator has been added to the shortcuts manual testing page.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- More robust testing of the shortcuts to ensure all use cases are covered.
2022-01-12 15:32:05 -08:00
Jane Chu a319b0e733
Allow multiple outgoing messages to be sent (#180)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change makes it so that all outgoing messages are an array of messages. This will allow for a single message update to create multiple messages that are then sent out. As this is dealt with internally, there are no breaking changes.

This change also adds a manual testing section for the new undo/redo alpha released shortcuts.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->

Resolves #179

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
This should now enable, in the manual testing app, seeing "delete" shortcut action followed by "undo".

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- More robust testing and implementation work is needed to ensure previous and next (undo/redo) maneuvering through the history stack does not cause errors to throw
2022-01-12 13:29:25 -08:00
FAST DevOps 6bf35f13b4 applying package updates 2022-01-09 07:08:26 +00:00
Jane Chu 39b05deac9
Added undo/redo alpha released shortcuts (#178)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change adds undo/redo shortcuts as alpha released shortcuts.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Closes #158

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
Requires merging of #177 to pass local testing.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2022-01-07 13:48:12 -08:00
Jane Chu 72f820baeb
Added history messages to handle moving through the history stack (#177)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change allows messages to be sent to move forward and backwards through the history stack.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Initial work on #158

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
Complete a PR for undo/redo shortcuts
2022-01-06 14:04:20 -08:00
FAST DevOps dced069405 applying package updates 2021-12-15 07:09:06 +00:00
Jane Chu c0ea89eeb4
Remove redundant message types (#170)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change removes redundant `MessageSystemType` messages. This should simplify the message system interfaces as they are now always sending state data per updates from https://github.com/microsoft/fast-tooling/pull/167.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Closes #168

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- #158
2021-12-14 17:14:32 -08:00
Jane Chu ce385ade30
Update history to use a previous and next property that will be triggered when moving through the stack (#169)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This work is necessary foundational work for #158 where the undo and redo will be moving through the history stack.

This changes the history interface, so far unused, to include a `next` and `previous` properties which will trigger depending on the direction that history is moving in the stack.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- Simplify some deprecated message system types #168 
- Create undo and redo shortcuts #158
2021-12-14 15:44:39 -08:00
FAST DevOps a4056a72a2 applying package updates 2021-12-12 07:08:23 +00:00
Jane Chu 3f9f1675cc
Outgoing message simplification (#167)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This pull request includes the previously reviewed work:
- #161 
- #165
- #166

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
These changes require a review and sign off as they are going into the `main` branch.

Co-authored-by: William Wagner <44823142+williamw2@users.noreply.github.com>
2021-12-10 14:50:08 -08:00
William Wagner d125418e8d
Updating component CSS class names and attributes to comply with style guide (#164)
* Bring CSS class names and attributes into style guide compliance

* Change files

* PR feedback
2021-12-10 10:34:34 -08:00
FAST DevOps a3f8b0b661 applying package updates 2021-12-08 07:08:31 +00:00
Jane Chu 6b0602e10d
Adds the duplicate shortcut (#157)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change does the following:

- Adds the duplicate shortcut function (ctrl + d)
- Updates the test app to include a table of commands to keep track of them
- Updates the shortcuts service to store and provide the active dictionary id and data dictionary and supply this to actions

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Closes #23

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-12-07 16:29:10 -08:00
William Wagner bc5246a323
Increasing icon sizes in CSS Layout component (#156)
# Pull Request

## 📖 Description

Replaced the Wrap icon SVG in the CSS Layout (flexbox) component with versions that better fit the space.

Before / After
![image](https://user-images.githubusercontent.com/44823142/145122553-8919c584-6946-4bd3-9023-5061ad4b8dc5.png)


<!--- Provide some background and a description of your work. -->

### 🎫 Issues
Closes: #99 
<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
2021-12-07 15:44:56 -08:00
FAST DevOps a142c7c206 applying package updates 2021-12-05 07:08:17 +00:00
Jane Chu 172ba1f598
Update test app logic for window location updates (#154)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change:
- Updates the window logic to check for search parameters which means the refresh during development now persists on the iframe page
- Adds a little styling update to the test app
- Updates out of date test app text for shortcuts

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-12-03 12:16:30 -08:00
Jane Chu b6bfffde6b
Update shortcut actions so they can directly assign the event listener to a provided HTML element (#153)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change does the following:
- Update shortcut actions so they can directly assign the event listener to a provided HTML element
- Add an export for the delete shortcut action

Relies on the completion of #152 to pass the build.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Resolves #24

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-12-02 16:52:35 -08:00
Jane Chu 151c07389a
Allow remove linked data messages to remove the current active dictionary ID (#152)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change allows the remove linked data action to default to removing the active dictionary ID. This provides an easy way for shortcuts to act on a "delete" option.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Related to #24

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- Add a PR for shortcuts to execute using this updated API with an exported delete shortcuts action (see #153)
2021-12-02 10:17:38 -08:00
FAST DevOps 9183c41927 applying package updates 2021-12-02 07:07:14 +00:00
William Wagner ed754a5425
Adding Playwright testing (#151)
* Add Playwright and first test

* Change files

* More comments

* Add playwright to fast-tooling-react and wasm

* Change files

* Fix port numbers

* Fix eslint error

* Update change/@microsoft-fast-tooling-f25a09d2-ac4d-45db-827c-be83b473301f.json

Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>

* Update change/@microsoft-fast-tooling-react-58c4c2d7-aeb2-4ce9-b796-2a751f0a0fe1.json

Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>

Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>
2021-12-01 10:20:52 -08:00
FAST DevOps da36f5e22c applying package updates 2021-11-17 07:07:13 +00:00
William Wagner f3c92b810b
Adding example pages for components that didn't have one (#150)
* Add example pages for missing components

* Change files

* Update change file to none
2021-11-16 16:49:13 -08:00
Jane Chu bebc5cf124
Add PAT documentation for Microsoft SSO (#149)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
Adds additional documentation for the github token needed for workflows.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
This is a relatively trivial documentation update, ensure that the wording is succinct.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [ ] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.
2021-11-16 16:38:52 -08:00
FAST DevOps bee853fe75 applying package updates 2021-11-09 07:08:13 +00:00
Jane Chu a4414355ea
Fixed an issue where indenting whitespace was interpreted as a text node (#143)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This fixes an issue where, when typing inside an instance of the Monaco Editor, the whitespaces at the beginning of the values which are only used as indenting, were being interpreted as text nodes.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
Try typing in the Monaco Editor, this should no longer show as multiple elements and empty text nodes.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-11-08 16:06:27 -08:00
William Wagner d7822a7429
Fix html render empty markup bug (#142)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
Fixes a bug in HTMLRender component that would throw a javascript error and place the renderer into an unrecoverable state when given a data dictionary with no markup.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
2021-11-08 13:57:00 -08:00
William Wagner 37a4eeb54c
Fix Navigation pill preview bug (#141)
* Fix Navigation pill preview bug

* Change files
2021-11-08 10:54:31 -08:00
FAST DevOps 0db5fbdad7 applying package updates 2021-11-05 21:03:19 +00:00
Jane Chu 28f41f4528
Adds the dictionary ID of the dictionary item being edited to outgoing messages from the message system and the inline editing component (#140)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change updates the following:

- Adds the dictionary ID being edited to the data update sent by the inline editing control, this was assumed to be the active dictionary ID and was therefore not specified but this may cause async navigational issues
- Adds the dictionary ID to the message systems data updates for further information to message system handlers

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-11-05 13:57:58 -07:00
William Wagner 1f830cc46f
Fix whitespace bug in Inline Edit (#139)
* Fix whitespace issues in inline edit

* Change files
2021-11-05 12:52:00 -07:00
FAST DevOps 0e43bfb251 applying package updates 2021-11-05 16:36:26 +00:00
William Wagner 716e073965
Updating CSSBoxModel UI design (#138)
* Updating boxmodel UI to better fit creator

* Make grids sticky when user clicks button

* Change files

* PR updates
2021-11-04 17:59:34 -07:00
FAST DevOps 6fb4b68d5d applying package updates 2021-11-04 07:07:24 +00:00
Jane Chu 9f1e18a2a9
Added a missing originator ID from the Form (#137)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
The Form react component had a missing originatorId property, this assists in debugging and ensuring the components do not get stuck in loops.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-11-03 16:56:23 -07:00
William Wagner 428ec5ac66
Fix Html Render Inline Edit empty string bug (#136)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This fixes a problem with calculating the correct size and position of the inline edit text area when all of the text is removed that would result in the text area vanishing and losing focus.
This fix introduces a new minimum size for the text area calculated from the target text node's calculated line-height or in the case line-height returns "normal" it is 1.5x the calculated font-size (which always returns a pixel value).

**This will not be fully fixed until https://github.com/microsoft/fast-creator/pull/85 is merged.**

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Closes: #74 

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
2021-11-03 15:01:54 -07:00
FAST DevOps 1bf503a32b applying package updates 2021-11-03 07:07:37 +00:00
William Wagner 8ea7ed69c9
Fix CSS Box Model change event propagation (#135)
* Fix change event propagation

* Change files
2021-11-02 17:58:22 -07:00
Jane Chu 6971cafe9e
Remove the soft remove UI for linked data (#133)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change removes the soft remove (or undo/redo) button from the linked data control. It has been determined that this UI is confusing and would be confusing to maintain for linked data, which is a special data case outside of the regular data types defined in JSON schema.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-11-02 16:37:53 -07:00
William Wagner 072999aead
Add box model web component (#134)
* Done with box model component

* Prettier

* Change files

* Try to fix build issue

* PR updates and integration bug fixes

* More integration tweaks
2021-11-02 16:29:37 -07:00
Jane Chu 64490aa07a
Update pull request guidance (#132)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change adds information to the CONTRIBUTING.md file on guidance for merging pull requests.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [ ] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.
2021-10-28 16:44:02 -07:00
Aaron Wentzel d1f201e17e
update for better consistency across projects (#131) 2021-10-28 08:31:28 -07:00
FAST DevOps ba6bf4700d applying package updates 2021-10-28 07:06:12 +00:00
Jane Chu 8d1cd0bbf6
Update TypeScript dependency to 4.3.x (#130)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change fixes an issue with CSSLayout components type definitions and updates all packages to depend on TypeScript 4.3.x.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-10-27 08:52:52 -07:00
Jane Chu e68f003a69
Remove the postinstall script as it causes errors during installation as a dependency (#129)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
The `postinstall` script is firing when the fast-tooling-react package is added as a dependency. To prevent this only the `prepare` script is utilized. It is unknown at this time why the change was made during migration.

Edit: well apparently it was because fast-tooling-react installs first even though fast-tooling is a dependency. Still looking for a solution.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
Run installation locally to see if any issues arise.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-10-27 08:23:34 -07:00
Jane Chu 7085b0dab1
Add wasm-pack to the github workflow and a test script for the wasm package (#128)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change should add the wasm package to the build gate and prevent errors from being pushed. The package is currently private and requires `wasm-pack` to run.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
The build gate should pass and include the tests in the wasm package. To run locally, follow the steps in the CONTRIBUTING.md file for the wasm package.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
2021-10-26 16:16:20 -07:00
Jane Chu cf5a687b39
Convert the C permutator project to Rust (#127)
# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This change converts the C permutator, which only includes permutating over numbers, to Rust.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
Take a loot at this, pull down if necessary and update all dependencies. This may take some times. You will then be able to run the webpack app that utilizes the permutator and manually test.

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have added tests for my changes.
- [x] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
2021-10-25 18:38:40 -07:00
Aaron Wentzel 566f39bc28
update documentation and tweak discord notification for better accuracy (#124)
* update documentation and tweak discord notification for better accuracy

* update security policy documentation

Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>

Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>
2021-10-18 07:06:55 -07:00