Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate to vite + new VTL editor (#776)
* build: init migration to vite - update react to 18 - migrate to vite * replace .js with .jsx in src/auth * Switch to oidc-sap library * .js 2 .jsx + replace absolute paths with relative paths * Migrate to vite & fix import issues * set .env file to VITE_ * replace getToken with oidc.getTokens().accessToken * remove sonar bugs * remove medium severity code smells * update relative paths in spec.js files * Switch to oidc-sap library * .js 2 .jsx + replace absolute paths with relative paths * Remove fake server and fix oidc * Better oidcProvider work with oidc / none * lower vitest errors * fix: finalize rebasing on suggesters * build: init migration to vite - update react to 18 - migrate to vite * replace .js with .jsx in src/auth * Switch to oidc-sap library * .js 2 .jsx + replace absolute paths with relative paths * Migrate to vite & fix import issues * set .env file to VITE_ * replace getToken with oidc.getTokens().accessToken * remove sonar bugs * remove medium severity code smells * update relative paths in spec.js files * Switch to oidc-sap library * .js 2 .jsx + replace absolute paths with relative paths * Remove fake server and fix oidc * Better oidcProvider work with oidc / none * lower vitest errors * fix: finalize rebasing on suggesters * rename remaining .js files into .jsx * move token calculation to container * restore token in components with oidc * manage oidc provider in tests * update node-version for tests * add vitest imports * update setupTests.ts address from relative to absolute * add a replacement for dirname in vite.config * try help test to find setupTests.ts * restore failing tests to the branch * remove nested filter * fix init component weight * split component-new-edit * roundabout : add component * feat : form to state and back * save and back * validate roundabout form * remove duplicate code * fix sonar issues * simplify Pogues model for roundabout * remove partial and complete + restore redirections call * show tab redirections depending on redicretionNeeeded * bump version * add scope for collected variables depending on roundabout * fix roundabout model * fix: eslint config * remove nested filter * fix init component weight * split component-new-edit * roundabout : add component * feat : form to state and back * save and back * validate roundabout form * remove duplicate code * fix sonar issues * simplify Pogues model for roundabout * remove partial and complete + restore redirections call * show tab redirections depending on redicretionNeeeded * bump version * add scope for collected variables depending on roundabout * fix roundabout model * fix: bring back rich editor for xpath * feat: add new vtl editor * fix: add global to vite config * deps: upgrade redux-form * fix: revert md-vtl parser * style : remove margin on vtl editor * fix: response format table * fix: don't display vtl error when field is empty * fix declaration mode in roundabout * fix: vtl-editor style * fix: font & icons import * fix: reducer with authType * fix: forwardRef error * fix: dnd type import * fix: eslint errors * deps: add test dependencies * fix: add authType reducer * fix: remove duplicate snapshot file * fix : add token to visualizeDropdown props * test: fix visualizeDropdown tests * fix : add token to StatisticalContextCriteria props * test: fix StatisticalContextCriteria tests * fix : get token in SearchCodesLists * test: fix SearchCodesLists tests * fix: add token to InputFilterWithCriteria props * test : fix InputFilterWithCriteria tests * test : fix ResponseFormatSimple tests * test: fix QuestionnaireNav tests * test : skip not working tests * test: skip not working test * fix: vite config for test * fix: after merge from main * fix : visualizeDropdown test & import * test: add script for test with coverage * ci : fix test with coverage * ci : fix path for build -> dist * fix: coverage config * fix: imports * remove env * fix: initialize auth * fix: missing stamp on questionnaires list * fix: VTL editor tools (syntax colorization...) * fix: auth for deleting questionnaire --------- Co-authored-by: Laurent Caouissin <[email protected]> Co-authored-by: Bulot François <[email protected]> Co-authored-by: Bulot François <[email protected]> Co-authored-by: BulotF <[email protected]>
- Loading branch information