Skip to content

Release v1.0.0 — Lançamento principal | Close#6#32

Merged
StephHoel merged 91 commits into
developfrom
v1.0.0
Dec 2, 2025
Merged

Release v1.0.0 — Lançamento principal | Close#6#32
StephHoel merged 91 commits into
developfrom
v1.0.0

Conversation

@StephHoel
Copy link
Copy Markdown
Owner

Release v1.0.0 — Lançamento principal

Versão

  • Versão (SemVer): 1.0.0
  • Data: 2025-12-01

Descrição (resumo)

  • O que foi feito: Consolidação e estabilização das principais funcionalidades do projeto, incluindo reorganizações arquiteturais (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.
  • Por que: preparar o projeto para um marco estável inicial (v1.0.0) que sinaliza estabilidade de APIs internas e readiness para usuários/colaboradores.

Destaques

  • Refatoração estrutural para reforçar o fluxo de responsabilidade: ui > hook > service > repo > db.
  • Padronização do logger.service e persistência de logs centralizada em repositório.
  • Migrações e schemas: organização das versões do Dexie, ajustes em migrations e centralização de schemas Zod.
  • Atualizações nos testes (unitários e E2E) para usar fake-indexeddb e garantir isolamento de DB em testes.
  • Melhoria em workflows do GitHub Actions e scripts de CI para builds e testes mais robustos.

Breaking Changes

  • Imports reorganizados e caminhos alterados (@/components@/ui/components, etc.).
  • Mudanças em schemas e migrations do Dexie que podem afetar scripts de inicialização do DB.
  • API interna do logger.service foi alterada; consumidores diretos devem atualizar chamadas.

Checklist

  • Testes unitários e E2E atualizados e revisados localmente.
  • docs/CHANGELOG.md atualizado 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

- 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.
…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
… sheet, stats, and xpRecord schemas and repository functions
…t utilities, and repository tests for saves and sheets
StephHoel and others added 18 commits November 29, 2025 08:32
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
@StephHoel StephHoel added this to the v1.0.0 milestone Dec 2, 2025
@StephHoel StephHoel requested a review from Copilot December 2, 2025 01:37
@StephHoel StephHoel self-assigned this Dec 2, 2025
@StephHoel StephHoel added area/api Área: API/serviços type/epic Tipo: epic — agrupa várias tasks/features relacionadas labels Dec 2, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/unit/infra/dexie/migrations.v3-to-v4.disciplines.test.ts Outdated
Comment thread src/ui/providers/activeSaveState.ts
Comment thread src/pages/index.tsx Outdated
Comment thread src/domain/constants/enum/item.enum.ts
Comment thread package.json
StephHoel and others added 3 commits December 1, 2025 22:47
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>
@StephHoel StephHoel merged commit a410297 into develop Dec 2, 2025
@StephHoel StephHoel deleted the v1.0.0 branch December 2, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Área: API/serviços type/epic Tipo: epic — agrupa várias tasks/features relacionadas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants