Skip to content

Build scheduled release countdown utility #300

Description

@Kingsman-99

Labels: complexity: high

Add getScheduledReleaseCountdown(invoice) that computes the time remaining until a scheduled release fires. Returns a structured object with days, hours, minutes, seconds, and whether the release is overdue.

Acceptance criteria:

  • Returns { total_seconds: number, days, hours, minutes, seconds, overdue: boolean }
  • Returns null when invoice has no scheduled_release_at
  • Pure function, no RPC calls needed
  • Exported with full TypeScript types

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions