🎨 Palette: unique customer IDs for clearer CLI demos#25
Conversation
This change replaces `random.choices` with `random.sample` in the `get_customer_ids` tasks within `01_getting_started.py` and `02_logging.py`. Using `random.choices` could occasionally lead to duplicate customer IDs in the summary tables, which can be confusing for users following the tutorial. `random.sample` ensures that the five generated IDs are unique, providing a more professional and realistic demo experience. Added a corresponding entry to `.Jules/palette.md` to document this UX improvement. 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. |
🎨 Palette: Unique Customer IDs in Demo Scripts
💡 What
Replaced
random.choiceswithrandom.samplefor mock data generation in01_getting_started.pyand02_logging.py.🎯 Why
In small-scale CLI demos, duplicate IDs (e.g., seeing "customer-51" twice in a list of five) can look like a bug to developers trying out the scaffold. Ensuring uniqueness makes the output clearer and more realistic.
♿ Accessibility & UX
.Jules/palette.md.PR created automatically by Jules for task 7424792465259260553 started by @ruh-al-tarikh