-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL navigation #451
URL navigation #451
Conversation
There are not 13,000 added lines that need to be reviewed... I moved our document mocks and snaps to different folders, hence these line counts should not cause panic:
This is a WIP at the moment since I still need to prune some files and code from what we see at 0669a3f. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just add some minor comments. Needs a demo to review the changes step by step.
testplan/web_ui/testing/src/Report/BatchReport/components/CenterPane/index.jsx
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReport/components/PrintButton.jsx
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReport/state/__tests__/reportSlice.test.js
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReport/state/reportSelectors.js
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/AssertionPane/AssertionTypes/DictAssertions/dictAssertionUtils.js
Show resolved
Hide resolved
Right now the new component (it doesn't.) This component is used in place of the current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm only half way through the PR. to be continued...
testplan/web_ui/testing/src/Report/BatchReportBeta/components/AutoSelectRedirect.jsx
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/AutoSelectRedirect.jsx
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/AutoSelectRedirect.jsx
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/AutoSelectRedirect.jsx
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/DocumentationButton.jsx
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/HelpButton.jsx
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/InfoButton.jsx
Show resolved
Hide resolved
Travis tests are failing due to a known Jest issue, workaround in process... |
testplan/web_ui/testing/src/Report/BatchReportBeta/components/NavBreadcrumbWithNextRoute.jsx
Outdated
Show resolved
Hide resolved
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL; | ||
|
||
/** always false in production */ | ||
const boolIfDev = val => __DEV__ ? !!val : false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name this falseIfProd will make the code easier to read, but i wish we don't need this at all.
testplan/web_ui/testing/src/Report/BatchReportBeta/state/reportSlice.js
Outdated
Show resolved
Hide resolved
} else { | ||
state.isFetchCancelled = false; | ||
state.fetchError = action.error; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems fetchReport has 3 different state: pending/fulfilled/rejected, and we are mapping it 2 flags: isFetching/isFetchCancelled + a fetchError field. Can we simplify things here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how
testplan/web_ui/testing/src/Report/BatchReportBeta/state/reportActions/fetchReport.js
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/state/uiActions/setSelectedEntry.js
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/state/uiSelectors.js
Outdated
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/NavBreadcrumbWithNextRoute.jsx
Show resolved
Hide resolved
testplan/web_ui/testing/src/Report/BatchReportBeta/components/NavSidebarWithNextRoute.jsx
Outdated
Show resolved
Hide resolved
d207b64
to
9179d42
Compare
testplan/web_ui/testing/src/Report/BatchReportBeta/state/reportActions/fetchReport.js
Outdated
Show resolved
Hide resolved
2e100d9
to
b22ee2d
Compare
* add ability to debug using a sample report * require trailing slashes on URLs * stop page from complaining about missing manifest.json * Silence loud chrome warnings in the devtools console by switching our fontawesome CDN tag to a crossorigin-friendly tag * add lodash * .eslintrc.json: Make eslint allow comments up to 120 characters * AssertionPane.js: export aphrodite CSS for reuse * CenterPane.jsx: rewrite of GetCenterPane function in reportUtils.js * state.js: major revamp of UI state management * switch to redux to avoid unstable_observedBits log messages * remove optional dependencies and upgrade react-hooks-testing-library to the non-deprecated version @testing-library/react-hooks * revert improvements * fix link style, remove extraneous action from store serializableCheck, handle testcase onClick edgecase, remove es imports * remove uriComponentCodec, make imports easier * make connect easier * simplify build girth, simplify rigidity, simplify & segregate redux * remove as much hard to read code as is possible * deal with special .env test rules * make travis env vars work * setup new API URL - env var scheme
The API URL bit we discussed is implemented and is explained here. @yuxuan-ms we okay to merge? |
NOTE: Internally we have one change that depends on this PR, which is necessary before making a new release.
fontawesome CDN tag to a crossorigin-friendly tag
to the non-deprecated version @testing-library/react-hooks
handle testcase onClick edgecase, remove es imports