🎨 Palette: Micro-UX polish for demo CLI scripts#24
Conversation
This change introduces several small touches of delight to the Prefect quickstart scripts: - Replaced `random.choices` with `random.sample` to ensure unique customer IDs in the demo. - Added execution duration tracking and displayed it in the final success panel. - Added a "Next Step" title to the `rich.Rule` component for better visual hierarchy. - Cleaned up the final guidance messages for a more professional look. - Updated `.Jules/palette.md` with these learnings. Co-authored-by: ruh-al-tarikh <203426218+ruh-al-tarikh@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Fixed a syntax error in 01_getting_started.py that caused CI to fail. Consistently applied micro-UX touches to demo scripts: - Use unique customer IDs with `random.sample`. - Display execution duration in the final success panel. - Add descriptive titles to `rich.Rule` components. - Verified all changes with ruff, black, and mypy. Co-authored-by: ruh-al-tarikh <203426218+ruh-al-tarikh@users.noreply.github.com>
🎨 Palette: Micro-UX polish for demo CLI scripts
💡 What:
I've added several micro-UX enhancements to
01_getting_started.pyand02_logging.py:random.sampleto ensure the 5 processed customer IDs are always unique, avoiding confusing duplicates in the summary table.time.perf_counter().rich.Rulecomponent and simplifying the subsequent message..Jules/palette.md.🎯 Why:
Tutorial scripts are the first thing a user sees. These small touches make the "work" performed by Prefect feel more tangible, the output more professional, and the path forward clearer.
♿ Accessibility:
rich.Rulewith titles provides better semantic structure for users scanning the terminal.✅ Verification:
black,ruff,mypy) passed.PR created automatically by Jules for task 15742616877061428740 started by @ruh-al-tarikh