Skip to content

feat: step item with anchor links - #187

Merged
pqoqubbw merged 3 commits into
mainfrom
dmytro/step-item-anchors
Jan 30, 2026
Merged

feat: step item with anchor links#187
pqoqubbw merged 3 commits into
mainfrom
dmytro/step-item-anchors

Conversation

@pqoqubbw

@pqoqubbw pqoqubbw commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Test Plan


Note

Medium Risk
Touches interactive UI behavior and browser APIs (clipboard + hash/scroll handling), which can be sensitive to SSR and event-handling edge cases, but is scoped to the Steps component.

Overview
Adds optional deep-linking to Steps.Item via new id/noAnchor props, showing a hover-only link icon on the step number/title and copying an encoded #id URL to the clipboard (and updating window.location.hash) when clicked.

Introduces callbacks (onRegisterHeading/onUnregisterHeading, scrollElementIntoView, onCopyAnchorLink) and react-use-rect measurement to support registering headings and auto-scrolling to a step on initial load when the page hash matches. Storybook gains a WithAnchorLinks example demonstrating enabled/disabled anchors.

Written by Cursor Bugbot for commit 6ab4d5a. This will update automatically on new commits. Configure here.

Comment thread packages/components/src/components/steps/steps.tsx Outdated
Comment thread packages/components/src/components/steps/steps.tsx Outdated
Comment thread packages/components/src/components/steps/steps.tsx
Comment thread packages/components/src/components/steps/steps.tsx Outdated
Comment thread packages/components/src/components/steps/steps.tsx Outdated

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread packages/components/src/components/steps/steps.tsx
@pqoqubbw
pqoqubbw merged commit f6e8bd3 into main Jan 30, 2026
3 checks passed
@pqoqubbw
pqoqubbw deleted the dmytro/step-item-anchors branch January 30, 2026 23:27
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