Vite migration <- no behavioral changes.#27
Merged
technologic-technologic merged 4 commits into18-fix-dependencies-vulnerabilitiesfrom Oct 15, 2025
Merged
Conversation
chore(build): migrate from CRA (react-scripts) to Vite (React + TS) — no functional changes ## Important: - Need to fix tests ASAP ## Key changes - Replace Create React App toolchain with Vite; keep the app logic, components, and UI unchanged. - Remove `react-scripts`; add `vite` and minimal Vite config. - Update npm scripts: - `start` → Vite dev server (`vite`) for local development (no build step). - `build` → `vite build` (no behavioral changes intended). - `preview` → `vite preview` (for later, if needed). - Move to Vite’s project layout (e.g., `index.html` at root, same `src/` code and assets). - No dependency upgrades beyond swapping the build tool.
Updated the default port in which te client runs to the specified in the requirements port 8080. ## Key changes - Updated server to 8080 in vite.config.ts file. - Upgraded proxy specifications to cleaner requests and behavior. No breaking changes, yet.
* Fix multiple Api calls Fixed the bug where multiple calls to the backend where made for no reason ## Key changes - Updated DataProvider - Added exposed component to interact with the one and only DataContext context. * Updated testing configuration Upgraded the testing configuration to be compatible with vitest new variables, and avoid problems in the future. ## Key changes - Updated gitignore to avoid constantly modifying package lock - Commiting for the last time package-lock changes - Added test parameters in app config to allow smooth testing - Added jsdom dependency to devDependencies -Added globals to frame config to allow testing, easier. * Context testing Added two more testing files to test the context, to make testing more robust. ## Key changes - Created DataContext.test.tsx - Created SearchContext.test.tsx * Testing working again Testing fixed after the migration from CRA to Vite. For this fix was necessary to strengthen the contexts and all the components that make contact with the Api <- Refactored these files. Added test script to package to allow npm to run the tests. ## Key changes - Fixes InventoryTablePageSelector.test.tsx, InventoryTable.test.tsx, NewProductButton.test.tsx, ProductForm.test.tsx. - Updated DataContext.test.tsx, SearchContext.test.tsx - Refactored for the new context management: - InventoryTable.tsx, - InventoryTableObj.tsx, - InventoryTablePageSelector.tsx - EncoraContent.tsx ## Breaking or pending changes - SearchBar component testing is still pending - Update documentation to the new version Signed-off-by: Leonardo Trevizo <leonardo.trevizo@encora.com>
Finally deleted this directory
PR SummaryWHAT Changed
WHY It Matters
RISKS
TESTS to Add
BREAKING CHANGES
Changed File Paths
|
62e9a36
into
18-fix-dependencies-vulnerabilities
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore(build): migrate from CRA (react-scripts) to Vite (React + TS) — no functional changes
Important:
Key changes
react-scripts; addviteand minimal Vite config.start→ Vite dev server (vite) for local development (no build step).build→vite build(no behavioral changes intended).preview→vite preview(for later, if needed).index.htmlat root, samesrc/code and assets).More info below.