Overhaul with Zustand, New Roles, and UI Enhancements #3
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.
This pull request introduces a significant overhaul of the Stacky application, modernizing its state management, expanding its features, and improving the overall user experience. The primary goal was to refactor the codebase for better scalability and maintainability while adding valuable new functionality for users.
Changes Made:
State Management Refactor with Zustand- Replaced the original useStacky custom hook with a centralized Zustand store (src/store/quizStore.js). This simplifies state logic and makes the components cleaner and more focused on rendering.
Expanded Career Paths- Added two new roles: "DevOps" and "App Developer," making the quiz more comprehensive. Updated the questions in src/data/questions.js to support the new roles.
Centralized Role Data- Created a new src/data/roles.js file to store all role titles and descriptions for easy future inclusions/exclusions. The Zustand store now dynamically pulls from this file, making it easy to add or modify roles in the future without touching the application logic.
Added UI Progress Bar- Implemented a new ProgressBar component to give users a visual indication of their progress through the quiz.
This is a screenshot of the ui with the progress bar.