import { IMPOSSIBLE, VersionInfo } from '@start9labs/start-sdk'

/**
 * v1.1.0:6 — Exercise history popup scrolls further.
 *
 * The clock-icon popup in the workout editor was capped at max-h-80
 * (~320px, ~5 history rows). Anyone with multi-year history saw their
 * older sessions hidden behind a tiny inner scrollbar. Bumped to
 * 70vh so it scales with the viewport (~15+ rows on a normal display,
 * more on a large monitor). The IntersectionObserver pagination
 * already loaded more on demand — the cap just hid them.
 *
 * Pure CSS-class change. No schema, no API, no data.
 */
export const v_1_1_0_6 = VersionInfo.of({
  version: '1.1.0:6',
  releaseNotes: {
    en_US:
      'Exercise-history popup (the clock icon while logging or editing a workout) now scales to 70% of viewport height instead of the previous ~320px cap. Users with multi-year history can scroll through ~15+ sessions without fighting a tiny inner scrollbar. Pure UI fix.',
  },
  migrations: {
    up: async () => {},
    down: IMPOSSIBLE,
  },
})
