Feature/seplan bk90 atualizacao componente texto#614
Feature/seplan bk90 atualizacao componente texto#614GustavoFSoares wants to merge 12 commits intohomolfrom
Conversation
📝 WalkthroughWalkthroughThis pull request adds comprehensive documentation for frontend components and refactors form field bindings across multiple views. The changes systematically remove explicit Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Deploying smae with
|
| Latest commit: |
c7d5849
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9837232d.smae.pages.dev |
| Branch Preview URL: | https://feature-seplan-bk90-atualiza.smae.pages.dev |
| /> | ||
| </Field> | ||
| :disabled="bloquearCampos" | ||
| :aria-disabled="bloquearCampos" |
There was a problem hiding this comment.
@GustavoFSoares , não gostei do uso do disabled e do aria-disabled ao mesmo tempo aqui. Faz sentido ambos existirem, mas não sei se vale serem usados nesse caso. Eles deveriam ser excluídos do submit? Essa página usa controlledValues?
Acho que a implementação de aria-disabled poderia ativar um readonly. Que acha?
There was a problem hiding this comment.
acho que pode ser só readonly nesses casos
robsonsobral
left a comment
There was a problem hiding this comment.
@GustavoFSoares , você testou todas essas páginas? Acho que só tem uma que me deixa encucado.
Não lembro se a gente preparou o componente para o uso do atributo standalone do Vee-validate.
1539c6d to
2c0fa9e
Compare
robsonsobral
left a comment
There was a problem hiding this comment.
Fez uma branch dependente da outra?
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
d0a94e6 to
c7d5849
Compare
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
frontend/src/views/licoesAprendidas/LicoesAprendidasCriarEditar.vue (1)
80-85:⚠️ Potential issue | 🟠 MajorMigrate from
<Form>wrapper touseFormcomposition.The
<Form disabled>prop is ineffective—it doesn't disable nested controls. While the submit button is properly locked viaisSubmittingand the spinner overlay provides visual feedback, this component should follow the project's pattern of usinguseForm(as inVariaveisCriarEditar.vue) instead of the deprecated<Form>wrapper. The disabled prop on Form can be removed; the actual form locking is already handled by button state and the overlay.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@frontend/src/views/licoesAprendidas/LicoesAprendidasCriarEditar.vue` around lines 80 - 85, Replace the deprecated <Form> wrapper with the composition API useForm pattern used in VariaveisCriarEditar.vue: remove the disabled prop on the <Form> element and refactor this component to call useForm() in setup, passing initialValues (itemParaEdicao), validation schema (schema) and the submit handler (onSubmit) to the returned form context, then bind form state (errors, isSubmitting, setFieldValue) from useForm to the template controls; ensure chamadasPendentes.emFoco is no longer used as a Form prop and that submit button still uses isSubmitting and the spinner overlay continues to provide the lock.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@frontend/src/views/licoesAprendidas/LicoesAprendidasCriarEditar.vue`:
- Around line 80-85: Replace the deprecated <Form> wrapper with the composition
API useForm pattern used in VariaveisCriarEditar.vue: remove the disabled prop
on the <Form> element and refactor this component to call useForm() in setup,
passing initialValues (itemParaEdicao), validation schema (schema) and the
submit handler (onSubmit) to the returned form context, then bind form state
(errors, isSubmitting, setFieldValue) from useForm to the template controls;
ensure chamadasPendentes.emFoco is no longer used as a Form prop and that submit
button still uses isSubmitting and the spinner overlay continues to provide the
lock.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: df7f39e2-e01a-4ca7-a6a8-912373a5bd22
📒 Files selected for processing (19)
.gitignorefrontend/CLAUDE.mdfrontend/src/components/MenuPaginacao.mdfrontend/src/components/SmaeTable/README.mdfrontend/src/components/camposDeFormulario/SmaeText/SmaeText.vuefrontend/src/views/acompanhamentos/AcompanhamentosCriarEditar.vuefrontend/src/views/demandas/DemandasCriarEditar.vuefrontend/src/views/licoesAprendidas/LicoesAprendidasCriarEditar.vuefrontend/src/views/mdo.acompanhamentos/AcompanhamentosCriarEditar.vuefrontend/src/views/mdo.portfolios/PortfoliosCriarEditar.vuefrontend/src/views/metas/AddEdit.vuefrontend/src/views/riscos/RiscosCriarEditar.vuefrontend/src/views/tarefas/TarefasCriarEditar.vuefrontend/src/views/transferenciasVoluntarias/RegistroDeTransferenciaCriarEditar.vuefrontend/src/views/transferenciasVoluntarias/TransferenciaDistribuicaoDeRecursos/TransferenciaDistribuicaoDeRecursosCriarEditar.vuefrontend/src/views/transferenciasVoluntarias/TransferenciasVoluntariasCriarEditar.vuefrontend/src/views/valoresLimites/ValoresLimitesCriarEditar.vuefrontend/src/views/variaveis/CicloAtualizacao/CicloAtualizacaoModalAdicionar.vuefrontend/src/views/variaveis/VariaveisCriarEditar.vue
💤 Files with no reviewable changes (10)
- frontend/src/views/tarefas/TarefasCriarEditar.vue
- frontend/src/views/transferenciasVoluntarias/TransferenciaDistribuicaoDeRecursos/TransferenciaDistribuicaoDeRecursosCriarEditar.vue
- frontend/src/views/mdo.portfolios/PortfoliosCriarEditar.vue
- frontend/src/views/variaveis/VariaveisCriarEditar.vue
- frontend/src/views/transferenciasVoluntarias/TransferenciasVoluntariasCriarEditar.vue
- frontend/src/views/acompanhamentos/AcompanhamentosCriarEditar.vue
- frontend/src/views/transferenciasVoluntarias/RegistroDeTransferenciaCriarEditar.vue
- frontend/src/views/variaveis/CicloAtualizacao/CicloAtualizacaoModalAdicionar.vue
- frontend/src/views/mdo.acompanhamentos/AcompanhamentosCriarEditar.vue
- frontend/src/views/riscos/RiscosCriarEditar.vue



Task ID
Summary by CodeRabbit
Release Notes
Documentation
MenuPaginacaoandSmaeTablecomponents.Refactor
SmaeTextcomponent documentation to reflect current usage modes.