Skip to content

✨ Safe float + data-bar support (follow-up to #5) - #23

Merged
gepser merged 1 commit into
masterfrom
feature/safe-pr5-data-bars
Feb 22, 2026
Merged

✨ Safe float + data-bar support (follow-up to #5)#23
gepser merged 1 commit into
masterfrom
feature/safe-pr5-data-bars

Conversation

@gepser

@gepser gepser commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • add support for float values in /progress/{percentage}
  • add optional data-bar mode with min + max
  • add optional label and barColor query params
  • keep existing HTTP contract and hardening in place (GET/HEAD, cache headers, no fatal exits)
  • add validation and limits:
    • numeric input checks (including NaN/Inf)
    • min/max must be provided together and max > min
    • hex validation for all colors (including barColor)
    • label length cap (64 chars)
  • expand tests to cover all new paths + error conditions
  • update README API docs and examples

Why

This is a safe rework of the idea from PR #5, adapted to the current codebase.
I delayed updating the project for too long that it was not possible to merely merge the PR, I'm sorry for that.
Still, I appreciate the contribution @mgiannopoulos24, and this is based on your idea and your work, so credits to you.

Validation

  • mise exec -- make check

Example

  • ![](https://geps.dev/progress/76.5)
  • ![](https://geps.dev/progress/186?label=186&min=0&max=241&barColor=4472C4)

@gepser
gepser merged commit 0abb9fc into master Feb 22, 2026
2 checks passed
@gepser
gepser deleted the feature/safe-pr5-data-bars branch February 22, 2026 23:47
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.

1 participant