- moved and updated .vscode/tasks.json up to root level, and add exclusion to .gitignore
- added --pretty to ts:check in wca package.json (because otherwise there's no syntax highlighting in the output, not sure why this is needed with nx and not without)
- added references to root tsconfig.base.json
- update development.md with instructions for ts checking
* Update husky from 4 to 7
* Update @types/jest from 26 to 27
* Update lint-staged from 10 to 12
* Update babel-jest from 26 to 27
* Update @typescript-eslint/eslint-plugin from 4 to 5
* Update @typescript-eslint/parser from 4 to 5
* Update chalk from 4 to 5
* Update concurrently from 5 to 7
* Update stylelint from 9 to 14 and stylelint-config-wordpress from 13 to 17
* Update @wordpress/prettier-config from 0.4 to 1.1
* Update eslint from 7 to 8, @wordpress/eslint-plugin from 8 to 10, eslint-plugin-testing-library to 5
* Fix lint errors after updating eslint-plugin-testing-library
* Fix style lint
* Rename .stylelintrc.json -> stylelint.config.js & add todo comment
Fix stylelint.config.js
* Remove @wordpress/e2e-test-utils
* Add changelogs for eslint-plugin
* Update storybook/preview.js since addDecorator has been deprecated
Remove parameters
* Import directly from @storybook/addon-docs
* Migrate some stories to use @storybook/addon-controls
Add a comment for @storybook/addon-knobs
* Update changelogs
* Update preview.js to fix lint warning
* Update pnpm-lock.yaml
* Fix eslint layout errors (https://github.com/woocommerce/woocommerce-admin/pull/8484)
* Update all js packages with minor/patch version changes
* Add changelog
* Fix packages/data types errors
* Update data/CHANGELOG.md
* Fix puppeteer version
* Fix packages/data > countries error types
* Make data key optional in RestApiError
* Install grapheme-splitter
* Support multi-characters Unicode letters for inbox html truncator
* Fix truncateRenderableHTML length compare
* Change note to immutable
* Add changelog
* Use hasChildNodes() to check if we should call truncateElement
* Add tests for truncate()
* Copied .tsconfig into ./client to enable ts checking
- Made sub-repos composite typescript packages where necessary
* Prevent tsc from transpiling ./client
- we use webpack for transpiling so no need for this
* Added tsc resolution path for @automattic/explat-client
- Seems like there's a type export issue (?) with @automattic/explat-client and @automattic/explat-client-react-helpers
- adding the node_modules/@automattic/explat-client path in tsconfig seems to help TS resolve this using the source .ts files
- found answer here: https://github.com/microsoft/TypeScript/issues/42873
- should figure out what's actually wrong with the type exports and fix that there instead
* Removed mandatory checking from webpack
- removed this for now as it will block all development until all type inconsistencies are fixed
- for now, run the optional ts:check task either in console or vscode for highlighting type errors
* Added vscode tasks for typescript checking
* Patch @automattic/explat-client-react-helpers
- this changes the installed code in node_modules (post-installation) for @automattic/explat-client-react-helpers so that it exports the necessary type interfaces required by us
- attempted unsuccessfully to override type exports using declare module
- not too sure how to fix this internally by other means
- have to investigate what fixes to propose to @automattic/explat-client-react-helpers team
* changed tests in ./client to use ts-jest instead of babel-jest
- rewrote jest config to use ts-jest instead of babel-jest
- set ts errors to warnings instead so that tests don't fail on type errors
- created new tsconfig for ./packages/js-tests so that build and ts-check are separate, as js-tests need to be built for commonjs
* Add payment_setup track for WooCommerce Payments
* Add WooCommerce Reset Plugin to E2E environment
* Add resetWoComerceState util
* Add state reset before obw test
* Refactor resetWooCommerceState
resetWooCommerceState now makes the HTTP request locally instead of from inside the browser context.
* Update reset functionality
* Add custom settings reset function for onboarding
* Update reset functionality
* Add action-scheduler run helper function
* Fix add section test
* Add plugin removal helper functions
* Fix lint errors
* Fix broken e2e tests
* Add changelog
* Remove unused imports
* Add comment for extra timeout
* Add helper function to wait until button stops moving, incase of animations
* Fix lint error
* Add variable for string used in multiple places
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
* Remove use of wc-admin-settings from packages
* Move getSetting to getAdminSetting and remove wc-admin-settings package
* Add changelog
* Update package.json and remove last use of wc-admin-settings
* Add style links to storybook preview head based on the env
Use *style.css or *style-rtl.css based on a env flag so we don't need to modify
the preview-head.html manully.
* Add npm run storybook-rtl
* Update the storybook-rtl command description
* Bumps version to 2.9.0-dev
* Delete changelog files from 2.7.x and 2.8.0
* Update changelog for 2.7.1 and 2.8.0
* Update testing instructions for 2.7.1
* Add hide and show task list tests
* The start to adding tests for the activity panel
* Add activity panel tests and WP-API plugin on initialize
* Update task list tests to be more flexible
* Add changelog in package
* Update the re-enable task list logic to be more robust
* Use a more generic selector
* Make sure task list is shown in previous test
* Add test screenshot
* Remove screenshot and update logic
* Address PR feedback
* Add a new command to build testing instructions by a given version
* Check - [ ] Include test instructions in the release checkbox
* Fix code format
* Code cleanup
* Fix config error
* Update README.md
* Update README.md
* Update README.md
* Remove js version
* Remove test file
* A minor refactor
* Reuse parse() method from the WCAdminFormatter.php
* Exclude PRs with "no release testing instructions" label
* Remove Requests:multi_request dependency
* Remove wp load script
* Initial set up for the WCAdminSettingsRegistry
* Make use of filter for admin settings
* Add wc/settings package and remove depreciated dropzone wrapper
* Make use of the getSetting function instead of accessing window directly
* Add comments
* Add changelog
* Remove un needed changes
* Update dropzone provider logic and fix styling
* Remove old css
* bump E2E package versions to latest
* first pass on E2E test package.json
* move e2e specs to admin-e2e-tests
* add global types, reimplement tests/e2e/specs
* use consistent build dir with other packages
* add documentation, improve test:e2e script
* fix linting issues in admin-e2e-tests
* fix more linting issues
* disable lint on requires
* use e2e in the E2E container names
* move analytics overview test to package
* change extension on analytics-overview test file
* fix linting issues in e2e analytics overview
* remove package scripts from e2e package
* change test specs extensions to .tsx
* remove import from analytics overview test spec
* add .tsx to e2e test spec file extension list
* update e2e business features count expected
* Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2
* Also update other dependencies dropping IE11 support.
* Update data dep in data package.
* Add back regen runtime.
* Add regenerator-runtime dependency for setting up jest tests
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
* Updated mobile banner icon with cross-small gridicon
* Update analytics dashboard icons, removing use of dashicon
* Remove use of dash icon in tag component
* Remove dash icon from ellipsis menu
* Remove use of dashicon in calendar
* Update icon imports and remove use of Dashicon in collapsible list
* Remove Dashicon usage from store alerts as it is depreciated
* Remove dashicon usage in shipping label
* Fix up old css for icons
* Removed dashicon usage in favorite button
* Update the wordpress/icons package
* Add changelogs
* Fix broken test
* Remove remnants of legacy changelog script
* Add 2.3.0 section to TESTING-INSTRUCTIONS.md and moved all relevant instructions
* Update readme.txt with changelog from 2.3.1