Conversation
…elated issues and features
…ng and debugging logs
…label in auto-kanban script
… deploy workflows
- Introduced ChoiceList, SceneCard, and StatusPanel components for better UI structure. - Created layout components: Background, FooterNav, Header, Loader, Menu, Panel, Sidebar, and ToasterResponsive. - Added standard components: AlertError, Button, GenericTable, H1, and Input for consistent UI elements. - Implemented hooks for managing discipline XP, inventory, milestones, saves, and scenes. - Established context and provider for active save management. - Enhanced global styles with a new color theme. - Updated e2e tests to reflect changes in routing.
- Created a new documentation file for the migration of enums and refactoring of their usage, detailing schemas for races, animals, skills, and disciplines. - Included constants and versioning for the database. - Outlined a clear action plan for implementation. chore: organize project structure according to DDD principles - Established a new organizational structure for the project following Domain-Driven Design (DDD) principles. - Defined directories for core utilities, domain logic, infrastructure, services, and UI components.
- Moved types from '@/core/types' to '@/types' for better structure. - Updated import paths in various components and hooks to reflect the new types location. - Refactored logging to use a unified logging method with specific log levels (info, error). - Commented out unused code in animal and stats helpers for future cleanup. - Removed the milestone hook as it was no longer needed. - Adjusted save creation logic to streamline the process and ensure consistency.
…es, races, skills, stats, and logs - Introduced LOG_TYPE, SKILL_TYPE, STAT_TYPE, and XP_TYPE constants with derived types. - Created seed data for animals, disciplines, inventories, races, skills, stats, and logs. - Removed obsolete seed files for character, item, quest, reputation, rule, scene, and tag. - Updated schemas to use enums for validation in animals and disciplines. - Refactored database population logic to include new seed data. - Adjusted hooks and components to align with new data structures and types.
…e colors, and weekdays
…ills, stats, and XP records - Renamed ANIMALS_ENUM to ANIMAL_ENUM for consistency. - Added new disciplines to DISCIPLINE_ENUM and updated related seeds. - Created ITEM_ENUM and ITEM_SCHEMA for item management. - Renamed RACES_ENUM to RACE_ENUM for consistency. - Renamed SKILLS_ENUM to SKILL_ENUM and added new skills. - Renamed STATS_ENUM to STAT_ENUM and expanded stats. - Introduced XP_ENUM to consolidate skills and disciplines. - Updated schemas to use enums for validation. - Refactored seed files to align with new enum and schema structures. - Removed obsolete items_list seed file. - Adjusted imports across the application to reflect changes.
…ventories, items, logs, races, saves, scenes, sheets, skills, stats, statsBase, and xpRecords
…ulk database operations
…ons for consistency
… for existing records
… sheet, stats, and xpRecord schemas and repository functions
…t utilities, and repository tests for saves and sheets
…ds with tests and documentation
…y and testability
… RPG-Kings repository
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Deleção segura de save e dados relacionados
…essages - Introduced a new logging structure using LOG_MESSAGES constants for better consistency and maintainability. - Removed the deprecated formatMessage utility and updated all service files to utilize the new logging format. - Enhanced error handling in hooks and services to provide more informative log messages. - Updated unit tests to reflect changes in logging structure and ensure proper message formatting.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Padronização do logger e refatoração de serviços
Contributor
There was a problem hiding this comment.
Pull request overview
This PR represents the v1.0.0 stable release, consolidating major refactoring work including architectural reorganization (ui > hook > service > repo > db), standardization of the logging system with centralized persistence, improvements to Dexie migrations and schemas, updated unit and E2E test coverage with fake-indexeddb, and refinements to CI/CD workflows.
Key Changes:
- Architectural refactoring to enforce responsibility flow: ui > hook > service > repo > db
- Standardized logger service with centralized log persistence in repository layer
- Updated Dexie migrations (v3-to-v4) and consolidated Zod schemas
- Enhanced test infrastructure using fake-indexeddb for better DB isolation
Reviewed changes
Copilot reviewed 276 out of 314 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/infra/dexie/migrations/*.test.ts | New migration tests for v3-to-v4 database schema changes |
| tests/setup/*.ts | Test setup files for fake-indexeddb and log silencing |
| src/ui/hooks/* | Refactored hooks with updated import paths and error handling |
| src/ui/components/* | New and refactored UI components following domain separation |
| src/services/* | New service layer implementing business logic with standardized logging |
| src/infra/repositories/* | New repository layer for data access |
| src/infra/schemas/* | Consolidated Zod schemas organized by domain entity |
| src/infra/dexie/* | Database setup, migrations, seeds, and utilities |
| src/domain/* | Domain layer with models, types, constants, and utilities |
| package.json | Updated dependencies and test scripts |
| jest.config.mjs | New Jest configuration with fake-indexeddb setup |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Release v1.0.0 — Lançamento principal
Versão
Descrição (resumo)
ui > hook > service > repo > db), padronização do sistema de logging, melhorias nas migrações do Dexie, atualização e cobertura de testes unitários e E2E, e refinamentos em workflows de CI/CD.v1.0.0) que sinaliza estabilidade de APIs internas e readiness para usuários/colaboradores.Destaques
ui > hook > service > repo > db.logger.servicee persistência de logs centralizada em repositório.fake-indexeddbe garantir isolamento de DB em testes.Breaking Changes
@/components→@/ui/components, etc.).logger.servicefoi alterada; consumidores diretos devem atualizar chamadas.Checklist
docs/CHANGELOG.mdatualizado com entradas relevantes.Resumo (1-2 linhas): Marco inicial estável (
v1.0.0) consolidando refatorações, padronização de logging, migrações e cobertura de testes.Assinatura: @StephHoel
Branch:
v1.0.0