Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ The format is based on Keep a Changelog, and this project follows SemVer.

## Unreleased

- Completed Phase 7 of the hexagonal migration by removing direct `TesterArgs` coupling from the application layer (`application::commands`, `application::local_run`, `application::distributed_run`) and tightening adapter-boundary mapping in entry planning.
- Added architecture guardrails that fail checks when `src/application` reintroduces `TesterArgs` or `crate::args` imports.
- Removed remaining non-test direct `distributed -> app` and `application -> app` imports by introducing explicit runtime ports and shared summary-output utilities, so orchestration flows now route via application/adapters seams.
- Added migration validation coverage for all run-plan feature routes (local, distributed controller/agent, replay, compare, cleanup, dump-urls, service) and distributed/local application dispatch seams.
- Updated architecture docs to a current flow-focused overview with explicit mode-by-mode call chains.
- Added technical architecture docs across ARD/ADR/patterns covering type-level invariants/newtypes, invalid-state elimination, cache/inlining guidance, dispatch strategy (static-first), and low-lock concurrency patterns using `Arc`, atomics, channels, and `ArcShift`.
- Removed legacy migration-risk and baseline-metrics ARD documents and updated doc indexes/references accordingly.
## 0.1.10

Released: 2026-02-14

- Finalized Phase 7 hexagonal boundaries by removing direct `TesterArgs` coupling from application orchestration and routing execution through explicit runtime/application seams.
- Fixed TUI run-panel progress bar rendering so the centered time label no longer visually splits filled progress segments.

## 0.1.9

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strest"
version = "0.1.9"
version = "0.1.10"
edition = "2024"
description = "Blazing-fast async HTTP load tester in Rust - lock-free design, real-time stats, distributed runs, and optional chart exports for high-load API testing."
license = "MIT OR Apache-2.0"
Expand Down
44 changes: 43 additions & 1 deletion src/ui/render/progress.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use ratatui::prelude::text;
use ratatui::style::Style;
use ratatui::text::Span;

use super::theme::{ACCENT_PROGRESS_RGB, PANEL_TEXT_RGB, rgb, style_color};
Expand Down Expand Up @@ -53,10 +54,12 @@ pub(super) fn progress_bar_line(
let mut spans = Vec::with_capacity(bar_width.saturating_add(2));
spans.push(Span::raw("["));
for idx in 0..bar_width {
let is_partial_cell = partial_count == 1 && idx == full_count;
let is_filled_cell = idx < full_count || is_partial_cell;
if let Some(ch) = label_cells.get(idx).copied().flatten() {
spans.push(Span::styled(
ch.to_string(),
style_color(no_color, rgb(PANEL_TEXT_RGB)),
label_cell_style(no_color, is_filled_cell),
));
continue;
}
Expand All @@ -79,3 +82,42 @@ pub(super) fn progress_bar_line(
spans.push(Span::raw("]"));
text::Line::from(spans)
}

fn label_cell_style(no_color: bool, on_filled_cell: bool) -> Style {
if no_color {
return Style::default();
}
let style = Style::default().fg(rgb(PANEL_TEXT_RGB));
if on_filled_cell {
style.bg(rgb(ACCENT_PROGRESS_RGB))
} else {
style
}
}

#[cfg(test)]
mod tests {
use super::{ACCENT_PROGRESS_RGB, progress_bar_line, rgb};

#[test]
fn label_on_filled_cell_keeps_progress_background() {
let line = progress_bar_line(9, 10, 20, false, "x");
let bg = line
.spans
.iter()
.find(|span| span.content.as_ref() == "x")
.and_then(|span| span.style.bg);
assert_eq!(bg, Some(rgb(ACCENT_PROGRESS_RGB)));
}

#[test]
fn label_on_empty_cell_has_no_background_fill() {
let line = progress_bar_line(1, 10, 20, false, "x");
let bg = line
.spans
.iter()
.find(|span| span.content.as_ref() == "x")
.and_then(|span| span.style.bg);
assert_eq!(bg, None);
}
}