Add shareable anchor links to case timeline updates #12

Open
deco wants to merge 4 commits from feature/add-case-update-anchors into main
Owner

Summary

  • Add HTML anchor links to each case timeline event for direct sharing
  • Implement copy-to-clipboard button for easy link sharing
  • Provide visual feedback when links are copied

Changes

  • Added id attribute to each timeline event container using event IDs
  • Implemented copyEventLink function to copy full URLs to clipboard
  • Added link icon button next to event titles with checkmark confirmation
  • Applied scroll-mt-8 CSS class for proper scroll positioning
  • Imported Link2 and Check icons from lucide-react

Test plan

  • TypeScript type checking passes
  • ESLint validation passes with no errors
  • Navigate to /case-updates#event-2 and verify page scrolls to correct event
  • Click link icon next to any event and verify URL is copied to clipboard
  • Verify checkmark appears for 2 seconds after copying
  • Test sharing copied link in new browser tab/window
## Summary - Add HTML anchor links to each case timeline event for direct sharing - Implement copy-to-clipboard button for easy link sharing - Provide visual feedback when links are copied ## Changes - Added `id` attribute to each timeline event container using event IDs - Implemented `copyEventLink` function to copy full URLs to clipboard - Added link icon button next to event titles with checkmark confirmation - Applied `scroll-mt-8` CSS class for proper scroll positioning - Imported Link2 and Check icons from lucide-react ## Test plan - [x] TypeScript type checking passes - [x] ESLint validation passes with no errors - [ ] Navigate to `/case-updates#event-2` and verify page scrolls to correct event - [ ] Click link icon next to any event and verify URL is copied to clipboard - [x] Verify checkmark appears for 2 seconds after copying - [ ] Test sharing copied link in new browser tab/window
Add shareable anchor links to case timeline updates
Some checks failed
CI / test (pull_request) Successful in 4m12s
CI / test (push) Has been cancelled
ed255cf0ec
- Add HTML anchor IDs to each timeline event for direct linking
- Implement copy-to-clipboard functionality for sharing specific updates
- Add link icon button next to each event title with visual feedback
- Include scroll-mt-8 for proper spacing when navigating to anchored events

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Configure Husky + lint-staged for automated code quality checks
Some checks failed
CI / test (push) Has been cancelled
CI / test (pull_request) Successful in 3m59s
e11ed8aeeb
- Add lint-staged to run Next.js linter on staged files only
- Configure prettier for code formatting
- Fix line ending issues with .gitattributes
- Update pre-commit hook to use lint-staged instead of full lint
deco force-pushed feature/add-case-update-anchors from e11ed8aeeb
Some checks failed
CI / test (push) Has been cancelled
CI / test (pull_request) Successful in 3m59s
to 53f769407f
All checks were successful
CI / test (push) Successful in 4m9s
CI / test (pull_request) Successful in 4m37s
2025-10-15 00:00:02 +03:00
Compare
Move copy link button to left side of case update title
All checks were successful
CI / test (push) Successful in 3m35s
CI / test (pull_request) Successful in 3m55s
bcf506926a
Repositioned the anchor link copy button from right-aligned to left-aligned,
appearing before the update title for better visual hierarchy.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
All checks were successful
CI / test (push) Successful in 3m35s
CI / test (pull_request) Successful in 3m55s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/add-case-update-anchors:feature/add-case-update-anchors
git switch feature/add-case-update-anchors
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
signal-works/cheatingchelsea!12
No description provided.