adicionado enum e campo do prazo - #517
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (21)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdds five monitoring report deadline categories with day mappings and labels. Notices store and validate the selected deadline, expose it to Inertia pages, and edit it in notice and project interfaces. Monitoring calculations now use the configured deadline duration. ChangesMonitoring report request deadlines
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to This change adds a monitoring-report request deadline to notices and carries it through the related application screens and validations. No actionable merge-blocking risk remains in the supplied evidence after normal checks and review. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant NoticeController
participant NupDialog
participant NoticeStoreRequest
participant Notice
NoticeController->>NupDialog: Provides deadline options
NupDialog->>NoticeStoreRequest: Submits selected deadline
NoticeStoreRequest->>Notice: Validates and stores enum value
Notice-->>NupDialog: Returns deadline value and calculated days
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 15 files. (6 skipped: 6 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
resources/js/Components/EditableField.vueESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. resources/js/Pages/Notices/Index.vueESLint skipped: the matched ESLint configuration already failed (missing-dependency). resources/js/Pages/Notices/NoticesListPage.vueESLint skipped: the matched ESLint configuration already failed (missing-dependency).
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
| if (!paymentDate || !signedAt) return null; | ||
|
|
||
| const daysBetweenSignedAndPayment = daysBetweenDates(signedAt, paymentDate); | ||
| const requestDeadlineDays = Number(project.notice?.monitoring_report_request_deadline_days ?? 120); |
There was a problem hiding this comment.
Remover o fallback ?? 120 e garantir que o backend nunca mande null, pois se um dia precisar mudar os dias, mudará somente no Enum do php.
✅ Descrição do propósito desse Pull Request
🧭 Referência a Issue
[#466 ]
❓ O que foi feito para atingir isso?
🏃♀️ Tipo de mudança
Marque as opções relevantes:
🕵️ Como foi testado?
Checklist: ✔️
Observação:
Summary by CodeRabbit
New Features
Bug Fixes
Tests