From 0ce4084ac70ba523f7462885acc892b4816f32c9 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 26 Oct 2025 12:18:39 +0200 Subject: [PATCH 1/4] fix: remove environment variable truncation (closes #53) Environment variables longer than 80 characters were being truncated with "..." which made it impossible to see the full values. Remove this truncation to display complete environment variable values regardless of length. --- src/lazy_ecs/features/container/ui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lazy_ecs/features/container/ui.py b/src/lazy_ecs/features/container/ui.py index 769c6f0..dbb9ed0 100644 --- a/src/lazy_ecs/features/container/ui.py +++ b/src/lazy_ecs/features/container/ui.py @@ -236,8 +236,7 @@ def show_container_environment_variables(self, cluster_name: str, task_arn: str, sorted_vars = sorted(env_vars.items()) for name, value in sorted_vars: - display_value = value if len(value) <= 80 else f"{value[:77]}..." - console.print(f"{name}={display_value}", style="white") + console.print(f"{name}={value}", style="white") console.print("=" * 60, style="dim") console.print(f"📊 Total: {len(env_vars)} environment variables", style="blue") From 7357941a01d72fa964a6b9f277bcb1194fa85d90 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 26 Oct 2025 12:21:59 +0200 Subject: [PATCH 2/4] refactor: remove service event message truncation Service event messages were truncated at 100 characters. Remove this truncation and let Rich table handle text wrapping naturally for full message visibility. --- src/lazy_ecs/features/service/ui.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lazy_ecs/features/service/ui.py b/src/lazy_ecs/features/service/ui.py index 8ffe6c7..711fa57 100644 --- a/src/lazy_ecs/features/service/ui.py +++ b/src/lazy_ecs/features/service/ui.py @@ -107,10 +107,6 @@ def display_service_events(self, cluster_name: str, service_name: str) -> None: if len(service_display) > 18: service_display = "..." + service_display[-15:] - # Now we have more space for the actual message - if len(message) > 100: - message = message[:97] + "..." - table.add_row(time_str, type_display, service_display, message) console.print(table) From 3f4e6fb352836f2641bbd17aa1d3454eb60d18ef Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 26 Oct 2025 12:23:02 +0200 Subject: [PATCH 3/4] refactor: remove task status details truncation Task failure analysis was truncated at 50 characters in the history view. Remove both the column width constraint and truncation logic to display full status details. Let Rich table handle text wrapping naturally. --- src/lazy_ecs/features/task/ui.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lazy_ecs/features/task/ui.py b/src/lazy_ecs/features/task/ui.py index b94dd92..c6b3488 100644 --- a/src/lazy_ecs/features/task/ui.py +++ b/src/lazy_ecs/features/task/ui.py @@ -19,7 +19,6 @@ # Constants MAX_RECENT_TASKS = 10 -MAX_STATUS_DETAILS_LENGTH = 50 SEPARATOR_WIDTH = 80 _CHANGE_TYPE_DISPLAY = { @@ -203,7 +202,7 @@ def _create_history_table(self) -> Table: table.add_column("Task ID", style="yellow", width=12) table.add_column("Revision", style="green", width=8) table.add_column("Created", style="blue", width=16) - table.add_column("Status Details", width=40) + table.add_column("Status Details") return table def _format_task_row(self, task: TaskHistoryDetails) -> tuple[str, str, str, str, str]: @@ -226,9 +225,6 @@ def _format_task_row(self, task: TaskHistoryDetails) -> tuple[str, str, str, str else: status_details = f"[yellow]{status_details}[/yellow]" - if len(status_details) > MAX_STATUS_DETAILS_LENGTH: - status_details = status_details[:47] + "..." - return status_display, task_id, revision, created_time, status_details def _display_history_summary(self, recent_tasks: list[TaskHistoryDetails]) -> None: From 6f73399fd55d46cf4feb8b4441b41377f72efc05 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 26 Oct 2025 12:30:10 +0200 Subject: [PATCH 4/4] chore: bump version to 0.7.5 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 96f5755..df2aea2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lazy-ecs" -version = "0.7.4" +version = "0.7.5" description = "A CLI tool for working with AWS services" readme = "README.md" authors = [ diff --git a/uv.lock b/uv.lock index a13fb4a..3d53250 100644 --- a/uv.lock +++ b/uv.lock @@ -404,7 +404,7 @@ wheels = [ [[package]] name = "lazy-ecs" -version = "0.7.4" +version = "0.7.5" source = { editable = "." } dependencies = [ { name = "boto3" },