• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 25957613170
66%

Build:
DEFAULT BRANCH: main
Ran 16 May 2026 08:45AM UTC
Jobs 1
Files 318
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2026 08:43AM UTC coverage: 65.098% (+0.008%) from 65.09%
25957613170

push

github

web-flow
enhance(config, typewriter)!: Switch DelayDuration to humantime format (#645)

The previous custom duration format (`"3"` for 3 ms, `"5m"` for 5 ms,
`"1u"` for 1 µs) was non-standard and undiscoverable. This replaces it
with [`humantime`]-compatible strings (`"3ms"`, `"500us"`, `"1s"`,
`"0s"`) across the entire `TypewriterConfig`.

Default values in `#[setting(...)]` annotations are updated accordingly:
`text_delay` from `"3"` → `"3ms"`, `code_delay` from `"500u"` →
`"500us"`, and `max_latency` from `"0"` → `"0s"`.

Custom `Serialize`/`Deserialize` implementations replace the derived
ones so that values round-trip as humantime strings. A backwards-compat
`visit_map` path accepts the old `{secs, nanos}` shape that stored
conversations may still carry, so existing data keeps loading without a
migration.

The `Schematic` impl is now handwritten to expose a descriptive string
type in the generated schema. `Display` and `FromStr` are also
implemented, both delegating to `humantime`.

The default persona config is updated to set `typewriter.max_latency =
"200ms"` using the new format.

BREAKING CHANGE: Typewriter delay format changed

Any `jp` config file that sets `text_delay`, `code_delay`, or
`max_latency` using the old shorthand (`"3"`, `"5m"`, `"1u"`) will fail
to parse. Update those values to humantime strings, e.g.:

    text_delay  = "3ms"
    code_delay  = "500us"
    max_latency = "200ms"

Signed-off-by: Jean Mertz <git@jeanmertz.com>

29 of 36 new or added lines in 1 file covered. (80.56%)

26819 of 41198 relevant lines covered (65.1%)

198.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
89.61
-6.47% crates/jp_config/src/style/typewriter.rs
Jobs
ID Job ID Ran Files Coverage
1 25957613170.1 16 May 2026 08:45AM UTC 318
65.1
GitHub Action Run
Source Files on build 25957613170
  • Tree
  • List 318
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25957613170
  • 11b4195e on github
  • Prev Build on main (#25957089078)
  • Next Build on main (#25958143772)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc