Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5 #617

Merged
merged 124 commits into from
Jul 9, 2024
Merged

V5 #617

Changes from 1 commit
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
d81abd2
chore: create v5 branch
szuperaz Apr 9, 2024
78275ef
chore(release): 4.66.0-v5.1 [skip ci]
semantic-release-bot Apr 9, 2024
1abb764
chore: change channel to beta
szuperaz Apr 9, 2024
47195ba
Merge branch 'master' into v5
szuperaz Apr 10, 2024
70f20e4
feat: Update Angular to 15
szuperaz Apr 9, 2024
bd6e3ef
chore: remove unused e2e tests
szuperaz Apr 10, 2024
8f217ee
feat: Update dependecy versions
szuperaz Apr 11, 2024
7505645
docs: Add update guide
szuperaz Apr 11, 2024
b53c5fc
chore: Make sure we use Angular 15.0.x
szuperaz Apr 11, 2024
41e03fd
Merge pull request #588 from GetStream/v5-update-angular
szuperaz Apr 11, 2024
c7e7f2a
chore(release): 5.0.0-v5.1 [skip ci]
semantic-release-bot Apr 11, 2024
cd1a8e3
feat: replace ngx-popperjs with ngx-float-ui
szuperaz Apr 11, 2024
22b23a5
docs: small fixes
szuperaz Apr 11, 2024
4a59eb4
docs: small changes
szuperaz Apr 11, 2024
393db76
feat: add all Angular library dependencies as peer dependencies
szuperaz Apr 11, 2024
ae8905b
Merge pull request #589 from GetStream/v5-peer-dependencies
szuperaz Apr 11, 2024
5c4e8fb
chore(release): 5.0.0-v5.2 [skip ci]
semantic-release-bot Apr 11, 2024
1c85ebb
docs: Update update guide
szuperaz Apr 11, 2024
03cf541
feat: Remove theme-v1
szuperaz Apr 11, 2024
d86c4da
Merge pull request #590 from GetStream/remove-theme-v1
szuperaz Apr 12, 2024
a59f8fc
chore(release): 5.0.0-v5.3 [skip ci]
semantic-release-bot Apr 12, 2024
82227d5
docs: improve upgrade guide
szuperaz Apr 15, 2024
24b0277
fix: typing issue with [email protected] #592
szuperaz Apr 15, 2024
d0e948f
Merge pull request #594 from GetStream/fix-stream-chat-type-issue
szuperaz Apr 15, 2024
f020f94
chore(release): 5.0.0-v5.4 [skip ci]
semantic-release-bot Apr 15, 2024
de6d252
Merge branch 'master' into v5
szuperaz Apr 15, 2024
8fdac8f
chore(release): 5.0.0-v5.5 [skip ci]
semantic-release-bot Apr 15, 2024
4494ed9
feat: remove all deprecated code
szuperaz Apr 15, 2024
51170b4
Merge pull request #596 from GetStream/v5-remove-deprecated-code
szuperaz Apr 17, 2024
1780eb2
chore(release): 5.0.0-v5.6 [skip ci]
semantic-release-bot Apr 17, 2024
a5136b5
feat: make sure `channels$` stream never closes
szuperaz Apr 17, 2024
c9b6ba8
Merge pull request #597 from GetStream/v5-fix-channel-query-error-han…
szuperaz Apr 17, 2024
877d279
chore(release): 5.0.0-v5.7 [skip ci]
semantic-release-bot Apr 17, 2024
ca7877c
fix: message status tooltip trigger
szuperaz Apr 18, 2024
c57586e
Merge pull request #598 from GetStream/v5-context-menu-placement
szuperaz Apr 18, 2024
c935667
chore(release): 5.0.0-v5.8 [skip ci]
semantic-release-bot Apr 18, 2024
bad989d
feat: align the default reaction set with other SDKs #310
szuperaz Apr 18, 2024
b0722ab
Merge pull request #599 from GetStream/v5-reactions-consolidation
szuperaz Apr 18, 2024
a51664d
chore(release): 5.0.0-v5.9 [skip ci]
semantic-release-bot Apr 18, 2024
7cbc6d4
fix: message actions box not displayed
szuperaz Apr 18, 2024
43e9716
chore(release): 5.0.0-v5.10 [skip ci]
semantic-release-bot Apr 18, 2024
cbbf1cd
feat: allow customizing avatar size from CSS #84 #569
szuperaz Apr 18, 2024
55bec1e
feat: Allow customizing icons from CSS #84 #575
szuperaz Apr 23, 2024
1d78bf1
feat: remove size attributom from loading indicator
szuperaz Apr 24, 2024
7ba8a82
Merge branch 'master' into v5
szuperaz Apr 25, 2024
1fe7d28
Merge branch 'v5' into v5-avatar-icon-sizing
szuperaz Apr 25, 2024
d34b7a1
chore(release): 5.0.0-v5.11 [skip ci]
semantic-release-bot Apr 25, 2024
bc85a6f
Merge branch 'master' into v5
szuperaz Apr 25, 2024
985e8f0
Merge branch 'v5' into v5-avatar-icon-sizing
szuperaz Apr 25, 2024
aef2de0
chore(release): 5.0.0-v5.12 [skip ci]
semantic-release-bot Apr 25, 2024
e768f2e
Merge pull request #600 from GetStream/v5-avatar-icon-sizing
szuperaz Apr 26, 2024
9b8480b
chore(release): 5.0.0-v5.13 [skip ci]
semantic-release-bot Apr 26, 2024
0a61d13
fix: apply tooltip positioning to v5 release
szuperaz Apr 26, 2024
a3cc49f
chore(release): 5.0.0-v5.14 [skip ci]
semantic-release-bot Apr 26, 2024
6c0c0eb
Merge branch 'master' into v5
szuperaz May 16, 2024
05d8427
chore(release): 5.0.0-v5.15 [skip ci]
semantic-release-bot May 16, 2024
e173deb
feat: fix message menu positions
szuperaz May 16, 2024
f481505
Merge pull request #608 from GetStream/v5-message-menu-position
szuperaz May 16, 2024
f082459
chore(release): 5.0.0-v5.16 [skip ci]
semantic-release-bot May 16, 2024
c358d91
Merge branch 'master' into v5
szuperaz May 27, 2024
5533e74
chore(release): 5.0.0-v5.17 [skip ci]
semantic-release-bot May 27, 2024
ea6ebb3
Merge branch 'master' into v5
szuperaz Jun 13, 2024
f3840b1
chore(release): 5.0.0-v5.18 [skip ci]
semantic-release-bot Jun 13, 2024
2906138
Merge branch 'master' into v5
szuperaz Jun 17, 2024
1f905c7
chore: fix lint error
szuperaz Jun 17, 2024
f79becb
chore(release): 5.0.0-v5.19 [skip ci]
semantic-release-bot Jun 17, 2024
85a44fe
feat: Keeping track of channel invite now requires opt-in
szuperaz Jun 17, 2024
e1e81b4
Merge pull request #618 from GetStream/v5-disable-channel-invites
szuperaz Jun 17, 2024
4dc5f09
chore(release): 5.0.0-v5.20 [skip ci]
semantic-release-bot Jun 17, 2024
0706f72
feat: refactor message menu UI
szuperaz May 16, 2024
59c6fb6
Merge pull request #615 from GetStream/v5-message-menu-trigger
szuperaz Jun 18, 2024
babc0eb
chore(release): 5.0.0-v5.21 [skip ci]
semantic-release-bot Jun 18, 2024
5d5ee65
feat: change edit message UI
szuperaz Jun 18, 2024
644fe55
Merge pull request #619 from GetStream/v5-edit-message-ui
szuperaz Jun 18, 2024
3b61f75
chore(release): 5.0.0-v5.22 [skip ci]
semantic-release-bot Jun 18, 2024
5fc7b26
docs: small fixes in update guide
szuperaz Jun 18, 2024
3d44ec9
docs: docs and examle update
szuperaz Jun 19, 2024
2f5e592
fix: don't open menu while user is scrolling
szuperaz Jun 19, 2024
53fd897
chore(release): 5.0.0-v5.23 [skip ci]
semantic-release-bot Jun 19, 2024
002755c
docs: Update readme
szuperaz Jun 20, 2024
95733f8
docs: update readme
szuperaz Jun 20, 2024
7c3b740
fix: set SDK header before sending first request
szuperaz Jun 21, 2024
8ff1709
chore(release): 5.0.0-v5.24 [skip ci]
semantic-release-bot Jun 21, 2024
91204fe
feat: check file size before attempting to upload attachment
szuperaz Jun 21, 2024
bce34e6
fix: preserve app settings between user changes (unless API key is ch…
szuperaz Jun 24, 2024
ed749e1
Merge pull request #620 from GetStream/v5-attachment-size-check
szuperaz Jun 24, 2024
6174c6f
chore(release): 5.0.0-v5.25 [skip ci]
semantic-release-bot Jun 24, 2024
c8a8be8
fix: make sure that `channelListSetter` respects the order of channel…
szuperaz Jun 25, 2024
244f279
refactor: channel query extracted into
szuperaz Jun 25, 2024
78b35a5
feat: allow providing custom channel list query
szuperaz Jun 26, 2024
138e06f
Merge pull request #621 from GetStream/v5-custom-channel-query
szuperaz Jun 26, 2024
d4c454b
chore(release): 5.0.0-v5.26 [skip ci]
semantic-release-bot Jun 26, 2024
95048e9
feat: update ngx-float-ui version
szuperaz Jun 26, 2024
c363c55
chore(release): 5.0.0-v5.27 [skip ci]
semantic-release-bot Jun 26, 2024
14adfd7
fix: small CSS fixes
szuperaz Jun 27, 2024
091a670
chore(release): 5.0.0-v5.28 [skip ci]
semantic-release-bot Jun 27, 2024
1bb7819
docs: document multiple channel list
szuperaz Jun 27, 2024
40c9ba2
fix: message to edit wasn't always properly unselected
szuperaz Jun 27, 2024
df933fe
chore(release): 5.0.0-v5.29 [skip ci]
semantic-release-bot Jun 27, 2024
7717df8
fix: thread small UI fixes
szuperaz Jun 27, 2024
63607fd
chore(release): 5.0.0-v5.30 [skip ci]
semantic-release-bot Jun 27, 2024
b9990b8
fix: message status tooltip on iOS
szuperaz Jun 27, 2024
9aa987f
chore(release): 5.0.0-v5.31 [skip ci]
semantic-release-bot Jun 27, 2024
30000ef
fix: only disable user-select for the message bubble, not the whole m…
szuperaz Jun 28, 2024
66b0caa
chore(release): 5.0.0-v5.32 [skip ci]
semantic-release-bot Jun 28, 2024
a6f0f08
fix: desktop message menu is opened even if we have a custom event ha…
szuperaz Jul 1, 2024
8e11a97
fix: update stream-chat-css version
szuperaz Jul 1, 2024
51c198f
chore(release): 5.0.0-v5.33 [skip ci]
semantic-release-bot Jul 1, 2024
d6eabc3
docs: update upgrade guide
szuperaz Jul 1, 2024
2e17132
fix: add space after mentioned user's name
szuperaz Jul 2, 2024
9071a22
chore(release): 5.0.0-v5.34 [skip ci]
semantic-release-bot Jul 3, 2024
67a5bb8
fix: Update ngx-float-ui version
szuperaz Jul 9, 2024
8f8db43
chore(release): 5.0.0-v5.35 [skip ci]
semantic-release-bot Jul 9, 2024
ac00e5c
chore: fix node version
szuperaz Jul 3, 2024
11eff40
fix: ngx-float-ui version
szuperaz Jul 9, 2024
b0c8a2f
chore(release): 5.0.0-v5.36 [skip ci]
semantic-release-bot Jul 9, 2024
73c1969
docs: promote v5 to latest stable in docusaurus
szuperaz Jul 9, 2024
5d2efed
docs: Update docs
szuperaz Jul 9, 2024
b9c14f5
Merge pull request #623 from GetStream/v5-docs
szuperaz Jul 9, 2024
0fdb024
chore: update workflow
szuperaz Jul 2, 2024
304c6ea
chore: fix node version
szuperaz Jul 3, 2024
bced8d0
Merge branch 'master' into v5
szuperaz Jul 9, 2024
90b2c25
chore: use node 18
szuperaz Jul 9, 2024
a77641d
chore(release): 5.0.0-v5.37 [skip ci]
semantic-release-bot Jul 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: thread small UI fixes
  • Loading branch information
szuperaz committed Jun 27, 2024
commit 7717df836df90a2abfac0cc9342f819b0bd5e799
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ Let's start with the thread component:
width: 100%;
height: 100%;
position: fixed;
z-index: 2;
z-index: 3;
}

@media screen and (min-width: 768px) {
@@ -176,7 +176,7 @@ Provide the layout based on the menu state and hide the menu on bigger screens:
width: 100%;
height: 100%;
position: fixed;
z-index: 2;
z-index: 3;
}

@media screen and (min-width: 768px) {
2 changes: 1 addition & 1 deletion projects/sample-app/src/styles.scss
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ body {
width: 100%;
height: 100%;
position: fixed;
z-index: 2;
z-index: 3;
}

@media screen and (min-width: 768px) {
25 changes: 14 additions & 11 deletions projects/stream-chat-angular/src/lib/channel.service.ts
Original file line number Diff line number Diff line change
@@ -715,26 +715,29 @@ export class ChannelService<
* Loads the next page of messages of the active thread. The page size can be set in the [query option](https://getstream.io/chat/docs/javascript/query_channels/?language=javascript#query-options) object.
* @param direction
*/
async loadMoreThreadReplies(direction: 'older' | 'newer' = 'older') {
loadMoreThreadReplies(direction: 'older' | 'newer' = 'older') {
if (direction === 'newer') {
// Thread replies aren't broke into different message sets, activeThreadMessages$ will be refreshed by WS events, no need for a request
return;
return false;
}
const activeChnannel = this.activeChannelSubject.getValue();
const parentMessageId = this.activeParentMessageIdSubject.getValue();
if (!parentMessageId) {
return;
if (!parentMessageId || !activeChnannel) {
return false;
}
const threadMessages = this.activeThreadMessagesSubject.getValue();
const lastMessageId =
threadMessages[direction === 'older' ? 0 : threadMessages.length - 1]?.id;
await activeChnannel?.getReplies(parentMessageId, {
limit: this.messagePageSize,
[direction === 'older' ? 'id_lt' : 'id_gt']: lastMessageId,
});
this.activeThreadMessagesSubject.next(
activeChnannel?.state.threads[parentMessageId] || []
);
return activeChnannel
.getReplies(parentMessageId, {
limit: this.messagePageSize,
[direction === 'older' ? 'id_lt' : 'id_gt']: lastMessageId,
})
.then(() => {
this.activeThreadMessagesSubject.next(
activeChnannel?.state.threads[parentMessageId] || []
);
});
}

/**
Original file line number Diff line number Diff line change
@@ -571,6 +571,11 @@ export class MessageListComponent
this.scrollContainer.nativeElement.scrollHeight ===
this.scrollContainer.nativeElement.clientHeight
) {
if (this.isJumpToLatestButtonVisible) {
this.isJumpToLatestButtonVisible = false;
this.newMessageCountWhileBeingScrolled = 0;
this.cdRef.detectChanges();
}
return;
}
this.scroll$.next();
@@ -738,7 +743,9 @@ export class MessageListComponent
: this.channelService.activeThreadMessages$
).pipe(
tap((messages) => {
this.isLoading = false;
if (this.isLoading) {
this.isLoading = false;
}
if (messages.length === 0) {
this.chatClientService.chatClient?.logger?.(
'info',