Repository navigation
Conversation
🤖 PR Review
🛡️ Security Review✅ No high-severity vulnerabilities detected. 🚦 Auto-approve🙋 Manual review recommended for the following reason(s):
Automated pre-review — human approval still required. |
🟡 Quality review · 4 findings
High-level — This is a flag-gated, additive, server-only chart-data API for dashboard date filters, but the chart service still swaps the client's filter for the saved one and repeats binding resolution that PageLayoutFilterBindingReadService already does. 💬 4 inline comments on the diff. Reviewed against the |
| continue; | ||
| } | ||
|
|
||
| const binding = resolveEffectiveFlatEntity({ |
There was a problem hiding this comment.
🟡 Nit · High-level · extend existing seams
ChartPageFilterService rebuilds the binding lookup (getPageLayoutFilterBindings → resolveEffectiveFlatEntity → isActive → validatePageLayoutFilterBindingTarget) already in PageLayoutFilterBindingReadService
The same pipeline now lives in two places (engine/metadata-modules/page-layout-filter/services/page-layout-filter-binding-read.service.ts is the other), so a change to how active or valid bindings are resolved has to be made twice or the two will drift. Add a by-widget/by-filter-id lookup to the read service and call it here.
Confidence Score: 4/5
[Medium impact] The change affects dashboard chart queries across three chart types. Fix the dropped value-free date filters before merging. Findings
SummaryAdds server support for dashboard date filters on bar, line, and pie charts.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Chart request] --> B{Filter values supplied and flag enabled?}
B -->|No| C[Use requested chart filter]
B -->|Yes| D[Load saved chart and bindings]
D --> E[Check binding targets]
E --> F[Convert dashboard dates]
F --> G[Compile date filters]
G --> H[Combine with saved chart filter]
C --> I[Run grouped chart query]
H --> I
Reviews (1) · Last reviewed commit: "Apply dashboard date filters to chart qu..." · Reviewed by Greptile |
🔍 Visual Regression Review —
|
| Story | Verdict | Confidence | Explained by | |
|---|---|---|---|---|
| 🟡 | modules-sidepanel-snoozeaichat--day-and-time-picker |
uncertain | 60% | none (time-dependent content) |
| 🟡 | ui-data-field-input-richtextfieldinput--default |
uncertain | 55% | none |
| 🟡 | modules-objectrecord-recordform-recordformfieldinputs--address |
uncertain | 55% | none |
| 🟡 | ui-data-field-form-input-formmultirecordpicker--multiple-selection-and-session-r… |
uncertain | 50% | none |
| 🟡 | ui-input-internal-date-datepicker--clear-selection |
uncertain | 70% | none (date-dependent story) |
| 🟡 | modules-pagelayout-widgets-recordpagenotewidget--dashboard-selection |
uncertain | 55% | none |
| 🟡 | modules-pagelayout-widgets-recordpagenotewidget--select-and-format-text |
uncertain | 55% | none |
| 🟡 | modules-ai-aichattab--new-chat-suggested-prompt |
uncertain | 60% | none (random suggested prompt) |
| 🟡 | modules-objectrecord-recordcalendar-grid--week |
uncertain | 70% | none (date-dependent story) |
| 🟡 | modules-objectrecord-recordcalendar-grid--day |
uncertain | 60% | none (date-dependent story) |
Changed stories
| Story | Diff % |
|---|---|
| modules-sidepanel-snoozeaichat--day-and-time-picker | 19% |
| ui-data-field-input-richtextfieldinput--default | 16% |
| modules-objectrecord-recordform-recordformfieldinputs--address | 11% |
| ui-data-field-form-input-formmultirecordpicker--multiple-selection-and-session-reset | 5% |
| modules-pagelayout-widgets-recordpagenotewidget--dashboard-selection | 1% |
| modules-pagelayout-widgets-recordpagenotewidget--select-and-format-text | 1% |
| ui-input-internal-date-datepicker--clear-selection | 1% |
| modules-sidepanel-composerpages--calendar-event-without-account-permission | 0% |
| modules-sidepanel-composerpages--calendar-event-without-accounts | 0% |
| modules-objectrecord-recordcalendar-grid--week | 0% |
| modules-objectrecord-recordcalendar-grid--month | 0% |
| modules-sidepanel-recordcreationflow--submit-with-button | 0% |
| modules-sidepanel-recordcreationflow--submit-with-command-enter | 0% |
| modules-sidepanel-recordcreationflow--retry-after-failed-creation | 0% |
| modules-sidepanel-recordcreationflow--submit-with-control-enter | 0% |
| modules-ai-aichattab--new-chat-suggested-prompt | 0% |
| modules-objectrecord-recordcalendar-grid--day | 0% |
| modules-ai-aichattab--open-original-from-reply | 0% |
| pages-settings-mcpservers-settingsaimcpserverdetail--sync-keeps-unsaved-edits | 0% |
| modules-sidepanel-composerpages--calendar-event | 0% |
| modules-activities-files-videopreview--player | 0% |
| modules-activity-taskgroups--empty | 0% |
| modules-ai-aichattab--reply-to-teammate | 0% |
| modules-settings-mcp-settingsmcpsetup--default | 0% |
View run details · advisory mode
|
🚀 Preview Environment Ready! Your preview environment is available at: https://proportion-tried-queries-camp.trycloudflare.com This environment will automatically shut down after 5 hours. |
f31d6b3 to
a4618a5
Compare
🔍 Visual Regression Review —
|
| Story | Diff % |
|---|---|
| ui-components-datepicker-interactions--css-variable-spacing | 0% |
| ui-components-datepicker-interactions--external-month-change | 0% |
| ui-icon-icon--constrained-rows | 0% |
View run details · advisory mode
| }, | ||
| queryContext, | ||
| ), | ||
| shouldIncludeUngroupedAggregate && isDefined(pageFilters) |
There was a problem hiding this comment.
🟡 Nit · Low-level · Return early
A large multi-line ternary with a nested ternary for the filter (lines 331-336) is added inline in the array, which is harder to read than early-returned or extracted conditional logic.
Also on lines 329–343.
What
Server side of dashboard date filters. The bar, line, and pie chart data queries accept dashboard filter values and apply them on top of the chart's own filter. No UI here: the filter bar and editor are in #32389.
How
pageFilterValueslist (filter id, operand, value) next towidgetId.ChartPageFilterServicereads the saved chart and its saved bindings, turns each value into a rule on the bound date field, and combines it with the chart's saved filter through the existing record query compiler. Values for a chart that is not saved, or does not match the request, are rejected.IS_DASHBOARD_FILTERS_ENABLEDgates all of it. Builds on Save and load dashboard filter widget bindings #32230.Testing