Skip to content

feat: fmt_k / fmt_eta formatting helpers (parity v1 · slice 1/11)#44

Open
FabioRocha231 wants to merge 1 commit into
inbrace-tech:rust-parity-v1from
FabioRocha231:slice-01-fmt-helpers
Open

feat: fmt_k / fmt_eta formatting helpers (parity v1 · slice 1/11)#44
FabioRocha231 wants to merge 1 commit into
inbrace-tech:rust-parity-v1from
FabioRocha231:slice-01-fmt-helpers

Conversation

@FabioRocha231

Copy link
Copy Markdown
Contributor

Part of the parity-v1 stack for #27slice 1 of 11, bottom-up.

Stacks on #43 (the previous slice). This slice adds: the fmt_k / fmt_eta helpers (compact token counts and human ETAs).

Merge order: #42 (bash resets_at fix) -> #43 (slice 0 · scaffold) -> then slices 1..11 in order -> this is slice 1.

⚠️ Cross-fork note: a PR into this repo must base on a branch that lives here (main). These slices are stacked on my fork, so until #43 merges this diff shows the cumulative stack; the moment #43 lands in main it auto-narrows to just this slice's files. Reviewed in order, it stays one small slice at a time.

Whole stack is green: ~31 tests (lib + golden + e2e), clippy -D warnings clean, cargo fmt clean. Render is byte-exact vs the fixed bash oracle (tests/golden.rs).

Slice 1 (inbrace-tech#27). Pure formatting helpers matching the bash fmt_k (awk %.1f token
compaction) and fmt_eta (human ETA from seconds). Covered by #[cfg(test)] with
the tier boundaries and the golden's 3d4h reset ETA.
@FabioRocha231 FabioRocha231 requested a review from ropdias as a code owner July 5, 2026 16:59
@ropdias ropdias changed the base branch from main to rust-parity-v1 July 5, 2026 18:22
@ropdias ropdias changed the base branch from rust-parity-v1 to main July 5, 2026 23:08
@ropdias ropdias changed the base branch from main to rust-parity-v1 July 5, 2026 23:08
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