Skip to content

🎨 Palette: [UX improvement] Comma formatting and enhanced achievement feedback#327

Open
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/comma-formatting-ux-1500030195771282499
Open

🎨 Palette: [UX improvement] Comma formatting and enhanced achievement feedback#327
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/comma-formatting-ux-1500030195771282499

Conversation

@aidasofialily-cmd

Copy link
Copy Markdown
Owner

💡 What: The UX enhancement added

Introduced thousands-separator (comma) formatting for all score displays in the "Speed Clicker" game. Also enhanced the visual feedback when a player achieves a new personal best by colorizing the message and providing context (showing the previous high score).

🎯 Why: The user problem it solves

Raw integers like 1000000 are harder to read at a glance than formatted numbers like 1,000,000. In a fast-paced "Speed Clicker" game, immediate readability is crucial for player engagement. Additionally, the "NEW BEST!" message now provides immediate context on how much the player improved by showing the previous record.

♿ Accessibility: Any a11y improvements made

  • Improved numeric readability through standard formatting.
  • Enhanced visual prominence of key achievements using consistent color coding (CLR_CTRL).
  • Ensured terminal state is cleanly reset to avoid color bleeding into the user's shell.

PR created automatically by Jules for task 1500030195771282499 started by @aidasofialily-cmd

…T!" feedback

- Added `src/utils.hpp` with a `formatWithCommas` helper function to improve score readability.
- Updated `src/main.cpp` to use `formatWithCommas` for Personal Best, current Score, High Score, and Final Score displays.
- Enhanced the "NEW BEST! 🥳" message with `CLR_CTRL` (Bold Yellow) and added context by showing the previous high score (e.g., "was 1,000").
- Verified changes with unit tests and existing UX validation scripts.

Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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.

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