Enode — API Reference
    Preparing search index...
    • A set's reps as concentric/eccentric pair-blocks.

      Parameters

      • __namedParameters: {
            compact?: boolean;
            deletedIDs?: ReadonlySet<string>;
            metrics: MetricReturnDto[];
            onToggleRep?: (id: string) => void;
            phaseAverages?: { concentric?: number | null; eccentric?: number | null };
            scales?: RepBarScales;
            selectedIDs?: ReadonlySet<string>;
            set: WorkoutSet;
            showAverages?: boolean;
            showHeadings?: boolean;
            showTags?: boolean;
            variant?: RepListVariant;
        }
        • Optionalcompact?: boolean

          columns only: the quick-read layout — no time and no CON/ECC chip, the rep number without "#", and the metrics sharing the row's width (pass at most two) instead of fixed scrolling columns. With scales, each value gets its bar underneath. Eccentric rows keep their striped background.

        • OptionaldeletedIDs?: ReadonlySet<string>

          Reps STAGED for deletion: struck through and muted, but still in place with their number, so the list stays readable and the edit stays reversible until it is saved. For surfaces that stage deletions (the portal's editors); a surface that deletes immediately just stops passing the rep.

        • metrics: MetricReturnDto[]

          The metrics to draw. columns renders one cell per entry (the focus metrics); chart draws the FIRST entry only and ignores the rest.

        • OptionalonToggleRep?: (id: string) => void

          Selection handler; omit for a read-only list.

        • OptionalphaseAverages?: { concentric?: number | null; eccentric?: number | null }

          chart only: the set's average for the charted metric, per phase, drawn as a tick across every bar of that phase. Omit to draw no ticks.

          Passed in rather than derived here: the Reps tab already computes the set's spread for its range strip, and the tick has to be the very same average the strip marks.

        • Optionalscales?: RepBarScales

          Bar scales; omit for a numbers-only list. See RepBarScales.

        • OptionalselectedIDs?: ReadonlySet<string>

          Currently-selected rep ids. Ignored without onToggleRep.

        • set: WorkoutSet
        • OptionalshowAverages?: boolean

          columns only: head the list with the set's average of every listed metric, one row per phase ("Ø CON", "Ø ECC"), in the same columns as the reps below. The row stays in view while the list scrolls vertically.

          Averages come from setPhaseRanges, so only VALID reps count and the numbers match the Reps tab's range strip. A phase with fewer than two valid reps gets no row — its average would repeat the one rep beneath it. A rep staged in deletedIDs still counts until the deletion is saved.

        • OptionalshowHeadings?: boolean

          columns only: name each metric column above the list. Without it two metrics that share a unit (mean and peak velocity, both m/s) can only be told apart by their order.

        • OptionalshowTags?: boolean

          Show each rep's tags as pills under its row.

        • Optionalvariant?: RepListVariant

      Returns Element

      Sorted by TIME, not by order: the backend numbers a pair's concentric before its eccentric even though the eccentric happened first, so sorting by order time-reverses every pair — and pairByPhase requires time-ordered input. Same sort as the set-review timeline and the technique charts.

      Pass onToggleRep to make rows selectable; omit it and they render as inert list items rather than dead buttons.