Skip to content

Commit 422111d

Browse files
Merge pull request #1176 from GetStream/develop
Next Release
2 parents 96c8511 + 3d75d5f commit 422111d

File tree

18 files changed

+140
-264
lines changed

18 files changed

+140
-264
lines changed

.github/workflows/docusaurus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- name: push
1616
uses: GetStream/push-stream-chat-docusaurus-action@main
1717
with:
18-
target-branch: 'production'
18+
target-branch: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
1919
env:
2020
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}

.github/workflows/release.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
#name: Release
2-
#
3-
##on:
4-
## push:
5-
## branches:
6-
## - master
7-
#
8-
#jobs:
9-
# publish-release:
10-
# runs-on: ubuntu-latest
11-
# strategy:
12-
# matrix:
13-
# node-version: [12.x]
14-
# steps:
15-
# - uses: actions/checkout@v2
16-
# with:
17-
# token: ${{ secrets.VERSION_BUMP_TOKEN }}
18-
# # pulls all commits (needed for semantic release to correctly version)
19-
# fetch-depth: '0'
20-
# # pulls all tags (needed for semantic release to correctly version)
21-
# - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
22-
# - name: Use Node.js ${{ matrix.node-version }}
23-
# uses: actions/setup-node@v2
24-
# with:
25-
# node-version: ${{ matrix.node-version }}
26-
# registry-url: 'https://registry.npmjs.org'
27-
# - name: Prepare git
28-
# run: |
29-
# git config --global user.name "Vishal Narkhede"
30-
# git config --global user.email "[email protected]"
31-
# - name: Installation && Build SDK
32-
# run: yarn --frozen-lockfile && yarn bootstrap-ci
33-
# - name: Lint
34-
# run: yarn lerna-workspaces run lint && cd docusaurus && npx prettier --check '**/*.mdx'
35-
# - name: Publish Release
36-
# run: yarn release
37-
# env:
38-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
39-
# GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
40-
# - name: Merge back changes
41-
# run: |
42-
# git stash
43-
# git checkout develop
44-
# git pull origin develop
45-
# git merge master -m "chore: merge back release [skip ci]"
46-
# git push origin develop
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish-release:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [12.x]
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
token: ${{ secrets.VERSION_BUMP_TOKEN }}
18+
# pulls all commits (needed for semantic release to correctly version)
19+
fetch-depth: '0'
20+
# pulls all tags (needed for semantic release to correctly version)
21+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
registry-url: 'https://registry.npmjs.org'
27+
- name: Prepare git
28+
run: |
29+
git config --global user.name "Vishal Narkhede"
30+
git config --global user.email "[email protected]"
31+
- name: Installation && Build SDK
32+
run: yarn --frozen-lockfile && yarn bootstrap-ci
33+
- name: Lint
34+
run: yarn lerna-workspaces run lint && cd docusaurus && npx prettier --check '**/*.mdx'
35+
- name: Publish Release
36+
run: yarn release
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
39+
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
40+
- name: Merge back changes
41+
run: |
42+
git stash
43+
git checkout develop
44+
git pull origin develop
45+
git merge master -m "chore: merge back release [skip ci]"
46+
git push origin develop

docusaurus/docs/reactnative/additional-resources/stream.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,25 @@ the Stream Chat for React Native SDK but can be integrated within your own app a
2020
To help you get acquainted with the Stream Chat JS client we have an easy to follow tutorial on our website.
2121
This is a great primer for using the client directly and can also help you understand how the Stream Chat for
2222
React Native SDK if functioning under the hood.
23+
24+
### [Stream Chat JS Basic Guide](https://github.com/GetStream/javascript-beginner-guide)
25+
26+
> ### Internal Articles
27+
28+
- [Stream Chat Glossary](https://getstream.zendesk.com/hc/en-us/articles/1500007212082-Stream-Chat-Glossary)
29+
30+
- [Stream Chat Success Checklist](https://getstream.zendesk.com/hc/en-us/articles/1500007673721-Stream-Chat-Success-Checklist)
31+
32+
- [React - Customizing Message Actions](https://getstream.zendesk.com/hc/en-us/articles/1500008025241--Customizing-Message-Actions-in-React-Chat)
33+
34+
- [Stream Webhooks](https://getstream.zendesk.com/hc/en-us/articles/1500006478421-How-can-I-use-the-Stream-Webhook-to-send-customers-emails-based-on-Chat-events-)
35+
36+
- [Stream Rate limits](https://getstream.zendesk.com/hc/en-us/articles/360056792833-Rate-limits-and-HTTP-429-Errors)
37+
38+
- [Stream API → Client → Server](https://getstream.zendesk.com/hc/en-us/articles/360061669873-How-do-the-Chat-Client-Server-Stream-API-communicate-with-each-other-)
39+
40+
- [Stream Chat Moderation](https://getstream.zendesk.com/hc/en-us/articles/360041455753)
41+
42+
- [Stream User Roles and Permissions](https://getstream.zendesk.com/hc/en-us/articles/360053064274-User-Roles-and-Permission-Policies-Chat)
43+
44+
- [Stream queryChannels filters](https://getstream.zendesk.com/hc/en-us/articles/360057461213-Filters-for-queryChannels-Chat)

docusaurus/docs/reactnative/basics/stream_chat_with_navigation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can choose whatever suits your needs best, theming, connection handling, and
4545
Having it higher in the _stack_ helps to ensure it is not unmounted at times when a connection is present.
4646
If `Chat` is unmounted with a connection present you may have to implement some connection handling functions yourself to ensure you reconnect when the app is, for instance, reopened from the background.
4747
The WebSocket connection closes on it's own approximately 15 seconds after the app is backgrounded.
48-
Not handling the connection on [`appState`](https://reactnative.dev/docs/appstate) changes will also effect [how Stream Chat handles Push Notifications](../guides/push_notifications.mdx).
48+
Not handling the connection on [`appState`](https://reactnative.dev/docs/appstate) changes will also effect [how Stream Chat handles Push Notifications](../guides/push_notifications_v2.mdx).
4949

5050
:::
5151

docusaurus/docs/reactnative/guides/performance_boost.mdx

Lines changed: 0 additions & 88 deletions
This file was deleted.

docusaurus/docs/reactnative/guides/performance_guide.mdx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@ You can lighten the load for the JS thread by disabling some of the heavier feat
5353
These props are available in version >= v3.9.0
5454
:::
5555

56-
### Image Viewer
57-
58-
By default, when you open (press) an image attachment it opens the image in a full-screen image viewer.
59-
Within the viewer, you can keep swiping left to scroll through all the images that have been loaded within a channel so far.
60-
This creates quite a lot of extra work for the JS thread to keep track of image attachments loaded in a channel and pre-populating them in the viewer for smooth transitions.
61-
62-
In v3.9.0, we introduced an alternate UX for the image viewer where image attachments are only loaded for the selected messages in a viewer.
63-
You can enable this alternate UX by setting the prop `legacyImageViewerSwipeBehaviour` to false on a Channel component.
64-
65-
```tsx
66-
<Channel legacyImageViewerSwipeBehaviour={false} />
67-
```
68-
6956
### Sticky Date Header and Inline Date Separator
7057

7158
By default, the MessageList component renders a sticky date header at the top of the list, and date separators between messages from different dates.

docusaurus/docs/reactnative/ui-components/channel_preview_message.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ id: channel-preview-message
33
title: ChannelPreviewMessage
44
---
55

6-
import LastMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/last_message_preview.mdx';
6+
import LatestMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/latest_message_preview.mdx';
77

88
Component to render a preview of latest message on channel within the [`ChannelList`](../core-components/channel_list.mdx).
99
This is the default component provided to the prop [`PreviewMessage`](../core-components/channel_list.mdx#preview) on the `ChannelList` component.
1010

1111
## Props
1212

13-
### <div class="label required">required</div> **lastMessagePreview**
13+
### <div class="label required">required</div> **latestMessagePreview**
1414

15-
<LastMessagePreview />
15+
<LatestMessagePreview />

docusaurus/docs/reactnative/ui-components/channel_preview_messenger.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import PreviewStatus from '../common-content/core-components/channel-list/props/
1010
import PreviewTitle from '../common-content/core-components/channel-list/props/preview_title.mdx';
1111
import PreviewUnreadCount from '../common-content/core-components/channel-list/props/preview_unread_count.mdx';
1212

13-
import LastMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/last_message_preview.mdx';
13+
import LatestMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/latest_message_preview.mdx';
1414
import FormatLatestMessageDate from '../common-content/ui-components/channel-preview-messenger/props/format_latest_message_date.mdx';
1515
import MaxUnreadCount from '../common-content/ui-components/channel-preview-messenger/props/max_unread_count.mdx';
1616
import Unread from '../common-content/ui-components/channel-preview-messenger/props/unread.mdx';
@@ -29,9 +29,9 @@ This is the default component provided to the prop [`Preview`](../core-component
2929

3030
<FormatLatestMessageDate />
3131

32-
### lastMessagePreview
32+
### latestMessagePreview
3333

34-
<LastMessagePreview />
34+
<LatestMessagePreview />
3535

3636
### maxUnreadCount
3737

docusaurus/docs/reactnative/ui-components/channel_preview_status.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: channel-preview-status
33
title: ChannelPreviewStatus
44
---
55

6-
import LastMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/last_message_preview.mdx';
6+
import LatestMessagePreview from '../common-content/ui-components/channel-preview-messenger/props/latest_message_preview.mdx';
77
import FormatLatestMessageDate from '../common-content/ui-components/channel-preview-messenger/props/format_latest_message_date.mdx';
88
import Channel from '../common-content/ui-components/channel-preview-messenger/props/channel.mdx';
99

@@ -38,9 +38,9 @@ const CustomPreviewStatus = ({ latestMessagePreview }) => {
3838
3939
<Channel />
4040
41-
### lastMessagePreview
41+
### latestMessagePreview
4242
43-
<LastMessagePreview />
43+
<LatestMessagePreview />
4444
4545
### formatLatestMessageDate
4646

0 commit comments

Comments
 (0)