Skip to content

#58: [CS5] Move RepeatMode display properties out of LibraryView.swift - #77

Open
KyNorthstar wants to merge 1 commit into
nightlyfrom
feature/58-move-RepeatMode-to-own-file
Open

#58: [CS5] Move RepeatMode display properties out of LibraryView.swift#77
KyNorthstar wants to merge 1 commit into
nightlyfrom
feature/58-move-RepeatMode-to-own-file

Conversation

@KyNorthstar

Copy link
Copy Markdown
Member

What

Moves RepeatMode's displayName, systemImageName_menuItem, and
systemImageName_preview out of a private extension at the tail of
LibraryView.swift and into a new Media Player/RepeatMode + display.swift,
beside RepeatMode.swift itself.

Why

Closes #58. These properties describe RepeatMode, not LibraryView
they were only in that file because that's where they were first needed.
The repo already has a convention for this (NativeImage + placeholder.swift,
NativeImage + thumbnail.swift), so this follows existing pattern rather
than introducing a new one.

Changes

  • New: Media Player/RepeatMode + display.swift — the three
    properties, now public extension RepeatMode (matches the visibility
    of RepeatMode.cycleNext(), since they're called from outside
    RepeatMode.swift's own file)
  • Edited: UI/LibraryView.swift — deleted the private extension
    block and its // MARK: - Sugar header; nothing else touched

Verification

No build available in my environment — verified by inspection: confirmed
both call sites (mode.displayName / mode.systemImageName_menuItem in
the repeat-mode picker, session.repeatMode.systemImageName_preview in
the toolbar) resolve against the new public extension in the same target.
A real build/run is still worth doing before merge.

Journal: LLM transparency/Claude Sonnet 5 • Issue #58 journal.md

Fixes #58

`displayName`, `systemImageName_menuItem`, and `systemImageName_preview`
lived in a private extension at the bottom of LibraryView.swift instead
of beside RepeatMode itself. Moved them to a new RepeatMode + display.swift,
following the same Type + purpose.swift pattern already used by
NativeImage + placeholder.swift and NativeImage + thumbnail.swift.

No logic changes. Both call sites in LibraryView.swift still resolve
against the new public extension.

Fixes #58

Co-authored-by: Claude 5 Opus <feedback+claude@kynorthstar.me>
@KyNorthstar KyNorthstar self-assigned this Sep 7, 2026
@KyNorthstar KyNorthstar added the Automatically found Found by automated processes like AI agents label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automatically found Found by automated processes like AI agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant