Skip to content

Improvement: guard against invalid date strings in format.ts #25

@hydraInsurgent

Description

@hydraInsurgent

TL;DR

Malformed deadline strings produce NaN in deadlineColorClass, which silently falls back to the wrong color.

Current State

A bad date string from the API causes the deadline to appear as a far-future date (muted gray) with no indication of an error.

Desired State

Invalid dates fall back to the null state (no deadline styling) rather than a misleading color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementEnhancement to existing functionalitypriority-lowNice to have, low urgency

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions