Skip to content

Commit 250b69a

Browse files
elyulkaivankravets
authored andcommittedOct 25, 2019
Feature/pio inspect2 (#15) // Resolve #3, Resolve #4, Resolve #5, Resolve #6
* General updates: - Added .prettierrc; - Integrated eslint and prettier; - Improved VSCode dev integration, added jsconfig.json; - Added aliases configuration fro application modules like @core, @store into webpack config. // Issue #3 * Created Inspect Module: - Added form, project select, env select containers; - Added actions to load envs and saved form configuration. // Issue #3 * Removed unused imports * Fixed production build: - Updated prod webpack with aliases configuration; - Added empty dist/ dir. // Issue #3 * Inspection Module: - Removed force argument from `inspectProject` action; - Removed props&state unpacking; - Renamed form.jsx into configuration.jsx // Issue #3 * Inspection Module: - Fixed project-select placeholder text. // Issue #3 * Inspection Module: - Fixed project-env-select if there is no items; - Removed old loader from project-select // Issue #3 * Inspection Module: - Refactored project-select and project-env-select my moving into configuration // Issue #3 * Inspection Module: - Clear env value on project change // Issue #3 * Inspection Module: - Implemented inspectProject saga with optional parallel execution. // Issue #3 * Inspection Module: - Handle jsonrpc exception in inspectSaga // Issue #3 * Inspection Module: - Removed filter for envs; - Throw error if sizedata.json is empty or not found. // Issue #3 * Inspection Module: - Added result page with stats tab; - Added reinspect action; - Fixed setState after unmount error. // Issue #3 * Inspection Module: - Fixed error during code-only inspection // Issue #3 * Inspection Module: - Fixed redirect if cache is present // Issue #3 * Inspection Module: - Use environments from the project // Issue #3 * Inspection Module: - Display project description in the project select; - Use project name instead of generated from the path. // Issue #3 * Inspection Module: - Use inputValues to save form state. // Issue #3 * Inspection Module: - Removed description and full path from project-select; - Removed saveConfiguration action and form prop. // Issue #3 * Inspection Module: - Fixed selectSavedConfiguration() to use storageItems; - Use single style of event handlers; - Grouped proptypes // Issue #3 * Inspection Module: - Fixed CSS styles; - Restored webpack noInfo; - Sorted proptypes // Issue #3 * Inspection Module: - Flattened containers directory // Issue #3 * Inspection Module: - Display code check stats in the new summary table; - Display project name on the result page. // Issue #3 * Added "start:light" npm command to run dev mode with light theme. Inspection Module: - Fixed no data message in Defects Summary // Issue #3 * Disabled format on save for .js, .jsx // Issue #3 * Add custom progress styles * Inspection Module: - Use classes to change gauge color. // Issue #3 * Inspection Module: - Use Ant Table to render defects summary // Issue #3 * Upgrade Ant to 3.24.2 * Inspection Module: - Fixed rowKey in defects summary // Issue #3 * Format LESS with prettier * Improve Defect stats block * Inspection Module: - Implemented Symbols explorer; - Don't redirect user in the saga to allow user to stay on same tab after refresh. // Issue #3 * Inspection Module: - Removed tiles and made gauges clickable // Issue #3 * Inspection Module: - Removed unused import // Issue #3 * Inspection Module: - Fixed commited unsaved file // Issue #3 * Inspection Module: - Implemented Memory sections tab // Issue #3 * Inspection Module: - Implemented File explorer tab // Issue #3 * Inspection Module: - Implemented filters in sections and symbols // Issue #3 * Inspection Module: - Implemented reveal action on result page - Show full project path in the tooltip over project name page title // Issue #3 * Wrap whole inspect module to page container with fixed max width * Add detailed symbol info with location to Tooltip * Center symbols columns * Remove surplus styles * Refactor HEADER part of result-page * Change gauge class priority: 0|75|90 * Use default text color for percents in dashboard * Use `text-right` style instead of harcdoded style * Group memory top files and symbols in one row * Format code * Show symbol location in Tooltip * Add actual into text to inspection home page * Inspection Module: - Display empty defects gauge if there is no defects. // Issue #3 * Fix text for inspect * Inspection Module: - Explorer: don't render slash in the beginning of path. // Issue #3 * Inspection Module: - Renamed entity item to 'inspectSizedata'; - Updated saga to store full json; - Updated selectors to get correct memory inspection data. // Issue #3 * Inspection Module: - Implemented `limitPathLength` and `formatFrequency` helpers // Issue #3 * Inspection Module: - Updated result page to render device information // Issue #3 * Inspection Module: - Updated stats page to show device information and limit displayed path length. // Issue #3 * Inspection Module: - Updated stats page - display defects block only if there are defects present. // Issue #3 * Inspection Module: - Implemented Top Defects at the Stats page; - Implemented Defects tab; - Fixed code selectors and saga to accept code check by multiple tools; - Fixed saga to recover data of code check when tool exits with non-zero exit code. // Issue #3 * Inspection Module: - Don't redirect user to the results page if error encountered while running inspection. // Issue #3 * Inspection Module Configuration Page: - Display errors in div styled like input. // Issue #3 * Inspection Module Result Page Defects Tab: - Display loader; - Display standardized no data message; - Use HOCs for loader and no data. // Issue #3 * Revert "Inspection Module Result Page Defects Tab:" This reverts commit f51dcee. * Inspection Module Result Page Defects Tab: - Display no data message // Issue #3 * Inspection Module Configuration Page: - Added "Other" button to open existing project // Issue #3 * Refactored "Open Project": - Moved out logic into saga; - Added skipOpenProject into modal props; - Return selected project dir in onCancel() callback; - Added withOpen and onEnd into addProject() arguments. * Removed unused props from "Open Project" modal. * 15 items per page * Minor improvements to defects stats * Inspect Module Configuration Page: - Made form layout responsive; - Fixed layout of switch labels (label follows switch) * Add Category to Defects page * Inspection Module: - Parse codeCheck severity into level; - Fixed ordering by severity; - Fixed configuration form non form rows layout. // Issue #3 * Inspect Module Result Stats: - Updated styles to display cursor over clickable items (gauges, table rows); - Navigate user to the related tab when clicking on the table rows. * Improve error-color and defects tag * Inspect Module Result Stats: - Fixed overlapping styles for html and antd tables. * Inspect Module Result Stats: - Added footer into Defects summary table. * Inspect Module Defects: - Added filters * Make defect items in table to allocate dynamic with * Show defects "dashboard" with zero items * Inspect Module Explorer: Fixes for Windows: - Fixed breadcrumb clicks; - Fixed directory folding. Fixed top files selector to fix paths. * Show env name on result page; cleanup code * Inspect Module Stats Page: - Fixed order of Top Defects; - Improved rendering of Defects Summary total as part of table. * Inspect Module Configuration: - Reset env after added other project. * Inspect Module Configuration Page: - Changed form layout to vertical. * Inspect Module File&Symbols Pages: - Added Type column; - Changed name tooltip to display only file name and line. * Inspect Module Configuration Page: - Fixed restoring saved form values when storage loads after form has been mounted. * Inspect Module Explorer: - Replace backslashes with forward slashes for all paths; - Removed dependency on pathlib; - Simplified path handling. * Inspect Module: - Fixed component stats selector to handle new format without extra array wrapping. // Issue #3 * Inspect Module: - Removed support of parallel running of code and memory inspection // Issue #3 * Inspect Module Result Stats Page: - 1 column in a row for medium and less screen width; - Aligned by center Defects summary numbers; - Limited path to 35 chars in the Top files block. // Issue #3 * Inspect Module: - Added filter by Type into Symbols Tab; - Updated configuration form "Other project" button layout and name; - Fixed rendering of severity level to look same as on Defects tab. // Issue #3 * Fix configuration page to max-width:700 * Other improvements * Typo fix * Update dependencies * Pass initial arguments to ProjectConfig as dict * Fix error when stats is not declared in JSON * Show memory in KB in dashboard * Increase width of Tooltip for symbol paths * Bug fixes and improvements * Code formatting
1 parent 396370e commit 250b69a

Some content is hidden

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

47 files changed

+3064
-117
lines changed
 

‎.eslintrc.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ module.exports = {
1010
},
1111
"plugins": [
1212
"import",
13-
"react"
13+
"react",
14+
"prettier"
1415
],
1516
"extends": [
1617
"eslint:recommended",
1718
"plugin:react/recommended",
1819
"plugin:import/errors",
19-
"plugin:import/warnings"
20+
"plugin:import/warnings",
21+
"prettier"
2022
],
2123
"parser": "babel-eslint",
2224
"parserOptions": {
@@ -29,15 +31,14 @@ module.exports = {
2931
"settings": {
3032
"import/resolver": {
3133
"webpack": {
32-
"config": {
33-
"resolve": {
34-
"extensions": [".js", ".jsx"]
35-
}
36-
}
34+
"config": "scripts/webpack.dev.config.js"
3735
}
3836
},
37+
"import/ignore": [
38+
"node_modules"
39+
],
3940
"react": {
40-
"version": "detect"
41+
"version": "detect",
4142
}
4243
},
4344
"rules": {
@@ -56,6 +57,7 @@ module.exports = {
5657
}
5758
],
5859
"prefer-const": "error",
60+
"prettier/prettier": ["error"],
5961
"quotes": [
6062
"error",
6163
"single",

‎.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 88,
3+
"singleQuote": true
4+
}

0 commit comments

Comments
 (0)
Please sign in to comment.