Skip to content

The deadline countdown text is independently duplicated with inconsistent wording between BountyCard and IssueDetailPage #262

Closed

Description

@chonilius

src/lib/utils.ts#daysUntil is a single shared helper, but the text built from its
result is copy-pasted and worded differently in the two places that use it:

// BountyCard.tsx
{days > 0 ? `${days}d left` : "Deadline passed"}

// src/app/issues/[id]/page.tsx (IssueDetailPage)
{days > 0 ? `${days} days left` : "Passed"}

Both branches convey the same two facts (days remaining / already past), but with
different abbreviations ("d left" vs "days left") and different terminal wording
("Deadline passed" vs "Passed"). A contributor browsing /issues (BountyCard's
countdown) and then opening a specific bounty (IssueDetailPage's countdown) sees the
identical underlying value presented in two subtly different phrasings, with no shared
formatting function responsible for the text — unlike formatCurrency/formatPercent,
which centralize their presentation logic in utils.ts for exactly this reason.

Suggested fix: add a small formatDaysUntil(days: number): string helper to utils.ts
(alongside daysUntil itself) and have both BountyCard and IssueDetailPage call it,
so the wording can't drift and only needs to be decided once.

Activity

  1. added
    good first issue
    architecture
    bug
    help wanted
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. p4uld4vid016-code commented on Aug 25, 2026

    @p4uld4vid016-code

    @p4uld4vid016-code has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello maintainer, i would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @p4uld4vid016-code to this issue.

  4. Uchechukwu-Ekezie commented on Aug 25, 2026

    @Uchechukwu-Ekezie
    Contributor

    @Uchechukwu-Ekezie has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello maintainer, i would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Uchechukwu-Ekezie to this issue.

  5. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @Uchechukwu-Ekezie! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @Uchechukwu-Ekezie: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  6. grantfox-oss commented on Aug 25, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Third Campaign campaign!

    @Uchechukwu-Ekezie's PR #325 was approved and merged by @chonilius.

    🏆 @Uchechukwu-Ekezie: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,228 total points). Track your full progress on GrantFox.

    👏 Great work, @Uchechukwu-Ekezie! Keep contributing to MergeFi.

  7. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @Uchechukwu-Ekezie as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @Uchechukwu-Ekezie: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar Wavearchitecturebuggood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions