fix(core): MR-772 calendário do DateRange/DatePicker na largura dos dois campos - #1257
Merged
igor-monteiro-almeida merged 4 commits intoSep 18, 2026
Merged
Conversation
O container do calendário deixa de ser filho da grid (ocupava só a primeira coluna) e passa a ser posicionado sob a linha dos campos, na largura inteira e sobreposto ao conteúdo seguinte (drawers/modais não sofrem reflow). Labels alinhadas ao Input vizinho. Stories para drawer, modal e linha com Input. Co-authored-by: Igor Monteiro <igor.monteiro@useblu.com.br> Co-Authored-By: igor.monteiro <igor.monteiro@useblu.com.br>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
Original prompt from igor.monteiro
|
Co-authored-by: Igor Monteiro <igor.monteiro@useblu.com.br> Co-Authored-By: igor.monteiro <igor.monteiro@useblu.com.br>
…erro (mr-772)
- error/helperText aceitam { from, to } além de boolean/string (compatível)
- calendário fecha quando um erro chega, para a mensagem ficar visível
- DatePicker (data única) mantém boolean/string
Co-authored-by: Igor Monteiro <igor.monteiro@useblu.com.br>
Co-Authored-By: igor.monteiro <igor.monteiro@useblu.com.br>
igor-monteiro-almeida
approved these changes
Sep 18, 2026
igor-monteiro-almeida
marked this pull request as ready for review
September 18, 2026 13:09
|
igor-monteiro-almeida
deleted the
fix/MR-772-date-range-calendar-full-width
branch
September 18, 2026 13:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
O
DateRangeabria o calendário com meia largura, alinhado só sob o primeiro campo:.ods-date__calendar-containerera o terceiro filho da grid.ods-date__form-row(2 colunas), então caía na primeira coluna da linha seguinte e ainda criava uma linha extra (empurrava o conteúdo abaixo em drawers/modais). Cada MFE do portal remendou isso localmente (16 remendos em 8 MFEs).1. Layout (
ocean-core, sem mudar a API)_calendar_m2 { top: 150px }(≤321px) e ostopdos_calendar_m1/_m2, que compensavam o posicionamento antigo.DatePickerganhaods-date__calendar-container--inlinequandoinline.Components/DateRange:InsideDrawer,InsideModal,InlineWithInput,NarrowContainer.2. Erro por campo (
ocean-react, aditivo e retrocompatível)errorehelperTextdoDateRange/DatePickerpassam a aceitar também um objeto por campo:error={{ from: true }}marca só "De";helperText={{ from: '...' }}mostra a mensagem só nele.useDateRange:setShowDayPicker(false)) para não cobrir a mensagem; ohelperTexté omitido enquanto o calendário está aberto.PerFieldError.Jira: MR-772 · Ledger: MR-772 · Preview aprovado: https://dist-yklhlpxf.devinapps.com
Consumidores que removem os remendos após a publicação:
Pagnet/mfe-core#370e as 8 PRs listadas no Ledger;Pagnet/mfe-statement#134usa o erro por campo.Types of changes
How Has This Been Tested?
yarn jest packages/ocean-react/src/Date— 39 testes, 2 snapshots OK (inclui erro por campo e fechamento do calendário).eslint+stylelintnos arquivos alterados.mr772(18/09): cenários de layout aprovados pelo design.Screenshots (if appropriate):
Ver preview: https://dist-yklhlpxf.devinapps.com
Checklist:
Link to Devin session: https://app.devin.ai/sessions/fd793ad203934b328e6c968bfba5b89f
Open in Devin Desktop: https://app.devin.ai/desktop/session/fd793ad203934b328e6c968bfba5b89f?variant=devin
Requested by: @igor-monteiro-almeida