Skip to content

Set the default wheel diameter to 0.5 - #245

Merged
brettheap merged 1 commit into
mainfrom
change/wheel-diameter-default
Aug 22, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/wheel-diameter-default

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Changes the dashboard's default wheel diameter (the drum radius factor) from 1 to 0.5.

What

  • DRUM.default: 1 → 0.5 in scripts/ideation_dashboard/web/views/wheel-model.js — the single source of truth that settings.js, wheel.js, and the pytest node harness all read. 0.5 (R = half the wheel-window height — the fuller slot-drum wrap, horizon at the window edges) is within the [0.3, 2.0] bounds and on the 0.05 step.
  • Only the default moves. ?drum= URL precedence, the saved-setting precedence, and the clamp bounds are unchanged. The settings-panel note and reset button already render DRUM.default dynamically, so they follow automatically (now "0.50×").
  • Comments that called 1 "the default" are reworded to describe factor 1.0 as a specific value. The doc-wheel.js "why 0.4" illustration keeps its factor-1.0 span math as a labelled illustration (not a live default reference), so its argument stays intact.

Tests

test_wheel_model.py default-pinning assertions updated (DRUM bounds + the three fall-through-to-default cases). Node-backed wheel-model and doc-wheel harnesses pass:

python3 -m pytest tests/ideation-dashboard/test_wheel_model.py tests/ideation-dashboard/test_doc_wheel.py -q
97 passed

No spec pins the default (it's a UI tunable, not a contract), so no OpenSpec change is required.

🤖 Generated with Claude Code

DRUM.default (the drum radius factor, the settings panel's one knob) goes
1 -> 0.5 in wheel-model.js, the single source of truth that settings.js,
wheel.js and the pytest node harness all read. 0.5 (R = half the wheel-window
height, the fuller slot-drum wrap with the horizon at the window edges) is
in-range [0.3, 2.0] and on the 0.05 step.

Only the default moves: ?drum= URL precedence, the saved-setting precedence,
and the clamp bounds are untouched. Comments that called 1 "the default" are
reworded to describe factor 1.0 as a specific value; the doc-wheel 0.4
illustration keeps its factor-1.0 span math as a labelled illustration, not a
live default reference.

Tests updated to pin default 0.5: the DRUM bounds assertion and the three
fall-through-to-default cases in test_wheel_model.py. Node-backed wheel-model
and doc-wheel harnesses pass (97).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 22, 2026 01:36

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the ideation dashboard wheel “drum radius factor” default from 1.0 to 0.5 (slot-drum wrap with the horizon at the viewport edges), and adjusts affected tests/docs/comments to match.

Changes:

  • Changed the single source-of-truth default: DRUM.default: 1 → 0.5 in wheel-model.js.
  • Updated pytest assertions that pin default fall-through behavior and bounds output.
  • Reworded documentation/comments that previously described 1.0 as “the default” to instead describe it as the original default / a specific factor value.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/ideation-dashboard/test_wheel_model.py Updates default-pinning assertions and a comment describing precedence fall-through.
tests/ideation-dashboard/test_doc_wheel.py Rewords docs/test text to treat factor 1.0 as “original default” rather than current default.
scripts/ideation_dashboard/web/views/wheel.js Updates inline comment describing the drum factor default and its meaning.
scripts/ideation_dashboard/web/views/wheel-model.js Changes DRUM.default to 0.5 (source of truth for the default).
scripts/ideation_dashboard/web/views/doc-wheel.js Rewords explanatory comments to avoid implying factor 1.0 is still the default.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 1166 to +1167
// settings.js, wheel.js, and the pytest node harness read one source of truth.
export const DRUM = { min: 0.3, max: 2.0, step: 0.05, default: 1 };
export const DRUM = { min: 0.3, max: 2.0, step: 0.05, default: 0.5 };
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