Skip to content

Add catalogue-backed workout equipment swap suggestions #75

Closed

Description

@johnnyhuy

Part of #5. Builds on #72 and #73.

Add EquipmentSwapManager.suggestSwaps(for:from:) so callers can obtain workout-wide suggestions using real exercises from a supplied catalogue. Reuse the catalogue matching rules already implemented by findAlternatives(for:from:).

Return suggestions in workout order, omit exercises whose equipment is available or which have no eligible alternative, and preserve catalogue order and metadata. Keep repeated workout entries in their original order and leave the workout unchanged. Keep the existing generated suggestion API compatible.

Verify mixed workouts, empty results, changed equipment availability, repeated entries, and applying a catalogue suggestion without changing sets or notes. Document the new package API and include the passing test transcript in the PR. No iOS or watchOS UI changes are included. Movement equivalence and load adjustment remain separate slices.

Activity

  1. johnnyhuy commented on Nov 14, 2026

    @johnnyhuy
    ContributorAuthor

    agent claim: agent/issue-75-catalogue-workout-swaps @ eb7959b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentclaimed by the BetterFit work loop

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions