Repository navigation
Description
The problem
I noticed a couple of UX shortcomings regarding the Co-Authors input field. While I understand that raw Git CLI allows users to add themselves as co-authors and permits duplicate Co-authored-by lines, GitHub Desktop acts as a GUI layer that should ideally prevent these logical redundancies and provide clear feedback to the user.
Currently, there are two UX issues:
-
Self-assignment is allowed: Users can add their own GitHub handle (e.g., @hi2242 if that is the logged-in user) as a co-author, which is logically redundant.
-
Silent failure on duplicates: When a user tries to add a co-author that has already been added, the app simply ignores the input without providing any visual feedback or warning message.
Release version
Version 3.5.5
Operating system
Windows 11
Steps to reproduce the behavior
UX.non-sense.in.Co-Authors.mp4
-
Go to any repository in GitHub Desktop.
-
Click on the Co-Authors input field below the commit description.
-
Type your own GitHub handle and press Enter.
-
Observe that you are added as a co-author (which shouldn't be necessary).
-
Type the exact same handle again and select it.
-
Observe the silent failure: the duplicate is prevented (which is good), but no UI message is shown to inform the user why the action was ignored.
Log files
No response
Screenshots
No response
Additional context
Expected behavior
To enhance the user experience, I propose the following improvements:
-
For self-assignment: The UI should filter out the current user's handle from the suggestions, or show a brief tooltip preventing them from adding themselves.
-
For duplicates: Instead of silently ignoring the action, the UI should display a brief toast message or warning text (e.g., "This user is already added as a co-author") to provide clear feedback.
Contribution
I recently opened another UX-related issue regarding the commit message textarea scroll shadow (#21735 ).
I strongly believe these small details significantly improve the overall user experience. I would love to contribute by addressing both this Co-Authors UX issue and the scroll shadow bug.
Could you please assign this issue (along with the scroll shadow one) to me and add the help-wanted label? I will investigate the relevant components and submit a Pull Request.
Activity
Improve validation and error feedback for Co-Authors input
Refuse yourself and duplicates as co-authors