Skip to content

🎨 Palette: Improve CLI UX in tutorial scripts#19

Merged
ruhdevops merged 1 commit intomainfrom
palette-ux-improvements-tutorial-scripts-12170127338932894651
Mar 29, 2026
Merged

🎨 Palette: Improve CLI UX in tutorial scripts#19
ruhdevops merged 1 commit intomainfrom
palette-ux-improvements-tutorial-scripts-12170127338932894651

Conversation

@ruhdevops
Copy link
Copy Markdown
Owner

Added visual structure, feedback, and reduced log noise to tutorial scripts. Resolved Mypy return type hint issues for mapped Prefect flows.


PR created automatically by Jules for task 12170127338932894651 started by @ruh-al-tarikh

This commit adds several micro-UX enhancements to `01_getting_started.py` and `02_logging.py` to provide a more intuitive and polished onboarding experience:

- 📏 Visual Separation: Replaced newline-based separation with `rich.rule.Rule` for "Next Step" guidance, creating a cleaner visual hierarchy.
- 🔄 Loading Feedback: Added `console.status` spinners to the mapping operations in both scripts to provide immediate visual feedback during processing.
- 📉 Reduced Log Noise: Reduced the demonstration logging loop in `02_logging.py` from 50 to 3 iterations, making the output easier to read without losing the pedagogical value.
- 📦 Improved Context: Added a "Fetched customer IDs" message to the logging demo for consistency with the first script.
- 🛡️ Type Compatibility: Removed explicit return type hints from Prefect flow entry points that return mapped results to resolve Mypy incompatibility issues with `PrefectFutureList`.
- 🧹 Consistency: Standardized messaging and styling across both tutorial scripts.

♿ Accessibility:
- Visual spinners provide feedback for long-running operations.
- Clearer visual structure aids readability for all users.
- Reduced output volume prevents terminal buffer overflow and improves experience for screen reader users by reducing cognitive load.

Co-authored-by: ruh-al-tarikh <203426218+ruh-al-tarikh@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@ruhdevops ruhdevops self-assigned this Mar 29, 2026
@ruhdevops ruhdevops marked this pull request as ready for review March 29, 2026 10:16
@ruhdevops ruhdevops merged commit 9a1b744 into main Mar 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant