fix incorrect date formatting being applied to non-date fields in graph widgets#16254
Merged
charlesBochet merged 3 commits intomainfrom Dec 2, 2025
Merged
fix incorrect date formatting being applied to non-date fields in graph widgets#16254charlesBochet merged 3 commits intomainfrom
charlesBochet merged 3 commits intomainfrom
Conversation
Contributor
Greptile OverviewGreptile SummaryFixes incorrect date formatting being applied to non-date fields in graph widgets by replacing flawed detection logic with proper metadata lookup. Key Changes:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Hook as useGraphBarChartWidgetData
participant Transform as transformGroupByDataToBarChartData
participant Utility as isNestedFieldDateType
participant Metadata as objectMetadataItems
participant Format as formatDimensionValue
Hook->>Hook: useObjectMetadataItems()
Hook->>Transform: Pass objectMetadataItems
Transform->>Transform: Check if field is date (isFieldMetadataDateKind)
Transform->>Utility: isNestedFieldDateType(field, subFieldName, items)
Utility->>Utility: Check if field is relation
Utility->>Metadata: Find target object by nameSingular
Utility->>Metadata: Find nested field in target object
Utility->>Utility: Check if nested field type is date
Utility-->>Transform: Return true/false
Transform->>Transform: Set primaryAxisDateGranularity only if date field
Transform->>Transform: Create sanitizedConfiguration
Transform->>Format: formatDimensionValue(value, field, granularity)
Format->>Format: Only apply date formatting if granularity is defined
Format-->>Transform: Formatted value
|
Contributor
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:34462 This environment will automatically shut down when the PR is closed or after 5 hours. |
charlesBochet
approved these changes
Dec 2, 2025
|
Hey @ehconitin! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
Contributor
|
Thanks @ehconitin for your contribution! |
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.

before -
CleanShot.2025-12-02.at.19.21.40.mp4
after -
CleanShot.2025-12-02.at.19.20.08.mp4