the repository view should be able to switch between history and files view even on subdirectories and files #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.