| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Resolving TS errors with any type for now. Can change the types to what's more appropriate, but need some feedback on what would be best here. In addition, /Virtualized and/Virtualized/utils are now showing up in the coverage report, but coverage still really needs to be improved (13.23% and 19.29%, respectively). Will be working on this. |
Sorry, something went wrong.
| export const TextSize: any; | ||
| } | ||
|
|
||
| declare module 'linear-layout-vector' { |
There was a problem hiding this comment.
hey @jenny-s51 - my only ounce of feedback so far here would be - can we move this declaration into patternfly-4/react-virtualized-extension some place? I believe linear-layout-vector is only a dependency of that package (so probably unnecessary in react-core).
Also, i think you can safely remove package-lock.json as well. We don't ship lock files to consumers (just reference the dependences in the package.json for each package) and all of the dev dependencies for PF React end up getting locked in the root yarn.lock file (which should update when you install new packages or run yarn install in the root).
Great job w/ this, it's a huge help!!! ⭐️
Sorry, something went wrong.
|
hey @jenny-s51 - i've pushed a commit w/ some proposed changes to this PR today: Let me know what you think. I'm mostly happy here aside from one warning in the jest log still... PASS packages/patternfly-4/react-virtualized-extension/src/components/Virtualized/VirtualizedTable.test.tsx
● Console
console.error node_modules/prop-types/checkPropTypes.js:20
Warning: Failed prop type: Invalid prop `children` supplied to `Table`, expected a ReactNode.
in Table
console.error packages/patternfly-4/react-table/dist/js/components/Table/Table.js:237
Table: Specify at least one of: header, caption, aria-label
console.error node_modules/prop-types/checkPropTypes.js:20
Warning: Failed prop type: Invalid prop `children` supplied to `Provider`, expected a ReactNode.
in Provider (created by Table)
in Table (created by WrapperComponent)
in WrapperComponent
console.error node_modules/react-dom/cjs/react-dom.development.js:180
Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Componen
t /> from render. Or maybe you meant to call this function rather than return it.
in table (created by Provider)
in Provider (created by Table)
in Table (created by WrapperComponent)
in WrapperComponent
console.error packages/patternfly-4/react-table/dist/js/components/Table/Table.js:237
Table: Specify at least one of: header, caption, aria-label
Did not get a chance to address it. I will try testing these changes downstream tomorrow and report back though! |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2761.surge.sh |
Sorry, something went wrong.
| dropdownPosition?: 'right' | 'left'; | ||
| dropdownDirection?: 'up' | 'down'; | ||
| rows: (IRow | string[])[]; | ||
| rows?: (IRow | string[])[]; |
There was a problem hiding this comment.
👍
Sorry, something went wrong.
| ] | ||
| }, | ||
| "dependencies": { | ||
| "@types/react-virtualized": "^9.21.4" |
There was a problem hiding this comment.
i don't think this is needed in the root anymore since we've added it in react-virtualized-extension's package.json
Sorry, something went wrong.
There was a problem hiding this comment.
how would you suggest I address this? would it just be yarn remove @types/react-virtualized?
Sorry, something went wrong.
There was a problem hiding this comment.
I think so, yes, or you could remove the line from the package.json and re-run yarn install. If the build still passes without this dependency in here, yeah, I think remove it. But it's probably ok either way.
Sorry, something went wrong.
There was a problem hiding this comment.
You can delete the line. Likely no need to re-run yarn install, but better safe than sorry.
Sorry, something went wrong.
| expect(view).toMatchSnapshot(); | ||
| }); | ||
|
|
||
| test('Header only table', () => { |
There was a problem hiding this comment.
👍
Sorry, something went wrong.
| /* eslint-disable */ | ||
|
|
||
| import LinearLayoutVector from 'linear-layout-vector'; | ||
| const LinearLayoutVector = require("linear-layout-vector"); |
There was a problem hiding this comment.
is this still necessary? (changing import to require)
Sorry, something went wrong.
|
hey @jenny-s51 - i'm mostly OK w/ this change. I would just remove any package-lock.json files (since we havent been checking those in) |
Sorry, something went wrong.
|
@jenny-s51 +1 about package-lock.json.. and actually, if that file is being created you're probably using the npm CLI, I'd make sure you're running yarn install instead of npm install because we do want any updates to yarn.lock 🙂 |
Sorry, something went wrong.
|
@priley86 do you mean I can just remove package-lock.json from this PR entirely? |
Sorry, something went wrong.
|
@jenny-s51 We use yarn with yarn.lock to install packages, so yes please remove package-lock.json! |
Sorry, something went wrong.
|
@redallen gotcha, should be all set now -- thank you! |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #2761 +/- ##
==========================================
- Coverage 69.13% 67.12% -2.01%
==========================================
Files 868 873 +5
Lines 23777 24490 +713
Branches 1932 2071 +139
==========================================
+ Hits 16438 16439 +1
- Misses 6360 7088 +728
+ Partials 979 963 -16
Continue to review full report at Codecov.
|
Sorry, something went wrong.
…ors with any type for now
| Back | FazBrowse Home | New Git URL |
WIP for #2328 -- currently working on resolving these type errors shown after running yarn run jest virtualizedTable.