Skip to content

fix(ui): use luxon for push timestamps, dropping the moment import - #1915

Merged
jescalada merged 1 commit into
finos:mainfrom
arpitjain099:fix/ui-timestamp-luxon
Nov 25, 2026
Merged

jescalada merged 1 commit into
finos:mainfrom
arpitjain099:fix/ui-timestamp-luxon

Conversation

@arpitjain099

Copy link
Copy Markdown
Contributor

Description

src/ui/utils/pushUtils.ts imports moment, which package.json does not declare. It resolves only
because npm hoists it out of the devDependency quicktype. With that copy absent,
check-types:server fails with TS2307: Cannot find module 'moment'. It was the last moment use,
so getDisplayTimestamp now renders with luxon and DateTime.DATETIME_MED, matching
CommitDataTable and PushDetails.

Its three tests asserted the output contained '2022', true only at or ahead of UTC, so they fail on
a clean checkout in EST. They now derive the expected string. depcheck runs with --skip-missing,
which is why CI never saw this. Would you rather moment were simply added to package.json? Please
let 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

  • Documentation has been added/updated for any new features

Configuration

  • If configuration schema (config.schema.json) was modified:
    • TypeScript types regenerated (npm run generate-config-types)
    • Schema reference docs regenerated (npm run gen-schema-doc)

Tests

  • Tests have been added/updated for new functionality
  • Unit tests pass (npm test)
  • Linting and formatting pass (npm run lint and npm run format:check)
  • Type checks pass (npm run check-types)

Signed-off-by: arpitjain099 <arpitjain099@gmail.com>
@arpitjain099
arpitjain099 requested a review from a team as a code owner November 24, 2026 14:35
@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: arpitjain099 / name: arpitjain099 (d5e5040)

@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit d5e5040
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6b05a09bbec194b63fd72b78

@github-actions github-actions Bot added the fix label Nov 24, 2026
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.98%. Comparing base (ceb88d2) to head (d5e5040).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jescalada
jescalada merged commit a096856 into finos:main Nov 25, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants