Skip to content

Conversation

@RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Dec 22, 2025

This changes the app to use a color queue, preventing duplicate colors back to back, reworks the settings page to use a list rather than hardcoded colors, adds new colors, and removed the old defaults.json as it now automatically generates a queue.

Copilot AI review requested due to automatic review settings December 22, 2025 16:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reworks the Daily Color Clock app to implement a queue-based color system that prevents consecutive days from showing the same color. The refactoring replaces the old random selection mechanism with a shuffled queue that regenerates when exhausted, improves the settings interface to dynamically generate menu items from a color list, and adds several new color options.

  • Implements color queue system to prevent back-to-back duplicate colors
  • Refactors settings page to use dynamic menu generation from a colors array
  • Adds 10 new colors including various dithered options (Light Pink, Dark Pink, Lime Green, Teal, Sea Green, Maroon, Brown, Peach)

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
apps/dailycolorclk/settings.js Refactored to use a colors array for dynamic menu generation, added color queue management functions, and removed hardcoded color settings
apps/dailycolorclk/app.js Implemented queue-based color rotation with shuffle algorithm, removed old random color selection, and improved code structure
apps/dailycolorclk/metadata.json Updated version to 0.02, removed default.json from storage, and cleaned up description
apps/dailycolorclk/default.json File removed as app now auto-generates queue
apps/dailycolorclk/README.md Updated documentation to explain queue system and how to add custom colors
apps/dailycolorclk/ChangeLog Added changelog entry for version 0.02

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

RKBoss6 and others added 2 commits December 22, 2025 11:59
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@bobrippling
Copy link
Collaborator

Mind if I swap this to a draft PR? I'll not have much time over the next few weeks so having it in draft while it's still being worked on means me (or the other maintainers) won't get bogged into the changes until it's ready :)

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Dec 22, 2025

This actually should be good to go as of right now - I've finished all the changes.

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Dec 23, 2025

Sorry - just fixed a couple of things to make everything bug-free

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 7, 2026

Ok everything should be good now, so @bobrippling if we want to get this in, it's ready to go!

Added information about battery-friendliness and background handling.
@bobrippling
Copy link
Collaborator

Cool, thanks!

@bobrippling bobrippling merged commit 6d9394f into espruino:master Jan 8, 2026
1 check passed
@RKBoss6 RKBoss6 deleted the dailycolclkupdate branch January 8, 2026 21:37
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.

2 participants