This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Hide bots and apps UI when managed by Apps Framework #7850
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6def23a
Hide bots and apps UI when managed by Apps Framework
larkox 92360f1
Fix types and i18n
larkox f119431
Fix snapshot
larkox 9e2f4b0
Make OAuthAppsIDs into OAuthAppIDs
larkox 3e0e521
Address feedback
larkox 2363f6e
Add tests
larkox 459f5a6
Merge branch 'master' into HideAppsBotsUI
larkox 4741d5a
don't hide bot account management controls
mickmister 568529c
Merge branch 'master' into HideAppsBotsUI
mickmister 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
Fix types and i18n
- Loading branch information
commit 92360f136e201ce9d3a6683da97b340fc8b0f357
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -21,6 +21,7 @@ describe('components/integrations/bots/Bots', () => { | |
getUser: jest.fn(), | ||
disableBot: jest.fn(), | ||
enableBot: jest.fn(), | ||
getAppsBotIDs: jest.fn(), | ||
}; | ||
|
||
it('bots', () => { | ||
|
@@ -46,6 +47,8 @@ describe('components/integrations/bots/Bots', () => { | |
owners={{}} | ||
users={users} | ||
actions={actions} | ||
appsEnabled={false} | ||
appsBotIDs={[]} | ||
/>, | ||
); | ||
wrapperFull.instance().setState({loading: false}); | ||
|
@@ -60,6 +63,7 @@ describe('components/integrations/bots/Bots', () => { | |
accessTokens={{}} | ||
team={team} | ||
actions={actions} | ||
fromApp={false} | ||
/>, | ||
)).toEqual(true); | ||
expect(wrapper.find('EnabledSection').shallow().contains( | ||
|
@@ -71,6 +75,7 @@ describe('components/integrations/bots/Bots', () => { | |
accessTokens={{}} | ||
team={team} | ||
actions={actions} | ||
fromApp={false} | ||
/>, | ||
)).toEqual(true); | ||
expect(wrapper.find('EnabledSection').shallow().contains( | ||
|
@@ -82,6 +87,7 @@ describe('components/integrations/bots/Bots', () => { | |
accessTokens={{}} | ||
team={team} | ||
actions={actions} | ||
fromApp={false} | ||
/>, | ||
)).toEqual(true); | ||
}); | ||
|
@@ -120,6 +126,8 @@ describe('components/integrations/bots/Bots', () => { | |
owners={owners} | ||
users={users} | ||
actions={actions} | ||
appsEnabled={false} | ||
appsBotIDs={[]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, can we have some tests that have app bots involved? |
||
/>, | ||
); | ||
wrapperFull.instance().setState({loading: false}); | ||
|
@@ -134,6 +142,7 @@ describe('components/integrations/bots/Bots', () => { | |
accessTokens={passedTokens} | ||
team={team} | ||
actions={actions} | ||
fromApp={false} | ||
/>, | ||
)).toEqual(true); | ||
}); | ||
|
This file contains 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 |
---|---|---|
|
@@ -36,6 +36,7 @@ describe('components/integrations/InstalledOAuthApp', () => { | |
onRegenerateSecret: jest.fn(), | ||
onDelete: jest.fn(), | ||
filter: '', | ||
fromApp: false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to have an apps-related test here? |
||
}; | ||
|
||
test('should match snapshot', () => { | ||
|
This file contains 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 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 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.
Can we add a test for a bot that has
fromApp={true}
?