Skip to content

chore: remove legacy lineup scaffolding#14439

Merged
dylanjeffers merged 1 commit into
mainfrom
chore/remove-legacy-lineup-scaffolding
Jun 2, 2026
Merged

chore: remove legacy lineup scaffolding#14439
dylanjeffers merged 1 commit into
mainfrom
chore/remove-legacy-lineup-scaffolding

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

What

Removes the dead, uid-based legacy lineup scaffolding. The lineup engine is already fully migrated to tan-query hooks (useFeed, useTrending, useProfileTracks, …) + the playback slice + TrackLineup — there were no legacy lineups left to migrate, only orphaned infrastructure.

Why

Investigation (follow-up to the playback-uid cleanup, #14438) showed the classic lineup system is gone: zero makeLineupActions/LineupSagas in source, and common/store/lineup's reducer/registry is not wired into any store. The remaining surface had no live consumers.

Changes

  • Delete packages/common/src/store/lineup/ (actions, reducer, selectors, registry, LineupBaseActions) and drop its barrel re-export from store/index.ts. Verified: no direct-path imports, no symbol imports, not registered in any store. (actionsMap hits elsewhere are unrelated local reducer consts.)
  • Delete mobile/.../explore-screen/components/CollectionLineupCarousel.tsx — dead code (no source references anywhere), the only component still calling the legacy actions.togglePlay(uid, id, source). Explore itself uses useExploreContent.
  • Drop vestigial LineupBaseActions usage from the mobile types: the actions?: LineupBaseActions prop on lineup-tile/types.ts (never read by TrackTile/CollectionTile) and the actions: LineupBaseActions fields on the unused legacy Lineup* prop types in lineup/types.ts.

Verification

  • tsc --noEmit clean in common, mobile, and web (0 errors each) — the gate that confirms nothing leaned on the deleted module.
  • Changeset added (@audius/common patch) since this trims that package's exports.

Not touched (out of scope)

  • A pre-existing roadmap TODO comment block in common/store/sagas.ts that lists old web saga paths (incl. store/lineup/sagas.js) — stale but unrelated.
  • Web card grids (CardLineup/InfiniteCardLineup) — presentational collection-card grids, not the uid/playback lineup system.

🤖 Generated with Claude Code

The lineup engine is fully migrated to tan-query hooks + the playback
slice; the legacy uid-based redux-saga lineup system has no remaining
live consumers. Remove the dead scaffolding:

- Delete common/store/lineup (actions, reducer, selectors, registry,
  LineupBaseActions). Not wired into any store; zero consumers besides
  vestigial type props. Drop its barrel re-export from store/index.
- Delete mobile CollectionLineupCarousel — dead code (no source
  references), the only component still calling the legacy uid-based
  actions.togglePlay(uid, id, source).
- Drop the vestigial `actions?: LineupBaseActions` prop from the mobile
  lineup tile/types (never read by TrackTile/CollectionTile) and the
  `actions: LineupBaseActions` fields from the unused legacy Lineup
  prop types.

tsc --noEmit clean in common, mobile, and web.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 2, 2026

🦋 Changeset detected

Latest commit: f1b8777

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@audius/common Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14439.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

@dylanjeffers dylanjeffers merged commit f97f1ac into main Jun 2, 2026
13 checks passed
@dylanjeffers dylanjeffers deleted the chore/remove-legacy-lineup-scaffolding branch June 2, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant