Skip to content

refactor(DAO-2005): consolidate staking, vault, proposal formatters and remove moment from Countdown [5/5]#2104

Open
Freshenext wants to merge 1 commit intoDAO-2005-4-my-rewardsfrom
DAO-2005
Open

refactor(DAO-2005): consolidate staking, vault, proposal formatters and remove moment from Countdown [5/5]#2104
Freshenext wants to merge 1 commit intoDAO-2005-4-my-rewardsfrom
DAO-2005

Conversation

@Freshenext
Copy link
Copy Markdown
Collaborator

Summary

  • Remove 3 duplicate formatPeriod functions; replace with shared formatPeriodToMonthYear
  • Replace formatExpandedDate imports with shared formatDateExpanded in vault/history and staking-history
  • Staking CSV route delegates to shared formatDateForCsv with UTC/24h options
  • formatTimestampToMonthYear in proposals delegates to shared formatMonthYear
  • Countdown component uses formatDuration instead of moment.duration, removing the moment.js dependency

Stack: #2100#2101#2102#2103[5/5]

…nd remove moment from Countdown

- Remove duplicate formatPeriod from vault/history, staking-history, and
  staking CSV; replace with shared formatPeriodToMonthYear
- Replace formatExpandedDate imports with shared formatDateExpanded
- Staking CSV route delegates to shared formatDateForCsv with UTC/24h options
- proposals/shared/utils delegates formatTimestampToMonthYear to shared formatMonthYear
- Countdown component uses formatDuration instead of moment.duration
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA fb41c71.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@Freshenext Freshenext self-assigned this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant