Repository navigation
Snap a resized roadmap edge to the axis columns - #925
Merged
Merged
Conversation
On a graduated axis a resize grip moved a whole week at a time, even across the day columns around today. A resized edge now snaps to the column lines the axis is ruled with - a day near today, then a week, a month and a quarter further out - by pointer and by Shift/Alt+arrow alike. Moves, and resizes on a plain all-quarter window, keep snapping to the week. The track publishes its column lines and each grip its edge, so the script counts the lines crossed and .NET resolves the same lines to dates; the preview and the drop stay one value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the graduated roadmap axis, dragging a bar's resize grip moved a whole week at a time — even across the day columns around today. A resized edge now snaps to the column lines the axis draws: a day near today, then a week, a month and a quarter further out, by pointer and keyboard alike.
Changes
data-roadmap-snaps) and each grip its edge position (data-roadmap-edge-rem);components.jscounts the lines crossed and sends that count instead of weeks.RoadmapWindow.ColumnBoundarieslists the lines;RoadmapChange.Fortakes them as an optional argument andRoadmapChange.Stepresolves a step count to a date. Script and .NET count the same lines, so the preview and the drop stay one value.RoadmapSlotdoc comment updated to match.Testing
dotnet build Backlog.sln: 0 warnings, 0 errors.RoadmapGraduatedAxisTestscover the boundary list, day-tier and month-tier steps, clamping, and Shift+Arrow on a graduated timeline.Related
No issue — an ad-hoc request from a session.
Follow-up:
.devbook/design/interaction-guidelines.md:497still says "Every gesture snaps to the week"; it belongs to aflow-specchange, not this PR.Checklist
aspire stop --apphost …for this worktree)🤖 Generated with Claude Code