the repository view should be able to switch between history and files view even on subdirectories and files #20

Closed
opened 2026-07-31 10:55:22 +00:00 by hugo · 1 comment
Owner

when the user is in file mode and goes down directories or even opens a file, the user should be able to select history mode or files. if they select history, they get a history fore just this directory and below, or for just the selected file. if they go back to file mode, they are again in the same location of the file view. the file mode can have a markdown/preview/history situation for markdown files, others only have content/history. the idea is to have filtered history views for specific areas of the repository.

when the user is in file mode and goes down directories or even opens a file, the user should be able to select history mode or files. if they select history, they get a history fore just this directory and below, or for just the selected file. if they go back to file mode, they are again in the same location of the file view. the file mode can have a markdown/preview/history situation for markdown files, others only have content/history. the idea is to have filtered history views for specific areas of the repository.
hugo added this to the first feature complete release milestone 2026-07-31 10:55:22 +00:00
hugo added the enhancement label 2026-07-31 10:55:22 +00:00
Author
Owner

Implemented in 0583d05. Repository navigation now keeps path context while switching modes: nested directories provide Files/History, Markdown files provide Preview/Source/History, and other files provide Content/History. Rust passes the exact current path into Gitea commit queries, so folder history includes that subtree and file history is exact. Mode changes retain the same controller/navigation location, filtered history paginates, and commits open the normal Changed Files detail.

Verification: cargo fmt --all -- --check; RUSTFLAGS="-D warnings" cargo check --workspace --all-targets; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace (24 passed); signed arm64 iPhone 17 Pro simulator build. Simulator scenarios covered root switching, nested crates folder history and Files restoration, exact crates/app/src/lib.rs history and Content restoration, README.md Preview/Source/History, and opening a filtered commit.

Implemented in 0583d05. Repository navigation now keeps path context while switching modes: nested directories provide Files/History, Markdown files provide Preview/Source/History, and other files provide Content/History. Rust passes the exact current path into Gitea commit queries, so folder history includes that subtree and file history is exact. Mode changes retain the same controller/navigation location, filtered history paginates, and commits open the normal Changed Files detail. Verification: cargo fmt --all -- --check; RUSTFLAGS="-D warnings" cargo check --workspace --all-targets; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace (24 passed); signed arm64 iPhone 17 Pro simulator build. Simulator scenarios covered root switching, nested crates folder history and Files restoration, exact crates/app/src/lib.rs history and Content restoration, README.md Preview/Source/History, and opening a filtered commit.
hugo closed this issue 2026-07-31 13:43:39 +00:00
Sign in to join this conversation.