Skip to content

Group the source into folders - #13

Merged
Xarishark merged 4 commits into
mainfrom
refactor/src-layout
Nov 8, 2026
Merged

Xarishark merged 4 commits into
mainfrom
refactor/src-layout

Conversation

@Xarishark

Copy link
Copy Markdown
Owner

Moves the 75 flat files in src/ into folders by area. No behaviour change.

Library (director::)

  • audio/, display/, tv/, scene/, fps/ and cli/, each holding its model, its windows_* backend and its CLI commands. audio.rs, fps.rs and cli.rs became their folder's mod.rs, so crate::audio::apply and similar paths are unchanged; the rest gain a folder prefix (crate::tv::tvs, crate::scene::scenes, crate::audio::windows_audio::OperationLock).
  • App-wide services stay at the root: storage, preferences, backup, diagnostics, crash, notifications, windows_close.

Window (src/gui/)

  • All 26 page, dialog and helper modules move under src/gui/; main.rs keeps DirectorApp, Message and Page.
  • Old names left over from removed pages: current_ui → now_ui, library_flow → editor_flow, and Page::Current, CurrentMessage, CurrentState, the current field and the fps/editor Target::Current variants → Now.

All 66 moves are tracked as renames, so git log --follow keeps each file's history. ARCHITECTURE, DEVELOPMENT, DESIGN and CONTRIBUTING describe the new paths and fixture test names.

Verified

  • fmt, clippy with -D warnings, tests: 159 lib + 22 app passing, the same counts as before.
  • Ignored fixture test names listed with cargo test -- --list --ignored match the docs.
  • The preview fixture opens and shows Scenes and Now as before.

@Xarishark
Xarishark merged commit b99a8cb into main Nov 8, 2026
2 checks passed
@Xarishark
Xarishark deleted the refactor/src-layout branch November 8, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant