This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 408
Add dialog for new co-author #1374
Merged
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
109af34
Add "New User" as first item in co-author suggestion list
kuychaco b4a6959
Implement CoAuthorDialog and allow users to add new authors
kuychaco 59a101e
Add test for adding a co author in git tab controller.
c61545a
Make NewCoAuthor dialog a bit more compact
simurai 3017242
Refactor class names
simurai 4fdacff
Add validation for co author email.
39d37f8
Make buttons flexible.
simurai 74fbbcd
Ensure `New Author` is always present in list even when filtering.
5a555c8
Propagate input from co author list to create new co author dialog.
2a19b8e
:fire: .only
kuychaco 3a6c1a3
Use consistent wording for "New Author" and extract NEW_AUTHOR constant
kuychaco 91ee708
:fire: unnecessary `@autobind`
kuychaco b0161a9
:fire: unnecessary check to see if message param to GSOS#commit is a …
kuychaco 27026e8
Italicize "New Author" item in co-author suggestion list
kuychaco 8945ed6
Update "add new author" item in list to reflect what user has typed
kuychaco 120d4db
Clear the selected co-authors when toggling the input closed
kuychaco f50d782
Change co-author toggle icon tooltip text to say Add/Remove co-authors
kuychaco 1f6c374
:fire: test that never actually tested the thing
kuychaco e6a7eaf
Add ability to get user name and email from git.
75fd96d
WIP - filtering committer from list of co authors.
3d2defb
Exclude `noreply@github.com` from the list of co-authors.
77f1e7c
Fix caching issues with getCommitter
891ffbb
Add border around coauthor input box to distinguish it from background.
01680a0
Make toggle icons in commit box hover with hand (cursor: pointer)
445d2f3
Make co-author icon brighter color to indicate "active" state.
1682074
Whe `esc` key is pressed in co author input, close email suggestion list
ccb67b8
Focus co-author input field when first opened
kuychaco 4816d55
Add co-author input to list of focus elements in commit view
kuychaco 4f3ac9f
Focus co-author input list after new author dialog is closed
kuychaco 25be234
Add new co-author on `enter`
kuychaco d5af769
Don't focus commit editor when `tab`bing from co-author input
kuychaco dc7345f
Allow `tab`bing from co-author input to abort merge and commit button
kuychaco c5427d2
Submit new co-author input only if valid
kuychaco bde0c32
Only shift-tab to the StagingView if the commit editor is focused
kuychaco c2c5d60
Add tooltip for `cmd/ctrl-enter` to commit. Remove `tab` to focus button
kuychaco 92e3bc4
Rename CommitView#hasEditorFocus => CommitView#hasFocusEditor
kuychaco fbae7c1
Fix broken GitTabController focus tests
kuychaco 0ee35a9
Don't filter selected authors from list based on referential identity
kuychaco 9570ae4
Fix flakey UserStore test
kuychaco 8bc2f37
Rename CoAuthorDialog -> CoAuthorForm
kuychaco b9a454d
:art: and clean up
kuychaco bdd4261
Drop `github-coAuthor-select-input` and rely on existing classname
kuychaco 0edca73
Add some clarifying comments
kuychaco 56a1903
:shirt:
kuychaco dab0f03
clarify svg title for add/remove co authors button
d428edd
Disable `no-param-reassign` eslint rule
kuychaco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annthurium totally! We were getting a second
addUserscall from the setup when we instantiated aUserStore. AwaitingloadUsersFromLocalRepoensures that we don't start spying until that firstaddUserscall is complete from the initial load. That way we're only listening for theaddUserscall associated with our commit action.