From 2fdde90e0fe8f8c5873b0c594127d0afacecd588 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 05:43:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Improve=20terminal=20?= =?UTF-8?q?visual=20hierarchy=20and=20accessibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switched to 'bold blue' for panels and rules to improve contrast and accessibility. - Added vertical spacing before final guidance rules for better visual hierarchy. - Introduced thematic emojis (🚀, 🎉) to rule titles for a more delightful onboarding experience. - Refactored table footers to use 'footer_style="bold"' for cleaner code and consistent appearance. - Ensured final instruction messages are bold for better legibility. Co-authored-by: ruh-al-tarikh <203426218+ruh-al-tarikh@users.noreply.github.com> --- 01_getting_started.py | 14 +++++++++----- 02_logging.py | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/01_getting_started.py b/01_getting_started.py index b02329e..df95831 100644 --- a/01_getting_started.py +++ b/01_getting_started.py @@ -45,7 +45,7 @@ def main(): Panel( Markdown(main.__doc__.strip()), title="Prefect Workflow Guide", - border_style="blue", + border_style="bold blue", padding=(1, 2), ) ) @@ -76,9 +76,12 @@ def main(): show_footer=True, box=box.ROUNDED, ) - table.add_column("Customer ID", style="cyan", footer="Total") + table.add_column("Customer ID", style="cyan", footer="Total", footer_style="bold") table.add_column( - "Status", style="green", footer=f"[bold]{len(results)} Processed[/bold]" + "Status", + style="green", + footer=f"{len(results)} Processed", + footer_style="bold", ) # Use zip to map results back to their original IDs more reliably @@ -96,9 +99,10 @@ def main(): ) ) - console.print(Rule("Next Step", style="blue")) + console.print() + console.print(Rule("🚀 Next Step", style="bold blue")) console.print( - "Try running [cyan]python 02_logging.py[/cyan] to learn about logging in Prefect!" + "[bold blue]Try running [cyan]python 02_logging.py[/cyan] to learn about logging in Prefect![/bold blue]" ) return results diff --git a/02_logging.py b/02_logging.py index 5da5502..4c7539f 100644 --- a/02_logging.py +++ b/02_logging.py @@ -54,7 +54,7 @@ def main(): Panel( Markdown(main.__doc__.strip()), title="Prefect Workflow Guide", - border_style="blue", + border_style="bold blue", padding=(1, 2), ) ) @@ -85,9 +85,12 @@ def main(): show_footer=True, box=box.ROUNDED, ) - table.add_column("Customer ID", style="cyan", footer="Total") + table.add_column("Customer ID", style="cyan", footer="Total", footer_style="bold") table.add_column( - "Status", style="green", footer=f"[bold]{len(results)} Processed[/bold]" + "Status", + style="green", + footer=f"{len(results)} Processed", + footer_style="bold", ) # Use zip to map results back to their original IDs more reliably @@ -105,9 +108,10 @@ def main(): ) ) - console.print(Rule("Finishing Up", style="blue")) + console.print() + console.print(Rule("🎉 Finishing Up", style="bold blue")) console.print( - "[bold blue]🎉 You've completed the Quickstart! Check out the [cyan]README.md[/cyan] for more features.[/bold blue]" + "[bold blue]You've completed the Quickstart! Check out the [cyan]README.md[/cyan] for more features.[/bold blue]" ) return results