Skip to content

feat: move componentes para seus domínios corretos (#740)#860

Merged
Thigas014 merged 2 commits into
devfrom
740-16---refatoração-de-componentes-para-domínios
Jun 16, 2026

Hidden character warning

The head ref may contain hidden characters: "740-16---refatora\u00e7\u00e3o-de-componentes-para-dom\u00ednios"
Merged

feat: move componentes para seus domínios corretos (#740)#860
Thigas014 merged 2 commits into
devfrom
740-16---refatoração-de-componentes-para-domínios

Conversation

@Dario-Arthur

Copy link
Copy Markdown
Contributor

Descrição:
O que foi feito
Movidos componentes específicos de domínio que estavam no escopo global para seus domínios corretos, seguindo a arquitetura de Vertical Slicing do projeto.
Componentes movidos:
Componente originalDestinosrc/components/AnnualRegistryEditModal.tsxsrc/domains/patients/annual-registry/annual-registry-edit-modal.tsxsrc/components/DocumentCategoriesCard.tsxsrc/domains/documents/shared/document-categories-card.tsxsrc/components/fileCard.tsxsrc/domains/documents/shared/file-card.tsxsrc/components/FileRestoreAlert.tsxsrc/domains/documents/shared/file-restore-alert.tsx
Imports atualizados

src/app/patients/[id]/page.tsx
src/app/patients/[id]/documents/[type]/page.tsx

Critérios de aceite atendidos

✅ Componentes movidos corretamente
✅ Imports atualizados
✅ Arquivos em kebab-case
✅ Componentes renderizando corretamente

Observações

Os arquivos originais em src/components/ foram mantidos intencionalmente pois podem ter outras dependências ainda não mapeadas.
TranstornosListItem.tsx não foi movido pois o equivalente disorder-list-item.tsx já foi criado na issue #731 e nenhum arquivo importa o original.
FileRestoreAlert não possui importadores ativos, foi movido preventivamente para o domínio correto.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 083fda00-2eae-4dc9-a39b-86b9d6af97e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 740-16---refatoração-de-componentes-para-domínios

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jefter-dev jefter-dev self-requested a review June 13, 2026 19:50
Comment thread apps/apae/src/domains/documents/shared/file-card.tsx

@jefter-dev jefter-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Thigas014 Thigas014 marked this pull request as ready for review June 16, 2026 11:09
@Thigas014 Thigas014 merged commit 65272df into dev Jun 16, 2026
2 checks passed
@Thigas014 Thigas014 deleted the 740-16---refatoração-de-componentes-para-domínios branch June 16, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants