refactor: enhance vacation request component and improve error handling

- Updated the SolicitarFerias component to improve the user interface and experience.
- Added validation for overlapping vacation periods and ensured proper error messages are displayed.
- Refactored the logic for adding and removing vacation periods, enhancing code readability and maintainability.
- Improved the handling of form submission and error states for better user feedback.
This commit is contained in:
2025-11-12 14:38:08 -03:00
parent 553fc578a6
commit 3a783727dc
7 changed files with 4030 additions and 3481 deletions

View File

@@ -457,11 +457,7 @@
<h2 class="card-title text-lg">{time.nome}</h2>
</div>
<div class="dropdown dropdown-end">
<button
type="button"
class="btn btn-ghost btn-sm btn-square"
aria-label="Menu do time"
>
<button type="button" class="btn btn-ghost btn-sm" aria-label="Menu do time">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
@@ -671,7 +667,7 @@
</div>
</div>
<button
class="btn btn-sm btn-error btn-square"
class="btn btn-sm btn-error"
onclick={() => removerMembro(membro._id)}
disabled={processando}
aria-label="Remover membro"