Skip to content

Conversation

@marcodejongh
Copy link
Owner

Summary

  • Creates a unified ClimbActions component that consolidates climb action implementations across the codebase
  • Adds support for multiple view modes: icon, button, dropdown, and compact
  • Implements props-based filtering with include/exclude arrays for controlling which actions to display
  • Adds new Share action using Web Share API with clipboard fallback
  • Adds placeholder AddToList action for future implementation

Changes

New Files

  • climb-actions/types.ts - TypeScript interfaces for action types and props
  • climb-actions/use-climb-actions.ts - Consolidated action logic hook
  • climb-actions/climb-actions.tsx - Main unified component
  • climb-actions/climb-actions.module.css - Responsive styles
  • climb-actions/actions/ - 9 individual action components:
    • view-details-action.tsx
    • fork-action.tsx
    • favorite-action.tsx
    • queue-action.tsx
    • tick-action.tsx
    • open-in-app-action.tsx
    • mirror-action.tsx
    • share-action.tsx (NEW)
    • add-to-list-action.tsx (NEW)

Modified Files

  • climb-card/climb-card.tsx - Now uses ClimbActions.asCardActions()
  • climb-view/climb-view-actions.tsx - Simplified to use ClimbActions component

Deleted Files

  • climb-card/climb-card-actions.tsx - Replaced by unified component

Test plan

  • Verify climb cards display action icons correctly (info, fork, favorite, queue)
  • Verify climb view page shows all action buttons on desktop
  • Verify climb view page shows dropdown menu on mobile
  • Test favorite toggle works with authentication
  • Test add to queue with 5-second debounce feedback
  • Test Share action copies link to clipboard (or uses native share on mobile)
  • Test Tick action opens logbook drawer

🤖 Generated with Claude Code

…modes

- Create ClimbActions component with icon, button, dropdown, and compact view modes
- Add individual action components: ViewDetails, Fork, Favorite, Queue, Tick, OpenInApp, Mirror, Share, AddToList
- Add useClimbActions hook for consolidated action logic
- Add props-based filtering with include/exclude arrays
- Update ClimbCard to use ClimbActions.asCardActions()
- Simplify ClimbViewActions to use ClimbActions component
- Remove duplicate ClimbCardActions component
- Add new Share action (Web Share API with clipboard fallback)
- Add placeholder AddToList action for future implementation

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Dec 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
boardsesh Ready Ready Preview, Comment Dec 27, 2025 0:25am

@marcodejongh marcodejongh merged commit be15674 into main Dec 27, 2025
4 checks passed
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