Skip to content

Conversation

@TylerDiorio
Copy link
Contributor

@TylerDiorio TylerDiorio commented Jul 23, 2025

feat: Overhaul progress updates timeline

  • Calculate real % of updates from fundraise start date onward
  • Add 100 RSC incentive info to update rate tooltip
  • Support multiple updates per month with "x3" notation
  • Fix timeline to show months from start date to current (no future months)
  • Fix edge case where new fundraises showed empty timeline
  • Refactor: extract getUpdatesStartDate utility to eliminate code duplication
  • UI: redesign timeline styling and text hierarchy
Screenshot 2025-07-23 at 10 10 44 PM Screenshot 2025-07-23 at 10 38 41 AM

Calculate real % of updates from start date of fundraise onward (no ending yet)
Tooltip to tell users about 100 RSC incentive
Multiple updates per month
@vercel
Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Status Preview Comments Updated (UTC)
web Ready Visit Preview 💬 Add feedback Aug 11, 2025 7:40pm

- Extracted the complex start date calculation logic from `ProgressUpdates.tsx` into a new, reusable helper function `getTimelineStartDate` in `FundUtils.ts`.

Improve maintainability and ensures that both the visual timeline (`ProgressUpdates`) and the rate calculation (`calculateUpdateRate`) use the exact same source of truth for their start date.

- **New:** Created `getTimelineStartDate` in `FundUtils.ts` to handle all fallback and normalization logic for determining the timeline's start.
- **Update:** Refactored `ProgressUpdates.tsx` to remove its local date logic and call the new centralized helper function.
- **Update:** Refactored `calculateUpdateRate` to also use `getTimelineStartDate`, ensuring perfect consistency between the UI and the data calculation.
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants