Skip to content

Recommend planned workouts using catalogue equipment alternatives #90

Closed

Description

@johnnyhuy

Add a catalogue-backed recommendation overload on the BetterFit facade, building on the catalogue alternatives and entry-aware swap APIs already merged under #5.

Part of #5.

  • Add getRecommendedWorkout(from:) using the first scheduled template and the current equipment availability.
  • Choose the first eligible catalogue alternative for every unavailable workout entry, including repeated occurrences of the same exercise.
  • Preserve catalogue exercise identity and metadata, template identity, target sets and workout order. Keep entries with no eligible alternative unchanged.
  • Keep the existing no-argument API and its generated alternatives compatible.
  • Cover the facade-to-plan-to-template-to-swap flow with isolated SwiftPM tests and document the new API.

This slice changes no app screens and does not introduce recovery-based ranking, movement-equivalence rules or app catalogue wiring.

Activity

  1. johnnyhuy commented on Nov 16, 2026

    @johnnyhuy
    ContributorAuthor

    agent claim: agent/issue-90-catalogue-recommendations @ 32b583d

  2. johnnyhuy commented on Nov 16, 2026

    @johnnyhuy
    ContributorAuthor

    Implemented and pushed in #91. Local mise run lint, mise run build and mise run test all pass, including seven new facade integration tests. Proof transcript is in #91 (comment). CI is running; this child remains open until the PR merges.

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