Skip to content

Commit c616062

Browse files
authored
Merge pull request #205 from oslabs-beta/master
Merging Version 16
2 parents 70266c4 + 329c951 commit c616062

File tree

301 files changed

+54900
-6125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+54900
-6125
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
],
1414
// presets are a set of of plug-ins
1515
"presets": [
16+
["@babel/preset-env", { "targets": { "node": "current" } }],
1617
"@babel/preset-typescript",
17-
"@babel/preset-env",
1818
"@babel/preset-react"
1919
]
2020
}

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"sourceType": "module"
99
},
1010
"plugins": ["import", "react", "jest", "jsx-a11y", "babel"],
11-
"parser": "babel-eslint",
11+
"parser": "@babel/eslint-parser",
1212
"env": {
1313
"browser": true,
1414
"node": true,

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master ]
9+
branches: [dev]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [dev]
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -23,11 +23,15 @@ jobs:
2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
27+
with:
28+
node-version: 18.13.0
2729

2830
# Runs a single command using the runners shell
29-
- name: Run a one-line script
30-
run: echo Hello, world!
31+
- name: Install dependencies
32+
run: npm install
33+
- name: Run all tests
34+
run: npm run test --bail
3135

3236
# Runs a set of commands using the runners shell
3337
- name: Run a multi-line script

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,6 @@ server/RootCA.srl
498498

499499

500500
# End of https://www.gitignore.io/api/node,linux,macos,windows,visualstudio,yarn
501+
/test-results/
502+
/playwright-report/
503+
/playwright/.cache/

.travis.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
language: node_js
2-
node_js:
3-
- "16"
4-
dist: xenial
5-
arch: amd64
6-
script:
7-
- python3 -VV
8-
- pip install --upgrade pip
9-
- pip -V
10-
- npm run test
11-
cache:
12-
directories:
13-
- node_modules
14-
install:
15-
- npm install --legacy-peer-deps
16-
env:
17-
global: PATH=/opt/python/3.7.1/bin:$PATH
1+
# language: node_js
2+
# node_js:
3+
# - "16"
4+
# dist: xenial
5+
# arch: amd64
6+
# script:
7+
# - python3 -VV
8+
# - pip install --upgrade pip
9+
# - pip -V
10+
# - npm run test
11+
# cache:
12+
# directories:
13+
# - node_modules
14+
# install:
15+
# - npm install --legacy-peer-deps
16+
# env:
17+
# global: PATH=/opt/python/3.7.1/bin:$PATH

CHANGE_LOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,56 @@
33
<h1 align="center">ReacType Change Log</h1>
44
</p>
55

6+
**Version 16.0.0 Changes**
7+
8+
Changes:<br>
9+
10+
- Developer Improvements:
11+
- Testing Coverage:
12+
- Version 16 introduces end-to-end testing with Playwright and adds additional unit testing with React Testing Library.
13+
- Testing coverage has now doubled since version 15, and now sits at just over 50% coverage.
14+
- Transitioned away from Enzyme to maintain consistency with RTL and Jest.
15+
- Typescript Conversion:
16+
- Upped typescript coverage from 30% to 80%.
17+
- Fixed multiple type errors in component files.
18+
- Added CI pipeline for testing:
19+
- Transitioned away from Travis CI to Github Actions for improved CI pipeline. Github Actions will now run all tests upon each pull request to dev.
20+
- Updated OAuth and Sign In Features:
21+
- Sign in feature now connected to the latest database version.
22+
- Fixed bug that allowed only one OAuth user to sign in at a time.
23+
- Github OAuth is now connected to Adam Vanek.
24+
- Dev Bug Fixes:
25+
- Debugged ‘worker error’ on code preview & style editor by refactoring Ace-Build components.
26+
- Additional logic added for edge cases in inputs for context manager, state manager, and signup features.
27+
- Cleaned up hundreds of lines of outdated code and deleted multiple unused and duplicate files
28+
- Dependency Updates:
29+
- All previously outdated dependencies are now updated. Time it takes for the app to bundle in dev is now cut in half.
30+
- User Features:
31+
- Export Button:
32+
- Export feature on the web app now allows users to download the current project as a zip file with modularized component folder, html, and css file included.
33+
- Export feature is now available to all users including guests.
34+
- CSS Live Rendering:
35+
- CSS Editor changes now rendered visually in the demo page on save.
36+
- UI Changes:
37+
- Fixed multiple contrast issues with white text displaying on white background in State Manger Display tab tables, state management tables, table menu dropdowns, Context Manager tables, and Context Manager display.
38+
- Adjusted context manager interface for improved UX when creating context and saving key/value pairs.
39+
- Fixed border styling within modals and error messages that were cutting off inputs on focus.
40+
- Added save button to customization tab.
41+
- Bug Fixes:
42+
- Manage project features for registered users now successfully saves, opens, and deletes projects.
43+
- State Manager now successfully deletes state from parent components.
44+
- Context Manager display chart renders correctly.
45+
- CSS Editor contents now persist after rerender.
46+
47+
Recommendations for Future Enhancements:<br>
48+
49+
- Refactor away from MUI. MUI is very opinionated and while creating components with it is easy it leaves a lot to be desired. Dark Mode also needs to be improved as color contrast is very low.
50+
- Continue expanding testing coverage. Improve testing by adding additional unit tests, expanding end-to-end testing, and introducing integration testing.
51+
- Continue quality Typescript conversion. Continue to fix type errors within component files.
52+
- Modularize appStateSlice file. Further modularization is needed for readability and maintainability.
53+
- Solve residual bugs. Undo & Redo buttons on customization page not functioning as expected. Backend bugs persist as seen in the console when running the dev environment. Resolve electron app functionality to coincide with web app functionality.
54+
- Continue code cleanup. Continue cleanup of outdated and unused code and files
55+
656
**Version 15.0.0 Changes**
757

858
Changes:<br>

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</p>
2828

2929
<p align="center">
30-
<img width="1000" src="./resources/ReadMe.gif">
30+
<img width="1000" src="./resources/demo.gif">
3131
</p>
3232

3333
**ReacType** is a rapid prototyping tool that allows users _visualize_ their application architecture dynamically, employing a _drag-and-drop canvas display_ and an interactive, _real-time component code preview_ that can be exported as a **React** app for developers employing React component architecture alongside the comprehensive type-checking of **TypeScript**. In other words, **you can draw prototypes and export React / TypeScript code!**
@@ -40,12 +40,14 @@ Follow [@ReacType](https://twitter.com/reactype) on Twitter for important announ
4040

4141
If you want to read about using ReacType, the [User Manual](https://reactype-1.herokuapp.com/#/tutorial) is free and available online now.
4242

43-
## Changes with version 15.0.0
43+
## Changes with version 16.0.0
4444

45-
- **Consolidated State Management**: Reactype was using mutliple methods of State Management. We consolidated this all to the modern version of Redux Toolkit to enhance the developer experience and make it easier to debug.
46-
- **Major Dependency Updates**: No more workarounds required to get new developers up and running in the project. A simple npm install works as intended.
47-
- **Websockets**: Users can now join rooms to collaborate on a project together in real time!
48-
- **Fully Deployed Web Application**: To utilize these new features we have hosted the full application via AWS so users can easily use Reactype without a download.
45+
- **Improved Testing Coverage**: Testing coverage has now doubled since version 15, and now sits at just over 50% coverage. Version 16 introduces end-to-end testing with Playwright and adds additional unit testing with React Testing Library.
46+
- **Major Bug Fixes**: Manage Project Features now work as expected. State Manager now deletes state from parent components. Context Manager Display Tab and CSS Editor now rendering as expected.
47+
- **Typescript Conversion**: Typescript coverage has improved from 30% to 80% with additional interfaces added for quality improvements.
48+
- **Live CSS Demo Rendering**: CSS Editor changes now rendered visually in the demo page on save.
49+
- **Universal Exports on Web App**: Export feature on web app now allows users to download the current project as a zip file with modularized component folder, html, and css file included. Export feature is now available to all users including guests.
50+
- **UI Improvements**: Fixed multiple contrast issues with white text displaying on white background. Adjusted context manager interface for improved UX. Fixed border styling within modals and error messages.
4951
- **And more:** See [change log](https://github.com/open-source-labs/ReacType/blob/master/CHANGE_LOG.md) for more details on what was changed from the previous versions as well as plans for upcoming features!
5052

5153
## File Structure courtesy of Reactype version 14.0.0

0 commit comments

Comments
 (0)