Skip to content

Add Motivo, Informação Adicional fields, modal user search, and Data de fim to semanasrepetidas script#91

Merged
marpisco merged 4 commits intomainfrom
copilot/add-informacao-e-motivo-textboxes
Dec 2, 2025
Merged

Add Motivo, Informação Adicional fields, modal user search, and Data de fim to semanasrepetidas script#91
marpisco merged 4 commits intomainfrom
copilot/add-informacao-e-motivo-textboxes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 2, 2025

Enhances the semanasrepetidas admin script with customizable reservation fields and improved UX for user selection.

Changes

  • Added "Motivo" and "Informação Adicional" fields

    • Motivo autofills to "Importada automaticamente do horário" (editable)
    • Informação Adicional is optional, no autofill
  • Replaced user dropdown with modal searchbox

    • Matches pattern from reservar/index.php
    • Search by name or email
    • "Procurar" / "Limpar" buttons with client-side validation
  • Replaced "Número de semanas" with "Data de fim"

    • Uses date range instead of week count
    • Validates selected day-of-week falls within range
    • Shows warning if no occurrences exist in range
  • Fixed label overflow

    • Added CSS text-overflow: ellipsis for floating labels

Screenshot

Original prompt

In the semanasrepetidas script, I need you to add a "Informação Adicional" e "Motivo" textbox to the options. I need to be able to specify this information.

Autofill Motivo to be "Importada automaticamente do horário". Informações Adicionais doesn't need to be autofilled. The autofill must not be permanent and can be changeable.

Change the user method to be like in reservas/index.php, with a modal searchbox, in order to accomodate for a lot of users being in the platform.

Remove número de semanas and do "Data de fim". Keep in mind that the label for the date is overflowing, but that's fine if you don't fix it, but it'd be preferrable if you could fix it.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 2, 2025 14:31
…ta de fim to semanasrepetidas script

Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
…ning for invalid day-of-week selection

Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
Co-authored-by: marpisco <162377105+marpisco@users.noreply.github.com>
Copilot AI changed the title [WIP] Add additional information and reason textboxes to semanasrepetidas Add Motivo, Informação Adicional fields, modal user search, and Data de fim to semanasrepetidas script Dec 2, 2025
Copilot AI requested a review from marpisco December 2, 2025 14:37
@marpisco
Copy link
Copy Markdown
Owner

marpisco commented Dec 2, 2025

Validação

@marpisco marpisco marked this pull request as ready for review December 2, 2025 15:21
@marpisco marpisco merged commit 5bd68b0 into main Dec 2, 2025
5 checks passed
@marpisco marpisco deleted the copilot/add-informacao-e-motivo-textboxes branch December 2, 2025 15:25
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.

2 participants