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 405
Project Management #2308
Merged
Merged
Project Management #2308
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
cfee43f
Add Git + GitHub context headers
simurai 8d867b0
add project repo change ability
wadethestealth 73b1ff8
update project context ui for github tab
wadethestealth d4ce922
rename to header-view
wadethestealth 1f3cfc6
add header view to git tab
wadethestealth 0ceb2ff
remove avatar and refresh button for mvp
wadethestealth 1d8cef8
fix lint
wadethestealth 5e3414a
remove padding
wadethestealth 691ca1d
fix 'CurrentPullRequestContainer' test warnings
wadethestealth 0dc2505
fix 'GitTabContainer' test warnings
wadethestealth 61a39e3
fix 'GitHubTabContainer' test warnings
wadethestealth c22dc33
create generic Error Boundary
wadethestealth 59db453
fix 'Decoration' test warnings
wadethestealth 1323ea4
fix 'Marker' test warnings
wadethestealth f8df70e
fix 'IssueDetailContainer' test warnings
wadethestealth ecac2bd
fix 'IssueishSearchContainer' test warnings
wadethestealth ad45fe4
fix 'ReviewsContainer' test warnings
wadethestealth 3e7fd43
fix 'ChangedFileController' test warnings
wadethestealth 924807c
fix 'CommentDecorationsController' test warnings
wadethestealth 7a9d05c
fix 'CommentDecorationsContainer' test warnings
wadethestealth 0162fc9
correctly consume Relay Query error on 'IssueishSearchContainer' test
wadethestealth 004d5b4
fix async test error
wadethestealth 32f0360
update test props for github tab view
wadethestealth 52ef584
remove active pane context guessing
wadethestealth 9cbd126
LINT MEH BABHEH :baby:
wadethestealth 413cd2d
Merge remote-tracking branch 'upstream/master' into project-management
wadethestealth 98adefc
update to not prefer absent context from preferred/saved state work dir
wadethestealth 083f650
update some test for github-package
wadethestealth 5a0fd75
remove unapplicable tests
wadethestealth 35e0df5
remove unnecessary test case step
wadethestealth e7f5ec8
simplify rendering header
wadethestealth d64c079
clean up header render
wadethestealth e1e7795
undo test nesting
wadethestealth 63cd27e
remove only
wadethestealth 61cdf7c
Merge branch 'master' into project-management
wadethestealth 571a095
revert globals
wadethestealth 73de350
replace context with describe
wadethestealth 52c70d9
update error catching
wadethestealth 21e025b
remove only
wadethestealth 8d6870b
remove unapplicable
wadethestealth 558c9a0
remove active pane listener
wadethestealth f03e06a
update all tests
wadethestealth 34adef2
lints
wadethestealth 72eb56c
lints
wadethestealth aa2edc9
add test cases
wadethestealth 265072c
add integration tests
wadethestealth 40df468
lint
wadethestealth bfedc49
Update test/atom/marker.test.js
wadethestealth 24aa298
update bad assert
wadethestealth ebfa43c
name change
wadethestealth cf1fd25
remove comments
wadethestealth 3c73da4
update error boundary
wadethestealth 5dbdd62
name change
wadethestealth dde9b3b
remove extras
wadethestealth 22b6a80
remove unused pane function
wadethestealth 8bd2612
remove unused refs
wadethestealth a1cb095
change render logic to use function call instead of switch statement
wadethestealth 5bb76cb
Update lib/views/header-view.js
wadethestealth d5a555a
Update lib/error-boundary.js
wadethestealth 44f6ea5
update tests to shallow instead of mount
wadethestealth 1a9938a
Merge branch 'project-management' of https://github.com/wadethestealt…
wadethestealth faa00ae
name change to TabHeaderView
wadethestealth 6f249de
simplify context removal from pool
wadethestealth 1d00a4c
add event for when open workdirs change
wadethestealth 23d1dc4
typo
wadethestealth 810ad66
name change to avoid confusion
wadethestealth ef802dc
use workdirs instead of project paths
wadethestealth 9ec4e75
lint
wadethestealth d33d7da
invalid use of property
wadethestealth 6a34a52
use workdirs working prototype
wadethestealth 70f8028
remove stub restores
wadethestealth 80f8b89
fix incorrect assert
wadethestealth f9fc198
update test
wadethestealth 9bfe8f9
fix tests
wadethestealth 95dcc1b
update tests
wadethestealth 2192a25
lints
wadethestealth a28ece8
test fixes
wadethestealth 1e2a8b8
update test cases
wadethestealth 11d39d1
lints
wadethestealth 7a0315a
add work dir pool tests
wadethestealth 879b702
lints
wadethestealth 1069fc9
remove extra fixture
wadethestealth 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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default class ErrorBoundary extends React.Component { | ||
wadethestealth marked this conversation as resolved.
Show resolved
Hide resolved
|
||
static propTypes = { | ||
children: PropTypes.node.isRequired, | ||
fallback: PropTypes.any, | ||
wadethestealth marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}; | ||
|
||
constructor(props) { | ||
super(props); | ||
this.state = {hasError: false, error: null, errorInfo: null}; | ||
} | ||
|
||
static getDerivedStateFromError(error) { | ||
// Update state so the next render will show the fallback UI. | ||
return {hasError: true}; | ||
} | ||
|
||
componentDidCatch(error, errorInfo) { | ||
this.setState({ | ||
error, | ||
errorInfo, | ||
}); | ||
} | ||
|
||
render() { | ||
if (this.state.hasError) { | ||
// You can render any custom fallback UI | ||
return this.props.fallback ? this.props.fallback : null; | ||
} | ||
|
||
return this.props.children; | ||
} | ||
} |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.