Skip to content

Refine UI layout, restyle sliders/scale keys, and add undo/redo for orbs & gate speed#9

Open
jeromepotter wants to merge 6 commits intomainfrom
codex/enhance-undo-functionality-and-ui-layout
Open

Refine UI layout, restyle sliders/scale keys, and add undo/redo for orbs & gate speed#9
jeromepotter wants to merge 6 commits intomainfrom
codex/enhance-undo-functionality-and-ui-layout

Conversation

@jeromepotter
Copy link
Owner

Motivation

  • Make UNDO/REDO capture all meaningful state changes (including deployed ORBs and gate speed) and provide REDO support.
  • Move PLAY/ORB controls into the top-right HUD while keeping gate controls under the sequencer and move UNDO/REDO/CLEAR into the Settings modal to declutter the main UI.
  • Restyle sliders to a pill-track/thumb design and simplify the custom scale selector so selected notes are black and unselected are white to remove confusing gray sharps/flats.

Description

  • UI/layout: moved PLAY and ORB buttons into the top-right HUD, reorganized HUD into .hud-group blocks, and reflowed bottom controls into centered .controls-row and a separate gate row under the sequencer.
  • Settings modal: relocated UNDO/REDO/CLEAR into the #global-panel as full-width buttons and added btn-undo / btn-redo handlers.
  • Undo/Redo: added a redoStack, implemented redoLastMove() and updateUndoRedoButtons(), expanded createUndoSnapshot() to include projectiles and gate spin state, cleared redoStack on new pushes and pattern loads, and pushed an undo snapshot when spawning an orb and when toggling/adjusting gate spin.
  • Slider & scale UI: introduced CSS variables and new slider styling (pill track + slim rounded thumb) to match the requested look, removed the prior black-key special-case and updated .key-circle styles so active notes are black and unselected are white.
  • Gate speed undo grouping: start a single undo push when user begins adjusting gate speed and clear that grouping on change/pointerup/touchend/blur to avoid noisy undo history.

Testing

  • Launched a local static server and executed a Playwright script that loaded index.html and produced a full-page screenshot, which completed successfully and produced artifacts/les-cercles-ui.png.
  • No other automated tests were added or executed beyond the screenshot verification.

Codex Task

@netlify
Copy link

netlify bot commented Jan 15, 2026

Deploy Preview for les-cercles ready!

Name Link
🔨 Latest commit f413720
🔍 Latest deploy log https://app.netlify.com/projects/les-cercles/deploys/69698beeee293c00087d414e
😎 Deploy Preview https://deploy-preview-9--les-cercles.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant