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

Release/v3.2.4 #48

Merged
merged 811 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
811 commits
Select commit Hold shift + click to select a range
6744f02
fix: fixed pagination
serhii-ivanenko-amity Aug 2, 2021
6d75f78
feat: UP-2486 - added follow/unfollow ui integration; integrated foll…
serhii-ivanenko-amity Jul 29, 2021
6427556
feat: UP-2458 - added remove user functionality
serhii-ivanenko-amity Jul 31, 2021
6139d0b
fix: UP-1460 - fixed markup issues
serhii-ivanenko-amity Aug 2, 2021
5a06fc5
fixed tabs; upgraded SDK version
serhii-ivanenko-amity Aug 3, 2021
8dcedfe
fix: UP-4012 - hide the user posts count
Va1tra Aug 4, 2021
f3181bd
UP-4200 - upgraded SDK api version (now we not show posts of user who…
serhii-ivanenko-amity Aug 4, 2021
f0216a2
UP-4207 - added missed pending notification section
serhii-ivanenko-amity Aug 4, 2021
a7b26b6
fix: UP-4205 - added notification for accept/decline follow request
serhii-ivanenko-amity Aug 5, 2021
7076b07
fix: fixed counters text and incorrect remove option
serhii-ivanenko-amity Aug 5, 2021
c005c1f
fix: UP-4206 - added missed confirmation modal on unfollow
serhii-ivanenko-amity Aug 5, 2021
b795c7b
fix: UP-4230 - fixed redirect on user item click
serhii-ivanenko-amity Aug 5, 2021
fc063e7
fix: UP-4234 - fixed report menu item; removed redundant 3dots menu f…
serhii-ivanenko-amity Aug 5, 2021
cc207ce
fix: UP-4217 - remove 3dots menu for userItem if it equals to current…
serhii-ivanenko-amity Aug 5, 2021
915df68
fix: UP-4201 - show private feed if user not connected and network is…
serhii-ivanenko-amity Aug 6, 2021
535ef8d
fix: UP-4230 - redirect to profile when clicked from following list
kaungmyatlwin Aug 9, 2021
7faaf73
update sdk to 5.5.0-rc.5
Va1tra Aug 11, 2021
5dd0b28
misc: EPL-662 - add qa anchors
Va1tra Aug 17, 2021
68fd75d
fix: UP-4005 - disable Switch Community Permission when internet cuts
kaungmyatlwin Aug 18, 2021
e08aa01
fix: UP-4229 - hide pending tab/pending user info block when network …
serhii-ivanenko-amity Aug 18, 2021
b44c304
fix: UP-4238 - disable follow/pending buttons when connection drops
kaungmyatlwin Aug 18, 2021
14be597
hotfix - upgraded SDK + added missed prop
serhii-ivanenko-amity Aug 19, 2021
58c2d80
feat: UP-3462 - ask user if he/she wants to leave the page if post cr…
Va1tra Aug 20, 2021
b0fcfe4
fix: fix pending tab
serhii-ivanenko-amity Aug 24, 2021
4d26a60
misc: UP-4226 set LGPL-2.1-only license
Va1tra Aug 24, 2021
7b4202a
misc: align network settings with sdk changes
Va1tra Aug 27, 2021
1190af9
UP-4255 - disable buttons in pending tab when no connection
serhii-ivanenko-amity Aug 30, 2021
c61deee
UP-4235 - fixed pagination for accounts tab of social search
serhii-ivanenko-amity Aug 30, 2021
85ee9dc
sdk 5.5.0
Va1tra Aug 31, 2021
17b9ef1
2.2.0
Va1tra Aug 31, 2021
2110deb
fix: UP-4494 - fixed modal confirm text
serhii-ivanenko-amity Sep 6, 2021
b97252d
feat: UP-3737 - add media gallery for photo and video
Va1tra Sep 9, 2021
6492977
sdk 5.6.0-rc.4
Va1tra Sep 9, 2021
87ef876
sdk 5.6.0
Va1tra Sep 15, 2021
6c460a0
2.3.0
Va1tra Sep 15, 2021
5e7e1a5
feat: UP-4486 - livestream posts, livestream media gallery
Va1tra Oct 1, 2021
1d8cd79
feat: UP-1712 - poll feature
serhii-ivanenko-amity Oct 1, 2021
78f4c75
hotfix - fixed crash on option update
serhii-ivanenko-amity Oct 6, 2021
c1af3f2
Milestone: Y21Q3.6
kaungmyatlwin Oct 7, 2021
ebf03dc
fix: use message.user as a plain object
Va1tra Oct 8, 2021
459e3d1
fix: UP-4486 - hide livestream gallery
Va1tra Oct 14, 2021
018c647
fix: UP-5362 - set default cover photo
kaungmyatlwin Oct 15, 2021
7b5ef20
fix: UP-5359 - disallow to edit poll post
serhii-ivanenko-amity Oct 15, 2021
2e124f5
feat: UP-5360 - added handler for close poll
serhii-ivanenko-amity Oct 15, 2021
b00e347
fix: UP-5358 - fixed targetType and targetId for poll post creator
serhii-ivanenko-amity Oct 15, 2021
4cfcd06
fix: UP-5362 - convert SVG to Base64 for default community cover
kaungmyatlwin Oct 18, 2021
9219c43
2.4.0
Va1tra Oct 18, 2021
2efadf3
feat: UP-4664 - Transfer Roles
kaungmyatlwin Nov 22, 2021
b2a9fff
feat: UP-5246 - Mention Social Post
kaungmyatlwin Nov 22, 2021
21b0945
hotfix: arrange i18n en duplicate keys
kaungmyatlwin Nov 25, 2021
a972b5f
nightly build js-sdk 5.8.2-2a6dd68.0-rc
kaungmyatlwin Nov 25, 2021
51619a1
feat: UP-5244 - banned icon specs (UP-5803,UP-5797,UP-5800,UP-5809)
kaungmyatlwin Nov 29, 2021
3eea4e5
fix: UP-4984 - don't show promote to moderator for globally banned me…
kaungmyatlwin Nov 30, 2021
73295e3
fix: UP-6396 - Search mention list not display when put only mention …
kaungmyatlwin Nov 26, 2021
f1ef0e2
fix: UP-6393 - disallow searching for non-member of private community
kaungmyatlwin Nov 30, 2021
818bb64
fix: UP-6371 - no highlight on other platforms
kaungmyatlwin Dec 1, 2021
37a2f7c
fix: UP-6433 - Display mentioned user as @undefined when mention user…
kaungmyatlwin Dec 1, 2021
c2ac22b
fix: UP-6404 - Mentioned user is not display with highlight when crea…
kaungmyatlwin Dec 1, 2021
88b88ac
hotfix: return empty arr if mentionees is empty
kaungmyatlwin Dec 2, 2021
25712d0
fix: UP-5800 - show banned icon beside user post
kaungmyatlwin Dec 2, 2021
628d7c0
fix: UP-6290 - update sdk version
serhii-ivanenko-amity Dec 9, 2021
4e5c8bd
2.5.0
Va1tra Dec 9, 2021
01dd0b1
feat: UP-6278 - Update Post with mentions
kaungmyatlwin Dec 14, 2021
562db4c
fix: UP-6096 - Disable banned user from search list when trying to me…
kaungmyatlwin Dec 14, 2021
d2ead46
hotfix: no text showing when edit text
kaungmyatlwin Dec 14, 2021
e0435d3
hotfix: wrong styling for search input
kaungmyatlwin Dec 15, 2021
f2dcd0f
fix: UP-6539 - Display banned symbol incorrect position when create p…
kaungmyatlwin Dec 15, 2021
10f6793
fix: UP-6540 - Banned symbol on user profile
kaungmyatlwin Dec 21, 2021
ea5d643
fix: UP-6693 - disable create and edit post by mention to non member …
kaungmyatlwin Dec 21, 2021
e802231
fix: UP-6398 - text is not wrap to another line when put text with n…
kaungmyatlwin Dec 22, 2021
eda08dd
fix: UP-6541 - UI broken when have long display name on post
kaungmyatlwin Dec 22, 2021
838dc59
fix: UP-6693 - news feed showing non-private members for mention
kaungmyatlwin Dec 23, 2021
25b7907
fix: UP-6920 - upgrade sdk version
serhii-ivanenko-amity Dec 24, 2021
113a2bf
2.6.0
serhii-ivanenko-amity Dec 24, 2021
b301581
chore: UP-5883 update eslint
Va1tra Jan 14, 2022
fd0031e
feat: UP-5264 - Comment Mention (EPIC)
kaungmyatlwin Jan 17, 2022
6dd58ed
feat: UP-6880 - Add apiRegion prop to connect to sdk
gaurab13 Jan 17, 2022
4700dec
fix: UP-6892 - suggestionList bottom guard
kaungmyatlwin Jan 18, 2022
f29d6cb
fix: UP-6963 - add resetState func to reset to remote state
kaungmyatlwin Jan 25, 2022
a2383f7
fix: UP-6900 - displaying highlight when removed mentioned user
kaungmyatlwin Jan 25, 2022
c810076
fix: UP-6920 - update sdk
kaungmyatlwin Jan 25, 2022
e429bc6
2.7.0
kaungmyatlwin Jan 25, 2022
8158b8d
feat: UP-5811 - Mention in Poll Post
kaungmyatlwin Jan 31, 2022
7c0d658
fix: UP-7146 - display exceed error after input mentionees passes 30
kaungmyatlwin Feb 2, 2022
e61dfa2
upgrade sdk version
kaungmyatlwin Feb 4, 2022
c50d27c
2.8.0
kaungmyatlwin Feb 4, 2022
715ddc1
fix: UP-7130 - fix for fetching chat messages
serhii-ivanenko-amity Feb 8, 2022
c5fca1c
build: remove auto-changelog
y-nk Feb 9, 2022
8346137
build: remove gitlab ci
y-nk Feb 9, 2022
551da52
ci: github ci scripts
y-nk Feb 9, 2022
2916d98
style(ui-kit): add missing package
y-nk Feb 9, 2022
744efff
chore: [skip ci] update readme
y-nk Feb 9, 2022
c7aacb5
fix: storybook should show amity logo (#1)
y-nk Feb 9, 2022
af509f5
ci: [skip ci] weird typo in production workflow
y-nk Feb 9, 2022
6e01b59
fix: UP-7343 - Livestream Title & Description to be shown (#2)
kaungmyatlwin Feb 11, 2022
63630e2
fix: UP-6890 - Redirect to user page on mention (#3)
kaungmyatlwin Feb 11, 2022
55b9108
fix: UP-6934 - remove dependency on remoteMarkup metadata (#4)
kaungmyatlwin Feb 11, 2022
6d6b8f5
ci: [skip ci] rename release bot account
y-nk Feb 11, 2022
879c091
fix: UP-7142 - remove race condition inside queryMentionees cb (#5)
kaungmyatlwin Feb 15, 2022
b91e889
ci: add secrets as env var for storybook build
y-nk Feb 15, 2022
b0e4e04
ci: [skip ci] add pr template and task checker
y-nk Feb 15, 2022
2182d88
fix: UP-7142 - refactor useSocialMention (#6)
kaungmyatlwin Feb 17, 2022
ef146a5
build: [skip ci] dependabot to look for js-sdk
y-nk Feb 17, 2022
6ec1751
feat: UP-0000 - upgrade sdk version (#10)
kaungmyatlwin Feb 17, 2022
2591107
chore(release): 2.9.0
bmo-amity-bot Feb 17, 2022
48f215f
ci: [skip ci] add license
y-nk Feb 22, 2022
fb9296a
misc: [skip ci] prepare docs for opensourcing
y-nk Feb 22, 2022
dd623c5
ci: [skip ci] optimize checks
y-nk Feb 22, 2022
6c79035
ci: [skip ci] add code owners
y-nk Feb 22, 2022
5ac0621
fix: UP-7483 - infinite looping on Uploader lifecycle (#11)
kaungmyatlwin Feb 23, 2022
9cae4cd
fix: UP-7484 - better resolution for CommunityCard thumbnails (#12)
kaungmyatlwin Feb 24, 2022
768d4e5
ci: [skip ci] pr checks trigger rollback
y-nk Feb 24, 2022
e399713
fix: UP-7482 - add gutter for HorizontalList (#14)
kaungmyatlwin Feb 25, 2022
7b7acbe
fix: UP-7485 - use display name length (#15)
kaungmyatlwin Feb 25, 2022
cc2d9ac
refactor: UP-7484 - extract image fetching logic in useImage hook (#16)
kaungmyatlwin Mar 1, 2022
f7793d5
chore(release): 2.9.1
bmo-amity-bot Mar 3, 2022
3fbf837
fix: UP-7418 - highlight for livestream mention correctly (#17)
kaungmyatlwin Mar 9, 2022
f158643
fix: UP-7624 - cannot upload pics/files twice (#21)
kaungmyatlwin Mar 14, 2022
c093535
fix: UP-7623 - Scrollable Community List Target Selector (#22)
kaungmyatlwin Mar 14, 2022
3e2b9c3
fix: UP-7677 - use better resolution for user pfp (#19)
kaungmyatlwin Mar 14, 2022
d82cb66
fix: UP-7644 - URL won't render on Posts/Comments (#18)
kaungmyatlwin Mar 14, 2022
5723c22
feat: UP-7644 - Custom Chunk Highlighter Component (#25)
kaungmyatlwin Mar 17, 2022
33a345e
chore(release): 2.10.0
bmo-amity-bot Mar 17, 2022
629fa4f
feat: UP-7988 - Google's URL styles (#26)
kaungmyatlwin Mar 24, 2022
db853b1
fix: UP-6435 - Cannot view video when create post with video from web…
kaungmyatlwin Mar 24, 2022
0ce58fd
feat: UP-7716 - provide access to ASCClient instance using useAmitySD…
Va1tra Mar 25, 2022
459be48
chore(release): 2.11.0
bmo-amity-bot Mar 31, 2022
4dc0a36
fix: ASC-430 - revert default linking style to blue + underline (#30)
kaungmyatlwin Apr 18, 2022
051ac64
UP-8086 - force to scroll to the bottom when add new message (#29)
serhii-ivanenko-amity Apr 21, 2022
e47f314
chore(release): 2.11.1
bmo-amity-bot Apr 21, 2022
fa5564d
fix: ASC-1133 - misc console fixes (maxrows & duplicate key) (#33)
kaungmyatlwin May 17, 2022
db9b4c2
feat: ASC-468 - added chat composer (#34)
serhii-ivanenko-amity May 17, 2022
a225982
chore(release): 2.12.0
bmo-amity-bot May 20, 2022
500604d
ci: make optional checklist items to be optional
Va1tra May 23, 2022
6f6c276
fix: rebuild package-lock (#35)
Va1tra May 25, 2022
469c2d2
fix: ASC-1489 - Community image missing in the dropdown (#37)
kaungmyatlwin Jun 2, 2022
04718cf
chore(release): 2.12.1
bmo-amity-bot Jun 2, 2022
6524941
fix: eslint
Va1tra Jun 2, 2022
56a0325
fix: ASC-1935 - Make channelId optional when creating channels (#41)
Jun 14, 2022
4f77cbc
fix:ASC-1983-Update js-sdk to v5.20.0 (#43)
Jun 16, 2022
71e255e
fix: asc-1566 - show user's custom avatar in missed places (#42)
Va1tra Jun 20, 2022
8e9e2ca
chore(release): 2.12.2
bmo-amity-bot Jun 21, 2022
6a37b48
refactor: remove empty storybook stories
Va1tra Jun 27, 2022
88680ea
ci: use api region param
Va1tra Jul 5, 2022
4ff25eb
fix: ASC-2826 - allow user to update displayName & discription withou…
Jul 25, 2022
7111ca7
[squash] ASC-2826 - remove unnecessary char (#48)
Jul 26, 2022
f7c2037
fix: ASC-2788 - replace react-time-ago with react-timeago (#47)
Jul 29, 2022
9c0727b
chore(release): 2.12.3
bmo-amity-bot Jul 29, 2022
a24790b
fix: wait until connection appears (#49)
Aug 5, 2022
0a0ae8a
Refactoring useSdk hook (#50)
nuipawarit Aug 9, 2022
6a09e2c
fix: ASC-3724 - Fix mention text showing userId instead of DisplayNam…
nuipawarit Aug 10, 2022
cadcab7
feat: ASC-3806 - Update js-sdk to v5.23.1 (#52)
nuipawarit Aug 11, 2022
f63b61a
chore(release): 2.13.0
bmo-amity-bot Aug 11, 2022
5d629ae
deps: ASC-1683 - update dependencies (#38)
Va1tra Aug 18, 2022
17ed98c
deps: update js sdk to latest nightly build
Va1tra Aug 24, 2022
2f6beaa
docs: ASC-0000 - Add examples for using social & chat (#53)
Aug 24, 2022
aaec8e1
feat: update js sdk to 5.24.0
serhii-ivanenko-amity Aug 26, 2022
7cfc0d2
chore(release): 2.14.0
bmo-amity-bot Aug 26, 2022
ee540cc
fix:ASC-4521 only submit profile fields (#55)
Aug 29, 2022
334ccfe
chore(release): 2.14.1
bmo-amity-bot Aug 30, 2022
0bfe7ab
chore: ASC-0000 - update changelog for patch (#56)
Aug 30, 2022
216cc03
chore: ASC-1696 - Align poll icon style with other icons (#54)
Aug 31, 2022
653482e
bug: ASC-4538 - remove unneccessary chars (#60)
Sep 2, 2022
bfac2f1
fix: remove '0' symbol from the comment list
Va1tra Sep 7, 2022
7f6aa88
fix: asc-3586 - fix the parsing of string containing mentiones (#61)
Va1tra Sep 9, 2022
7408a6b
fix: ASC-3498 - fix the creation of metadata for mentionees (#62)
Va1tra Sep 9, 2022
7e7bcae
ASC-3722 - fixed markup to show ban symbol in comment (#59)
serhii-ivanenko-amity Sep 9, 2022
a4c89d3
chore(release): 2.14.2
bmo-amity-bot Sep 9, 2022
fad496d
fix: ASC-3885 - pass all icons props into svg element inside icon com…
Va1tra Sep 13, 2022
3a946dc
fix: asc-3645 - the channel unread count in the channel list (#64)
Va1tra Sep 20, 2022
d50fd64
ASC-3640 - fixed link color (#63)
serhii-ivanenko-amity Sep 20, 2022
25561ac
ASC-3639 - fixed markup to show ban symbol in search (#58)
serhii-ivanenko-amity Sep 20, 2022
c0bbbd7
chore(release): 2.14.3
bmo-amity-bot Sep 23, 2022
06178f9
chore(release): 2.14.4
bmo-amity-bot Oct 10, 2022
0f5d95c
ASC-5181 - fixed popover (#65)
serhii-ivanenko-amity Oct 31, 2022
e6e3275
fix: minor style fixes
Va1tra Nov 3, 2022
0acc73f
fix: ASC-6373 - use useRef in functional component instead of createR…
Va1tra Nov 4, 2022
8b4ec5b
fix: ASC-6036 - update js-sdk, do not crash in node env
Va1tra Nov 4, 2022
1634929
chore(release): 2.14.5
bmo-amity-bot Nov 4, 2022
1a6a519
fix: ASC-5490 - Override default post renderers (#67)
Va1tra Nov 9, 2022
6118c31
new minor version (#69)
serhii-ivanenko-amity Nov 17, 2022
0af028e
chore(release): 2.14.6
bmo-amity-bot Nov 17, 2022
e4acb4a
fix: ASC-7518 - correctly calculate mentions length on post update (#73)
Va1tra Nov 25, 2022
025e075
chore: ASC-6833 - Optimize Ui-Kit Images / reduce requests on launch …
Nov 28, 2022
b02a289
chore: use nightly sdk build for qa (#74)
Nov 28, 2022
a811986
feat: custom attribute for automate test (#70)
chaiwattsw Nov 28, 2022
1630a3e
chore(release): 2.15.0
bmo-amity-bot Dec 2, 2022
ae28c97
chore:update js-sdk to 5.31.0 (#75)
Dec 2, 2022
64c07c7
chore(release): 2.15.1
bmo-amity-bot Dec 2, 2022
05ad4c3
fix: ASC-7914 - added subscription for community RTE events (#76)
serhii-ivanenko-amity Dec 23, 2022
b5bff75
chore(release): 2.15.2
bmo-amity-bot Dec 23, 2022
89856a8
fix: ASC-6970 - fix mentions showing userid instead of display name (…
nuipawarit Jan 24, 2023
9a3df95
ASC-9529 - fixed indent for modal overlay (#78)
serhii-ivanenko-amity Jan 25, 2023
f3da617
chore(release): 2.15.3
bmo-amity-bot Jan 31, 2023
7e22ca5
fix: ASC-4612 - Update default values for channel creation (#79)
serhii-ivanenko-amity Feb 6, 2023
eed8b14
chore(release): 2.15.4
bmo-amity-bot Feb 10, 2023
bc95492
fix: asc-11360 fix post header icon size (#80)
Mar 31, 2023
bfdcb58
chore(release): 2.15.5
bmo-amity-bot Mar 31, 2023
bf69602
fix: asc-12046 use transcoded video if available (#81)
Apr 10, 2023
c86aaf8
chore(release): 2.15.6
bmo-amity-bot Apr 10, 2023
ad6056a
fix: asc-11719 get displayName from user object (#82)
May 3, 2023
8837e4c
chore(release): 2.15.7
bmo-amity-bot May 9, 2023
1168983
fix: ASC-13714 - fix mime type for video player (#84)
nuipawarit Jun 19, 2023
3f1a951
chore(release): 2.15.8
bmo-amity-bot Jun 19, 2023
7e0286c
feat(prod): update sdk version (#94)
frankent Sep 20, 2023
974d333
chore(release): 2.16.0
bmo-amity-bot Sep 21, 2023
b528922
chore: ASC-15849 - npm -> pnpm (#86)
bonanaaaaaa Nov 16, 2023
91f3b79
chore: ASC-15847 - tsup bundler (#87)
bonanaaaaaa Nov 16, 2023
590e660
fix: ASC-15847 - add tsup and change storybook config (#95)
chaiwattsw Nov 17, 2023
fea7a1c
chore: ASC-15844 - storybook v7 (#88)
bonanaaaaaa Nov 24, 2023
62bccb2
chore: ASC-15848 - styled components (#89)
bonanaaaaaa Nov 24, 2023
5b9ee43
chore: ASC-15851 - react-linkify -> linkify-react (#90)
bonanaaaaaa Nov 24, 2023
41e2260
chore: ASC-15850 - classnames to clsx (#91)
bonanaaaaaa Nov 24, 2023
10859ae
chore: ASC-0000 - update eslint (#98)
bonanaaaaaa Nov 24, 2023
36563af
fix: truncate break word (#102)
chaiwattsw Dec 6, 2023
9a2306f
fix: update release prod flow (#103)
chaiwattsw Dec 7, 2023
2fa174e
feat: ASC-15842 - js sdk to ts sdk (#92)
bonanaaaaaa Jan 18, 2024
9002da7
Revert "feat: ASC-15842 - js sdk to ts sdk" (#111)
ptchayap Jan 18, 2024
b82b200
Revert "Revert "feat: ASC-15842 - js sdk to ts sdk"" (#112)
bonanaaaaaa Jan 18, 2024
1491e3d
feat: support minor and major release (#113)
bonanaaaaaa Jan 18, 2024
01a75e9
chore(release): 3.0.0 (#114)
ptchayap Jan 19, 2024
e4af2dc
fix: liveStream and video MediaGallery and edit post validator (#115)
bonanaaaaaa Jan 22, 2024
043be89
feat: ASC-17988 - view create delete story (#110)
chaiwattsw Jan 23, 2024
f3fed44
Revert "feat: ASC-17988 - view create delete story (#110)" (#119)
chaiwattsw Jan 24, 2024
becbb12
fix: don't join a conversation channel (#120)
bonanaaaaaa Jan 25, 2024
ed91c32
fix: call stopUnreadSync when unmount (#121)
bonanaaaaaa Jan 25, 2024
6028d46
chore(release): 3.1.0 (#122)
bonanaaaaaa Jan 25, 2024
96dd5b0
fix: add channel subscription (#132)
bonanaaaaaa Jan 30, 2024
e7434e1
fix: remove Loading... text (#133)
bonanaaaaaa Jan 31, 2024
ce80ea6
fix: add authToken (#130)
bonanaaaaaa Jan 31, 2024
4f1ba59
feat: ASC-17988 - community story (#117)
chaiwattsw Feb 8, 2024
bb603ac
fix: fix @amityco/ts-sdk version (#138)
bonanaaaaaa Feb 8, 2024
29ee5e2
fix: noti error show 2 times (#136)
chaiwattsw Feb 9, 2024
2b821c8
fix: ASC-19651 - play pause state (#137)
chaiwattsw Feb 9, 2024
df97b01
fix: useChannel instead of channel from livecollection (#139)
bonanaaaaaa Feb 9, 2024
d6c1bf3
fix: ASC-20155 - fix message list scroll (#140)
bonanaaaaaa Feb 9, 2024
0f10253
fix: chat avatar (#135)
bonanaaaaaa Feb 20, 2024
026206a
fix: ASC-20427 - fix session renewal (#145)
bonanaaaaaa Feb 21, 2024
f7b35bc
feat: ASC-19739 - remove font awesome pro (#129)
bonanaaaaaa Feb 23, 2024
0a3aaa2
chore(release): 3.2.0
bmo-amity-bot Feb 27, 2024
4fdca5d
fix: update prod workflow
chaiwattsw Feb 27, 2024
e6db3aa
Merge branch 'release/3.1.3' of https://github.com/EkoCommunications/…
chaiwattsw Feb 27, 2024
6f36d27
chore(release): 3.2.1
bmo-amity-bot Feb 27, 2024
51f930c
fix: ASC-20427 - add get authToken (#158)
ptchayap Mar 1, 2024
02875bb
fix: typo
ptchayap Mar 1, 2024
85d0194
chore(release): 3.2.3
bmo-amity-bot Mar 1, 2024
ba4e3f0
fix: ASC-20601 - comment with blocked word should show noti (#154)
chaiwattsw Mar 1, 2024
57a7daa
chore(release): 3.2.4
bmo-amity-bot Mar 11, 2024
0b3c4f2
Merge remote-tracking branch 'upstream/release/v3.2.4' into release/v…
ptchayap Mar 11, 2024
eeebb3b
chore(release): 3.2.4
bmo-amity-bot Mar 11, 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 3.2.4 (2024-03-11)

### 3.2.3 (2024-03-01)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/ui-kit-open-source",
"version": "3.2.3",
"version": "3.2.4",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down
4 changes: 3 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,5 +370,7 @@
"editChatMembersModal.confirm.title": "Leave without finishing?",
"editChatMembersModal.confirm.content": "Your progress won’t be saved. Are you sure to leave this page now?",
"editChatMembersModal.confirm.cancelText": "Continue editing",
"editChatMembersModal.confirm.okText": "Leave"
"editChatMembersModal.confirm.okText": "Leave",

"notification.error.blockedWord": "Amity SDK (400308): Text contain blocked word"
}
40 changes: 25 additions & 15 deletions src/social/components/Comment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import useSDK from '~/core/hooks/useSDK';
import useUser from '~/core/hooks/useUser';
import useFile from '~/core/hooks/useFile';
import { CommentRepository } from '@amityco/ts-sdk';
import useCommunity from '~/social/hooks/useCommunity';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';
import useCommentFlaggedByMe from '~/social/hooks/useCommentFlaggedByMe';
import useCommentPermission from '~/social/hooks/useCommentPermission';
import useCommentSubscription from '~/social/hooks/useCommentSubscription';
import { ERROR_RESPONSE } from '~/social/constants';

const REPLIES_PER_PAGE = 5;

Expand Down Expand Up @@ -138,18 +138,30 @@ const Comment = ({ commentId, readonly }: CommentProps) => {
) => {
if (!comment?.referenceType || !comment?.referenceId) return;

const { referenceType, referenceId } = comment;

await CommentRepository.createComment({
referenceType,
referenceId,
data: {
text: replyCommentText,
},
parentId: commentId,
metadata,
mentionees,
});
try {
const { referenceType, referenceId } = comment;

await CommentRepository.createComment({
referenceType,
referenceId,
data: {
text: replyCommentText,
},
parentId: commentId,
metadata,
mentionees,
});
setIsReplying(false);
setExpanded(true);
} catch (error: unknown) {
if (error instanceof Error) {
if (error.message === ERROR_RESPONSE.CONTAIN_BLOCKED_WORD) {
notification.error({
content: <FormattedMessage id="notification.error.blockedWord" />,
});
}
}
}
};

const handleEditComment = async (text: string, mentionees: Mentionees, metadata: Metadata) =>
Expand Down Expand Up @@ -288,8 +300,6 @@ const Comment = ({ commentId, readonly }: CommentProps) => {
userToReply={commentAuthor?.displayName}
onSubmit={(replyText, mentionees, metadata) => {
handleReplyToComment(replyText, mentionees, metadata);
setIsReplying(false);
setExpanded(true);
}}
/>
)}
Expand Down
3 changes: 1 addition & 2 deletions src/social/components/CommentComposeBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const CommentComposeBar = ({
const { currentUserId } = useSDK();
const user = useUser(currentUserId);
const avatarFileUrl = useImage({ fileId: user?.avatarFileId, imageSize: 'small' });
const { text, markup, mentions, mentionees, metadata, onChange, clearAll, queryMentionees } =
const { text, markup, mentions, mentionees, metadata, onChange, queryMentionees } =
useSocialMention({
targetId: post?.targetId,
targetType: post?.targetType,
Expand Down Expand Up @@ -76,7 +76,6 @@ const CommentComposeBar = ({
}

onSubmit?.(text, mentionees, metadata);
clearAll?.();
};

const isEmpty = text === '';
Expand Down
40 changes: 29 additions & 11 deletions src/social/components/EngagementBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { Mentionees, Metadata } from '~/helpers/utils';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';
import useReactionSubscription from '~/social/hooks/useReactionSubscription';
import usePostSubscription from '~/social/hooks/usePostSubscription';
import { notification } from '~/core/components/Notification';
import { FormattedMessage } from 'react-intl';
import useSocialMention from '~/social/hooks/useSocialMention';
import { ERROR_RESPONSE } from '~/social/constants';

interface EngagementBarProps {
postId: string;
Expand All @@ -20,6 +24,10 @@ const EngagementBar = ({ postId, readonly = false }: EngagementBarProps) => {
const hideComposeBar = () => setComposeBarDisplayed(false);

const post = usePost(postId);
const { clearAll } = useSocialMention({
targetType: post?.targetType,
targetId: post?.targetId,
});

usePostSubscription({
postId,
Expand All @@ -39,17 +47,27 @@ const EngagementBar = ({ postId, readonly = false }: EngagementBarProps) => {
mentionees: Mentionees,
metadata: Metadata,
) => {
await CommentRepository.createComment({
referenceType: 'post',
referenceId: postId,
data: {
text: commentText,
},
mentionees,
metadata,
});

hideComposeBar();
try {
await CommentRepository.createComment({
referenceType: 'post',
referenceId: postId,
data: {
text: commentText,
},
mentionees,
metadata,
});
clearAll?.();
hideComposeBar();
} catch (error: unknown) {
if (error instanceof Error) {
if (error.message === ERROR_RESPONSE.CONTAIN_BLOCKED_WORD) {
notification.error({
content: <FormattedMessage id="notification.error.blockedWord" />,
});
}
}
}
};

return (
Expand Down
9 changes: 9 additions & 0 deletions src/social/components/post/Creator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { MAXIMUM_POST_CHARACTERS, MAXIMUM_POST_MENTIONEES } from './constants';
import useSDK from '~/core/hooks/useSDK';
import useSocialMention from '~/social/hooks/useSocialMention';
import useCommunityModeratorsCollection from '~/social/hooks/collections/useCommunityModeratorsCollection';
import { ERROR_RESPONSE } from '~/social/constants';

const useTargetData = ({
targetId,
Expand Down Expand Up @@ -227,6 +228,14 @@ const PostCreatorBar = ({
});
}
}
} catch (error: unknown) {
if (error instanceof Error) {
if (error.message === ERROR_RESPONSE.CONTAIN_BLOCKED_WORD) {
notification.error({
content: <FormattedMessage id="notification.error.blockedWord" />,
});
}
}
} finally {
setIsCreating(false);
}
Expand Down
20 changes: 16 additions & 4 deletions src/social/components/post/PollComposer/PollModal.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React, { useState } from 'react';
import { useIntl } from 'react-intl';
import { FormattedMessage, useIntl } from 'react-intl';
import { PollRepository } from '@amityco/ts-sdk';

import Modal from '~/core/components/Modal';
import { confirm } from '~/core/components/Confirm';
import PollComposer from '~/social/components/post/PollComposer';
import { notification } from '~/core/components/Notification';
import { ERROR_RESPONSE } from '~/social/constants';

interface PollModalProps {
targetId?: string | null;
Expand All @@ -27,9 +29,19 @@ const PollModal = ({ targetId, targetType, onClose, onCreatePoll }: PollModalPro
mentionees: Amity.UserMention[],
metadata: Record<string, unknown>,
) => {
const createdPoll = await PollRepository.createPoll(data);
await onCreatePoll(createdPoll.data.pollId, data.question, mentionees, metadata);
onClose();
try {
const createdPoll = await PollRepository.createPoll(data);
await onCreatePoll(createdPoll.data.pollId, data.question, mentionees, metadata);
onClose();
} catch (error: unknown) {
if (error instanceof Error) {
if (error.message === ERROR_RESPONSE.CONTAIN_BLOCKED_WORD) {
notification.error({
content: <FormattedMessage id="notification.error.blockedWord" />,
});
}
}
}
};

const closeConfirm = () =>
Expand Down
4 changes: 4 additions & 0 deletions src/social/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ export const VideoQuality = Object.freeze({
});

export const MP4MimeType = 'video/mp4';

export const ERROR_RESPONSE = Object.freeze({
CONTAIN_BLOCKED_WORD: 'Amity SDK (400308): Text contain blocked word',
});