Repository navigation
fix(ui): use luxon for push timestamps, dropping the moment import - #1915
Merged
Merged
Conversation
Signed-off-by: arpitjain099 <arpitjain099@gmail.com>
|
|
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.Built without sensitive environment variables
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1915 +/- ##
=======================================
Coverage 88.98% 88.98%
=======================================
Files 132 132
Lines 7281 7281
Branches 1365 1365
=======================================
Hits 6479 6479
Misses 494 494
Partials 308 308 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jescalada
approved these changes
Nov 25, 2026
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
src/ui/utils/pushUtils.tsimportsmoment, whichpackage.jsondoes not declare. It resolves onlybecause npm hoists it out of the devDependency
quicktype. With that copy absent,check-types:serverfails withTS2307: Cannot find module 'moment'. It was the lastmomentuse,so
getDisplayTimestampnow renders with luxon andDateTime.DATETIME_MED, matchingCommitDataTableandPushDetails.Its three tests asserted the output contained
'2022', true only at or ahead of UTC, so they fail ona clean checkout in EST. They now derive the expected string.
depcheckruns with--skip-missing,which is why CI never saw this. Would you rather
momentwere simply added topackage.json? Pleaselet me know. AI assistance was used here; your commit skill allows no trailer beyond
Signed-off-by, so it is disclosed in this description.Related Issue
None
Checklist
General
Documentation
Configuration
config.schema.json) was modified:npm run generate-config-types)npm run gen-schema-doc)Tests
npm test)npm run lintandnpm run format:check)npm run check-types)