Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 8d11a55

Browse files
authored
Merge pull request #4201 from withspectrum/2.4.61
2.4.61
2 parents 14aafff + 715d326 commit 8d11a55

File tree

88 files changed

+982
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+982
-171
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
describe('Privacy View', () => {
2+
describe('Loads page', () => {
3+
beforeEach(() => {
4+
cy.visit('/apps');
5+
});
6+
7+
it('should render the privacy page', () => {
8+
cy.get('[data-cy="apps-page"]').should('be.visible');
9+
});
10+
});
11+
});

cypress/integration/navbar_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const coreSplashPageNavbarLinksVisible = () => {
77

88
cy.get('[data-cy="navbar-splash-features"]').should('be.visible');
99

10+
cy.get('[data-cy="navbar-splash-apps"]').should('be.visible');
11+
1012
cy.get('[data-cy="navbar-splash-support"]').should('be.visible');
1113
};
1214

cypress/integration/thread/chat_input_spec.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ describe('chat input', () => {
5454
it('should render', () => {
5555
cy.get('[data-cy="thread-view"]').should('be.visible');
5656
cy.get('[data-cy="chat-input-send-button"]').should('not.be.visible');
57-
cy
58-
.get('[data-cy="thread-join-channel-upsell-button"]')
59-
.should('be.visible');
57+
cy.get('[data-cy="thread-join-channel-upsell-button"]').should(
58+
'be.visible'
59+
);
6060
});
6161
});
6262

@@ -105,22 +105,19 @@ describe('chat input', () => {
105105
it('should allow quoting a message', () => {
106106
// Quote a message
107107
cy.get('[data-cy="staged-quoted-message"]').should('not.be.visible');
108-
cy
109-
.get('[data-cy="message"]')
108+
cy.get('[data-cy="message"]')
110109
.first()
111110
.should('be.visible')
112111
.click();
113-
cy
114-
.get('[data-cy="reply-to-message"]')
112+
cy.get('[data-cy="reply-to-message"]')
115113
.first()
116114
.should('be.visible')
117115
.click({ force: true });
118116

119117
cy.get('[data-cy="staged-quoted-message"]').should('be.visible');
120118

121119
// Remove quoted message again
122-
cy
123-
.get('[data-cy="remove-staged-quoted-message"]')
120+
cy.get('[data-cy="remove-staged-quoted-message"]')
124121
.should('be.visible')
125122
.click();
126123
cy.get('[data-cy="staged-quoted-message"]').should('not.be.visible');

mobile/components/ChatInput/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const ChatInputContainer = (props: Props) => {
4141
);
4242
};
4343

44-
export default compose(withNavigation, connect(mapStateToProps))(
45-
ChatInputContainer
46-
);
44+
export default compose(
45+
withNavigation,
46+
connect(mapStateToProps)
47+
)(ChatInputContainer);

mobile/components/Message/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,8 @@ class Message extends React.Component<Props, State> {
178178
}
179179
}
180180

181-
export default compose(connectActionSheet, toggleReaction, connect())(Message);
181+
export default compose(
182+
connectActionSheet,
183+
toggleReaction,
184+
connect()
185+
)(Message);

mobile/components/Messages/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,7 @@ class Messages extends Component<Props> {
218218
}
219219
}
220220

221-
export default compose(viewNetworkHandler, withCurrentUser)(Messages);
221+
export default compose(
222+
viewNetworkHandler,
223+
withCurrentUser
224+
)(Messages);

mobile/components/ThreadFeed/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,7 @@ class ThreadFeed extends Component<Props, State> {
191191
}
192192
}
193193

194-
export default compose(withCurrentUser, ViewNetworkHandler)(ThreadFeed);
194+
export default compose(
195+
withCurrentUser,
196+
ViewNetworkHandler
197+
)(ThreadFeed);

mobile/components/Toasts/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Toasts extends React.Component<Props, State> {
2727
opacityValue = new Animated.Value(0);
2828
containerTimeoutTiming = 3000;
2929
animationDuration = 200;
30-
removeToastTimeoutTiming = this.containerTimeoutTiming +
31-
this.animationDuration;
30+
removeToastTimeoutTiming =
31+
this.containerTimeoutTiming + this.animationDuration;
3232
hideContainerTimeout = undefined;
3333

3434
state = {
@@ -147,4 +147,7 @@ class Toasts extends React.Component<Props, State> {
147147
}
148148

149149
const map = (state: ReduxState): * => ({ toasts: state.toasts });
150-
export default compose(connect(map), withTheme)(Toasts);
150+
export default compose(
151+
connect(map),
152+
withTheme
153+
)(Toasts);

mobile/views/Channel/JoinButton.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,7 @@ class JoinButton extends React.Component<Props, State> {
9595
}
9696
}
9797

98-
export default compose(connect(), toggleChannelSubscription)(JoinButton);
98+
export default compose(
99+
connect(),
100+
toggleChannelSubscription
101+
)(JoinButton);

mobile/views/Channel/index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ const ChannelThreadFeed = compose(getChannelThreadConnection)(ThreadFeed);
4242

4343
class Channel extends Component<Props> {
4444
trackView = () => {
45-
const { data: { channel } } = this.props;
45+
const {
46+
data: { channel },
47+
} = this.props;
4648
if (!channel) return;
4749
track(events.CHANNEL_VIEWED, {
4850
channel: transformations.analyticsChannel(channel),
@@ -51,7 +53,10 @@ class Channel extends Component<Props> {
5153
};
5254

5355
setTitle = () => {
54-
const { data: { channel }, navigation } = this.props;
56+
const {
57+
data: { channel },
58+
navigation,
59+
} = this.props;
5560
let title;
5661
if (channel) {
5762
title = channel.name;
@@ -145,4 +150,7 @@ class Channel extends Component<Props> {
145150
}
146151
}
147152

148-
export default compose(getChannelById, ViewNetworkHandler)(Channel);
153+
export default compose(
154+
getChannelById,
155+
ViewNetworkHandler
156+
)(Channel);

0 commit comments

Comments
 (0)