-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump react to >16.8 to use hooks * add ability to debug using a sample report * bump react-dom to same version as react * require trailing slashes on URLs * stop page from complaining about missing manifest.json * add explicit versions * remove useless imports * fix jsdoc type * fix jsdoc param * Silence loud chrome warnings in the devtools console by switching our fontawesome CDN tag to a crossorigin-friendly tag * First fully working commit, still needs cleanup and passing tests. * package.json: add lodash for uncomplicated comparison and slicing of state (and using module import so as to not bloat production bundle) * .eslintrc.json: Make eslint allow comments up to 120 characters for e.g. JSDoc examples and web links * AssertionPane.js: export aphrodite CSS for reuse * CenterPane.jsx: rewrite of GetCenterPane function in reportUtils.js * state.js: major revamp of UI state management * passing unit tests on local PC, need to combine boilerplate from testsuites into a central place * finishing component unit tests * remove optional dependencies and upgrade react-hooks-testing-library to the non-deprecated version @testing-library/react-hooks * switch to redux to avoid unstable_observedBits log messages
- Loading branch information
Showing
142 changed files
with
13,181 additions
and
4,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
EXTEND_ESLINT=true | ||
# make 'serve' skip checking its servers for updates | ||
# see: node_modules/serve/bin/serve.js:365 | ||
NO_UPDATE_CHECK=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#REACT_APP_THREAD=thread | ||
#REACT_APP_THREADJS=thread.js | ||
#REACT_APP_RELTHREAD=./thread | ||
#REACT_APP_USE_THREAD=1 | ||
#EXTEND_ESLINT=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SKIP_PREFLIGHT_CHECK=true | ||
BROWSER=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
__tests__ | ||
__snapshots__ | ||
sampleReports.js | ||
fakeReport.js | ||
/build/ | ||
/node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules/ | ||
.env.local | ||
.env.production.local | ||
.env.development.local | ||
yarn-error.log | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Testplan Web UI | ||
|
||
- Recommended Development Setup | ||
* [IntelliJ-based IDEs](#intellij-based-ides) | ||
* [VSCode](#vscode) | ||
|
||
|
||
#### IntelliJ-based IDEs | ||
|
||
TODO | ||
|
||
### VSCode | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Web UI | ||
|
||
- [Recommended development setup](DEVELOPMENT.md) | ||
- [Report fetch](src/Report/BatchReport/state/reportWorker) | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const | ||
{ dirname, resolve, delimiter } = require('path'), | ||
{ appPackageJson, appNodeModules } = require('react-scripts/config/paths'), | ||
{ getServers } = require('jest-dev-server'), | ||
{ env: { PATH, SKIP_BUILD, CI, HEADLESS }, execPath } = process, | ||
// serve production build for puppeteer integration tests | ||
{ scripts: { build, serve } } = require(appPackageJson), | ||
isSkipBuild = !!JSON.parse(SKIP_BUILD || '0'), | ||
isHeadless = !!JSON.parse(CI || '0') && !!JSON.parse(HEADLESS || '1'); | ||
|
||
module.exports = { | ||
// see github.com/smooth-code/jest-puppeteer/issues/120#issuecomment-464185653 | ||
launch: { | ||
dumpio: true, | ||
...(isHeadless ? {} : { headless: false, devtools: true }), | ||
}, | ||
server: { | ||
debug: true, | ||
proto: 'http', | ||
host: '127.0.0.1', | ||
port: 5000, | ||
usedPortAction: 'error', | ||
launchTimeout: 1000 * 60 * 5, | ||
command: (isSkipBuild ? '' : `${build} && `) + serve, | ||
options: { | ||
env: { | ||
PATH: [ | ||
dirname(execPath), | ||
resolve(appNodeModules, '.bin'), | ||
PATH | ||
].join(delimiter), | ||
}, | ||
windowsVerbatimArguments: true, | ||
}, | ||
}, | ||
getOrigin() { | ||
return `${this.server.proto}://${this.server.host}:${this.server.port}`; | ||
}, | ||
getProcesses: getServers, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.