mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-11-09 10:42:49 -06:00
Open
opened 2026-07-23 13:13:46 -05:00 by GiteaMirror
·
0 comments
No Branch/Tag Specified
main
release-14.0
actions-preview
android-17-permission-feature
fix-bugs
release-13.0
fixes-and-updates
updates-and-fixes-post-13.0-rc3
pr-issue-details-screen-revamp
UI-revamp-and-refactors
UI-refactors-and-enhancements
updates-and-improvements
gitignores
release-12.0
fixes2
improvements-clean
improvements
features-http-auth-and-ui-improvements
release-11.0
rewrite-api
custom-url-scheme
bug-fixes
release-10.0
bugfix-release
repo-actions
add-providers
ui-enhancements
release-9.0
features-and-improvements
ui-improvements
release-8.0
fronport-login-hotfix
dependencies
filter-issues-by-labels
search-in-file
improvements-fixes
fixes-and-improvements
kickstart-8.0
release-7.0
add-attachments-when-editing-issue
pinned-issues
release-6.0
improvements-and-fixes
add-attachments-to-comments
comments-attachments
release-5.5
prepare-release-5.5
attachment-fixes
integrate-notes-and-new-reply-comment
release-5.4
improvements-and-enhancements
import-export-data
move-prefs-to-db
fix-emoji
deep-links-improvements
release-5.3
attachments
release-5.2
regression-fixes-backport
activity-view
release-5.1
fix-repo-name-change
ce-and-ui-updates
lang-stats
ui-updates
hide-notifications-count
dynamic-colors
release-5.0
fix-apache-files-lib-issue
fix-crash-on-md-preview-file-viewer-backport
fix-spanish-tr-strings
update-dep
fix-crash-on-md-preview-file-viewer
fix-deleted-ms-crash
md-preview-for-inputs
update-profile-view
notes-feature
issue-pr-timeline
use-cron-for-locale-pipeline
release-4.5
prepare-release-450
revamp-issues-list
copy-open-share-url-fileview
remvove-repo-from-db-after-delete-transfer
wiki-link-handler
code-editor
new-profile-screen
fix-certs
most-visited
material-3
fix-notifications
release-4.4
fix-token-issues
wikis
release-4.3
crowdin_2022-05-12
graphics-and-others
notification-toast
delete-release
bottomsheets-actions-search-filters-apilimit-tags
ui-enhancements-and-refactors
remote-search-my-issues
pagination-for-repos-org
labels-in-list
update-gradle
my-issues
release-4.2
fix-cache-size
fix-notification-pagination
fix-crash-on-commits-null-pointer
fix-emoji-ui
fix-fork-view
7-assign-team-to-repo
fix-asset-path
release-4.1
release-4.0
release-3.5
release-3.4
release-3.3
release-3.2
release-3.1
release-3.0
release-2.5
release-2.4
release-2.3
release-2.2
release-2.1
release-2.0
release-1.5
release-1.1
release-1.2
release-1.3
release-1.4
14.0.0
13.0.1
13.0.0
13.0.0-rc4
13.0.0-rc3
13.0.0-rc2
13.0.0-rc1
12.0.0
11.0.0
10.0.1
10.0.0
9.0.0
8.0.3
8.0.2
8.0.1
8.0.0
7.0.0
6.0.0
5.5.0
5.4.0
5.3.0
5.2.1
5.2.0
5.1.1
5.1.0
5.0.1
5.0.0
4.5.0
4.4.0
4.3.0
4.2.2
4.2.1
4.2.0
4.1.0
4.0.0
3.5.1
3.5.0
3.4.0
3.3.0
3.3.0-rc3
3.3.0-rc2
3.3.0-rc1
3.2.0
3.2.0-rc1
3.1.2
3.1.1
3.1.0
3.1.0-rc2
3.1.0-rc1
3.0.1
3.0.0
3.0.0-rc3
3.0.0-rc2
3.0.0-rc1
2.5.1
2.5.0
2.5.0-rc4
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.5.0
1.1.0
1.2.0
1.3.0
1.4.0
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitnex#1
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/gitnex-org/gitnex/pull/1
Author: @a19q3
Created: 7/17/2026
Status: 🔄 Open
Base:
main← Head:feat/repo-commits-tab📝 Commits (1)
f49a16bfeat(repo): expose Commits as a top-level tab📊 Changes
4 files changed (+332 additions, -9 deletions)
View changed files
📝
app/src/main/java/org/mian/gitnex/activities/RepoDetailActivity.java(+25 -9)➕
app/src/main/java/org/mian/gitnex/fragments/CommitsFragment.java(+229 -0)📝
app/src/main/res/layout/activity_repo_detail.xml(+7 -0)➕
app/src/main/res/layout/fragment_commits.xml(+71 -0)📄 Description
Summary
The Commits view in the repository detail screen is currently hidden two layers deep:
Files tab -> hub menu -> "Commits". Most users never find it. This PR promotes Commits to a peer tab between Files and Issues in the docked tab bar so it is discoverable alongside the other top-level sections.What's changed
activity_repo_detail.xml— newbtn_nav_commitsMaterialButton(ic_commiticon) inserted betweenbtn_nav_filesandbtn_nav_issues.RepoDetailActivity.javaTAG_COMMITSconstant and additions tofragmentTags[]/buttonIds[].setupFragments()adds aCommitsFragmentinstance withTAG_COMMITSto the container.setupDockListeners()includesbinding.btnNavCommitsin theMaterialButton[] navButtonsarray and wires itsOnClickListenertoswitchTab(TAG_COMMITS, …).updateDockUI()includesR.id.btn_nav_commitsin theallButtonsarray.applyRepositoryFeatures()gates the new tab onrepo.isHasCode()(hidden on wiki-only repos, same rule as the Files tab).onGlobalRefresh()also dispatches to the new fragment.CommitsFragment.java+fragment_commits.xml— reuses the existingCommitsViewModelandCommitsAdapter; click still navigates to the existingCommitDetailActivityvia the existing diff pipeline. Branch label is shown above the list (read-only, no switcher yet)../gradlew assembleFreeDebugand./gradlew assembleProDebugboth pass.Out of scope (deliberately)
RepositoryContext.branchRef, which is already mutable from elsewhere (Files, etc.).CommitsActivityalready has a search view, so adding it here is purely a port.Both can land as a second PR on top of this one to keep this change small and reviewable.
Test plan
gitnex-org/gitnexitself).CommitDetailActivity.has_code = false) — Commits tab is hidden, no crash.COMMITS_OPEN_FULLentry is shown (no-op for now; kept as the seam for the follow-up branch-switcher / search work).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.