feat: Migrate app to TypeScript. Add Unit and UI tests#19
Merged
JoeProgrammer88 merged 1 commit intomainfrom Feb 28, 2026
Merged
feat: Migrate app to TypeScript. Add Unit and UI tests#19JoeProgrammer88 merged 1 commit intomainfrom
JoeProgrammer88 merged 1 commit intomainfrom
Conversation
- Add StorageManager class for managing tasks, projects, habits, finances, rewards, and user stats. - Define interfaces for Task, Project, Habit, FinanceItem, Reward, Purchase, and UserStats. - Implement methods for adding, updating, deleting, and retrieving tasks, projects, habits, expenses, revenue, charges, and rewards. - Include functionality for points management, daily streak tracking, and category management. - Add data export and import capabilities. - Create initial data structure in localStorage if none exists. - Implement unit tests for all functionalities using Vitest. - Configure TypeScript and Vitest for the project.
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.
This pull request introduces major improvements to the project’s development workflow, testing infrastructure, and modularity. It adds continuous integration and deployment pipelines, transitions the codebase to TypeScript modules, expands automated testing with end-to-end coverage, and refines the documentation for developer onboarding. Additionally, the data layer (
StorageManager) now exports as a module and features more robust default data handling and object creation.Development Workflow & CI/CD
.github/workflows/ci.ymlto automate build, test, and end-to-end test steps for pull requests, ensuring code quality and reliability..github/workflows/deploy.ymlto automatically build and deploy the app to GitHub Pages upon successful updates, streamlining releases.Testing Infrastructure
e2e/app.spec.ts, validating all major app features including CRUD operations, navigation, and settings.TypeScript Modularization
index.htmlto loadjs/storage.jsandjs/app.jsas ES modules, enabling better code organization and future scalability.js/storage.jsto exportStorageManageras a module and improved methods for default data initialization and object creation, enhancing reliability and maintainability. [1] [2] [3] [4]Documentation
README.mdto explain the TypeScript project structure, build/test commands, and workflow for contributors.Minor Content Update
index.htmlfor clarity.