From 21f172804ae5afa13c0cfc2c0e200644dabcc4b9 Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 14:56:59 -0400 Subject: [PATCH 1/7] tested html width --- robusta_krr/formatters/html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robusta_krr/formatters/html.py b/robusta_krr/formatters/html.py index a028d969..d78c4b25 100644 --- a/robusta_krr/formatters/html.py +++ b/robusta_krr/formatters/html.py @@ -6,7 +6,8 @@ @formatters.register("html") def html(result: Result) -> str: - console = Console(record=True) + html_width = 250 + console = Console(record=True, width=html_width, force_terminal=False) table_output = table(result) console.print(table_output) return console.export_html(inline_styles=True) From 2e1348009c0ba2bafa49fc0a199d01c6d7f55edb Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:02:49 -0400 Subject: [PATCH 2/7] added option to pass console width setting to html export format --- robusta_krr/formatters/html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robusta_krr/formatters/html.py b/robusta_krr/formatters/html.py index d78c4b25..f475d38e 100644 --- a/robusta_krr/formatters/html.py +++ b/robusta_krr/formatters/html.py @@ -2,11 +2,12 @@ from robusta_krr.core.abstract import formatters from robusta_krr.core.models.result import Result +from robusta_krr.core.models.config import settings from .table import table @formatters.register("html") def html(result: Result) -> str: - html_width = 250 + html_width = settings.width if settings.width is not None else None console = Console(record=True, width=html_width, force_terminal=False) table_output = table(result) console.print(table_output) From adc62b7244e2c7ca42cf85d882e0ee7172ac2899 Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:06:44 -0400 Subject: [PATCH 3/7] updated read me --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index aacba08c..276b45f3 100644 --- a/README.md +++ b/README.md @@ -714,8 +714,11 @@ Export KRR reports directly to Azure Blob Storage and get notified in Microsoft --teams-webhook "https://your-teams-webhook-url" \ --azure-subscription-id "your-subscription-id" \ --azure-resource-group "your-resource-group" + --width 250 ``` +5. **Optional but recommended to increase output table width to 200 or higher for browser view** + ### Features - **Automatic File Upload**: Reports are automatically uploaded to Azure Blob Storage with timestamped filenames From 553dc029c259c7005fc8ebdac76266b2e03faa1c Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:08:23 -0400 Subject: [PATCH 4/7] updated readme again --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 276b45f3..80653461 100644 --- a/README.md +++ b/README.md @@ -714,11 +714,9 @@ Export KRR reports directly to Azure Blob Storage and get notified in Microsoft --teams-webhook "https://your-teams-webhook-url" \ --azure-subscription-id "your-subscription-id" \ --azure-resource-group "your-resource-group" - --width 250 + --width 250 (optional but HIGHLY RECOMMENDED) ``` -5. **Optional but recommended to increase output table width to 200 or higher for browser view** - ### Features - **Automatic File Upload**: Reports are automatically uploaded to Azure Blob Storage with timestamped filenames From d27d035f8c49c59e48bb8e608c08fdbdb7242c8c Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:10:01 -0400 Subject: [PATCH 5/7] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 80653461..fdeb243b 100644 --- a/README.md +++ b/README.md @@ -748,6 +748,8 @@ krr simple -f html \ --azure-resource-group "my-resource-group" ``` +Note: Consider adjusting the --width CLI flag for a better viewing experience in browser. + ### Teams Notification Features The Teams adaptive card includes: From caf27d92b8f5d55b9da573774e6209910e7b75b7 Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:11:19 -0400 Subject: [PATCH 6/7] df --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fdeb243b..54c11564 100644 --- a/README.md +++ b/README.md @@ -748,7 +748,7 @@ krr simple -f html \ --azure-resource-group "my-resource-group" ``` -Note: Consider adjusting the --width CLI flag for a better viewing experience in browser. +Note: Consider adjusting the `--width` CLI flag for a better viewing experience in browser. ### Teams Notification Features From 3042a017af02e573f18a9ecccbf912be27498f40 Mon Sep 17 00:00:00 2001 From: mlhv Date: Mon, 11 Aug 2025 16:12:04 -0400 Subject: [PATCH 7/7] added instructions for width in CLI --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54c11564..f02c1b75 100644 --- a/README.md +++ b/README.md @@ -748,7 +748,7 @@ krr simple -f html \ --azure-resource-group "my-resource-group" ``` -Note: Consider adjusting the `--width` CLI flag for a better viewing experience in browser. +Note: Consider adjusting the `--width` CLI flag for a better HTML viewing experience in browser. ### Teams Notification Features