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/v4.0.0 beta.12 #79

Merged
merged 301 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
7ac3965
fix: official condition (#306)
chaiwattsw Apr 26, 2024
04e1a61
fix: ASC-19646 - notification error when failed create story (#307)
chaiwattsw Apr 26, 2024
72b7abf
fix: ASC-22060 - navigate to community when create story (#308)
chaiwattsw Apr 26, 2024
ebf39f0
fix: ASC-21985 - navigate story target for global feed story (#309)
chaiwattsw Apr 26, 2024
6120a05
fix: ASC-21970 - story uploading state (#297)
chaiwattsw Apr 26, 2024
e1e17e9
fix: notification style (#311)
chaiwattsw Apr 26, 2024
2b05e24
fix: add onAllStoriesEnd (#312)
chaiwattsw Apr 26, 2024
bfe560c
Release/v4.0.0 beta.3 (#314)
ptchayap Apr 26, 2024
acd2075
chore(sdk): ASC-00000 - custom build ci (#316)
bonanaaaaaa Apr 29, 2024
61368cc
feat: only creator or story permission can see impression (#319)
chaiwattsw Apr 30, 2024
3dc7893
feat: ASC-22084 - StoryPreview component for Console (#317)
chaiwattsw Apr 30, 2024
3919fe7
update readme (#323)
frankent May 2, 2024
baebc18
feat: ASC-20558 - swipe down gesture to close story (#321)
chaiwattsw May 7, 2024
240f0e5
fix: ASC-22263 - hyperlink background (#326)
chaiwattsw May 8, 2024
e3e1dcd
fix: ASC-22263 - hyperlink doesn't show in view story page (#328)
chaiwattsw May 9, 2024
3c6cbf4
fix: ASC-22264 - reply comment margin (#329)
chaiwattsw May 10, 2024
bbcd949
fix: ASC-21792 - comment list infinite scroll (#330)
chaiwattsw May 13, 2024
3528ce4
Release/v4.0.0 beta.4 (#334)
bonanaaaaaa May 13, 2024
1e41eef
fix: to support un config value (#340)
ptchayap May 15, 2024
2662160
fix: hyperlink long text (#335)
chaiwattsw May 20, 2024
ccdbbdd
fix: hyperlink custom text input max length (#336)
chaiwattsw May 20, 2024
3ebfc1a
fix: ASC-220001 - share story button (#337)
chaiwattsw May 20, 2024
067ff98
fix: ASC-21590 - hyperlink ui (#347)
chaiwattsw May 20, 2024
83a1d34
fix: story commu condition (#346)
chaiwattsw May 20, 2024
fe8aab8
feat: ASC-22133 - custom reaction provider (#325)
ptchayap May 20, 2024
eca154a
fix: ASC-22623 - story video (#349)
chaiwattsw May 24, 2024
596d158
feat(reaction): update condition (#350)
frankent May 24, 2024
2d95eb1
fix(reaction): ASC-22611 - update missing ui and action to remove rea…
frankent May 24, 2024
1799fe5
fix: create story condition (#352)
chaiwattsw May 24, 2024
7d6e687
fix: ASC-222740 - create story condition for global-admin role (#354)
chaiwattsw May 27, 2024
0c95669
fix(reaction): ASC-22622 - fix reaction UI bugs (#355)
frankent May 27, 2024
c138b57
fix: ASC-22740 - create story permission condition to create story (#…
chaiwattsw May 27, 2024
be48905
feat(SDK): test build
frankent May 28, 2024
cc22a38
feat(SDK): upgrade ts-sdk version
frankent May 28, 2024
3a74cb6
fix: ASC-21529 - view story wrapper css (#359)
chaiwattsw May 31, 2024
00f978f
fix: ASC-20521 - story delete condition (#360)
chaiwattsw May 31, 2024
22062fa
fix: ASC-20505 - condition for non member (#361)
chaiwattsw Jun 4, 2024
478f3a6
fix: hook (#362)
chaiwattsw Jun 4, 2024
6efd829
fix: ASC-22947 - hyperlink config bottom sheet condition (#367)
chaiwattsw Jun 5, 2024
e887e78
fix: ASC-22949 - video story bug when delete (#366)
chaiwattsw Jun 5, 2024
896cffb
fix: close bottom sheet condition (#365)
chaiwattsw Jun 5, 2024
d85467c
fix: ASC-20502 - comment condition (#363)
chaiwattsw Jun 5, 2024
27c1aab
fix: ASC-22484 - hyperlink config css (#345)
chaiwattsw Jun 5, 2024
52f83a3
fix: ASC-20532 - deleted comment block (#364)
chaiwattsw Jun 5, 2024
14171c3
fix: category card responsive styles (#372)
chaiwattsw Jun 6, 2024
2349f87
fix: ASC-22947 - story can't add hyperlink (#373)
chaiwattsw Jun 6, 2024
8e3f30c
fix: ASC-00000 - bring back v3 code (#358)
bonanaaaaaa Jun 6, 2024
59a97e6
fix: video should pause when click item in action menu (#375)
chaiwattsw Jun 7, 2024
7a67b43
fix: hyperlink text color (#376)
chaiwattsw Jun 7, 2024
c80ef32
fix: ASC-21507 - reset form when confirm remove hyperlink (#368)
chaiwattsw Jun 7, 2024
d9ae116
chore: ASC-22035 - customizations (#378)
bonanaaaaaa Jun 10, 2024
2f0f1f2
fix: story tab show with member only (#383)
chaiwattsw Jun 10, 2024
2cf3c79
chore: ASC-22036 - stylelint (#379)
bonanaaaaaa Jun 10, 2024
200d9b7
chore: ASC-22039 - browserslist (#380)
bonanaaaaaa Jun 10, 2024
69f5558
fix: draft video should loop (#369)
chaiwattsw Jun 10, 2024
0708b36
chore: ASC-22040 - node 20 (#381)
bonanaaaaaa Jun 11, 2024
f3f8fcd
fix: fix a staging workflow (#389)
bonanaaaaaa Jun 12, 2024
20c6ffe
fix: add pnpm install step (#390)
bonanaaaaaa Jun 12, 2024
db78b3a
feat: ASC-22340 - CommunitySearchResults (#391)
bonanaaaaaa Jun 12, 2024
1c0b558
feat: ASC-22294 - PostContent (#392)
bonanaaaaaa Jun 12, 2024
91c3035
feat: TopSearchBar (#393)
bonanaaaaaa Jun 12, 2024
58ff6aa
feat: SocialHomePage (#394)
bonanaaaaaa Jun 12, 2024
c81ad9e
feat: SocialGlobalSearchPage (#395)
bonanaaaaaa Jun 12, 2024
300dea5
feat: MyCommunities (#396)
bonanaaaaaa Jun 12, 2024
a0b5fba
feat: PostDetailPage (#397)
bonanaaaaaa Jun 12, 2024
4f732ad
feat: ASC-22335 - update routes (#398)
bonanaaaaaa Jun 12, 2024
94d3831
chore: Drawer (#402)
bonanaaaaaa Jun 13, 2024
c9b6c2a
fix: text overflow (#400)
bonanaaaaaa Jun 13, 2024
ff1d052
chore: ASC-22335 - update SocialGlobalSearchPage route (#399)
bonanaaaaaa Jun 13, 2024
ce29902
fix: ASC-22335 - VideoViewer styles (#401)
bonanaaaaaa Jun 13, 2024
af3a58d
fix: ASC-21508 - hyperlink to show confirm when back with data (#404)
chaiwattsw Jun 13, 2024
11178ed
fix: ASC-20694 - react story condition for non member (#370)
chaiwattsw Jun 13, 2024
f985532
fix: ASC-22312 - moderator badge (#384)
chaiwattsw Jun 14, 2024
f20534b
feat: ASC-22893 - create post menu & select post target page (#405)
ChayanitBm Jun 14, 2024
f2b97bb
feat: ASC-22888 - hide create post menu for current release (#413)
ChayanitBm Jun 14, 2024
43fbcd0
fix: hyperlink confirm remove link (#406)
chaiwattsw Jun 14, 2024
18444ad
fix: ASC-23219 - story view page onClose (#408)
chaiwattsw Jun 14, 2024
3881e12
fix: ASC-20522 - navigate view story in mobile overlay (#409)
chaiwattsw Jun 17, 2024
0d343fc
fix: ASC-22720 - view story full width and height (#410)
chaiwattsw Jun 17, 2024
21205a9
feat(message): handle optimistic on message creation (#377)
frankent Jun 17, 2024
250a066
fix: ASC-22081 - notification v4 (#411)
chaiwattsw Jun 17, 2024
e57374c
fix: ASC-20521 - delete first multiple story go to next story (#412)
chaiwattsw Jun 17, 2024
d7ee437
fix: ASC-23136 - fix social v3 issues (#388)
bonanaaaaaa Jun 17, 2024
88bb4c3
feat: ASC-00000 - tech debt livechat (#416)
ptchayap Jun 18, 2024
5f2823a
fix: view story page context (#420)
chaiwattsw Jun 18, 2024
736182a
fix: build include css (#421)
ptchayap Jun 18, 2024
afb784b
fix: ASC-23233 - disabled button when file is uploading and fix 429 i…
bonanaaaaaa Jun 19, 2024
f3bc479
fix: ASC-23288 - disabled submit vote button (#424)
bonanaaaaaa Jun 19, 2024
bc5f833
fix: formatDuration (#429)
bonanaaaaaa Jun 20, 2024
84d9d57
fix: link text color (#426)
bonanaaaaaa Jun 20, 2024
5b63b65
fix: reduce comment api network call amount (#427)
bonanaaaaaa Jun 20, 2024
814e8a8
fix: like button color (#425)
bonanaaaaaa Jun 20, 2024
09ba538
fix: play icon (#428)
bonanaaaaaa Jun 20, 2024
47fad16
feat: ASC-23090 - LinkPreview (#414)
bonanaaaaaa Jun 20, 2024
98b8d65
fix: move post creator out of infinite scroll (#430)
bonanaaaaaa Jun 20, 2024
09c00fa
fix: append a created poll post (#432)
bonanaaaaaa Jun 20, 2024
fdfd85a
fix: ASC-22315 - error noti when user upload unsupported file (#417)
chaiwattsw Jun 20, 2024
175f384
fix: ASC-20535 - deleted reply block (#418)
chaiwattsw Jun 20, 2024
0d89042
fix: ASC-20356 - story tab should navigate to unseen (#419)
chaiwattsw Jun 20, 2024
30d7b1b
fix: ASC-21809 - upload video story on mobile device (#423)
chaiwattsw Jun 20, 2024
99f8737
fix: type and layout (#434)
bonanaaaaaa Jun 20, 2024
3c6d994
fix: ASC-21494 - non member can react in comment tray (#433)
chaiwattsw Jun 21, 2024
3828a69
feat: skeleton loader (#407)
bonanaaaaaa Jun 21, 2024
aa4579b
fix: ASC-23278 - view story container (#435)
chaiwattsw Jun 21, 2024
881e565
fix: ASC-23385 - view story comment tray close after comment (#438)
chaiwattsw Jun 24, 2024
f251eb4
Release/v4.0.0 beta.7 (#439)
ptchayap Jun 24, 2024
19c0669
Release/v4.0.0 beta.8 (#440)
ptchayap Jun 24, 2024
9743637
feat: ASC-22898 - create post page (#437)
ChayanitBm Jun 25, 2024
f24f710
fix: remove log (#445)
ChayanitBm Jun 25, 2024
137ac9d
feat: ASC-00000 - Add empty user (#447)
ChayanitBm Jun 26, 2024
ca21dad
feat: ASC-23125 - ads on post (#448)
ptchayap Jun 27, 2024
1ab826a
fix: delete first multiple segment story should navigate to next stor…
chaiwattsw Jun 27, 2024
dffd0af
fix: ASC-20694 - wrong notification content (#442)
chaiwattsw Jun 27, 2024
185eaef
fix: ASC-22312 - comment moderator badge condition (#443)
chaiwattsw Jun 27, 2024
8196664
feat: sync api v5 (#455)
ChayanitBm Jun 28, 2024
215f0bf
fix: use preferred theme as light on v3 (#454)
chaiwattsw Jun 28, 2024
83a1cfd
fix: select file to pause story progress bar (#456)
chaiwattsw Jun 28, 2024
4a2db32
fix: ASC-23557 - scroll mention list (#453)
ChayanitBm Jun 28, 2024
c50c033
fix: ASC-20957 - story tab ring loading state (#444)
chaiwattsw Jun 28, 2024
a96493b
fix: ASC-22315 - failed noti to use BE message (#446)
chaiwattsw Jun 28, 2024
382d52e
fix: showImpression condition (#451)
chaiwattsw Jun 28, 2024
82605a2
chore: ASC-00000 - uikit core api (#457)
bonanaaaaaa Jun 28, 2024
bad3546
feat: MyCommunitiesSearchPage (#459)
bonanaaaaaa Jun 28, 2024
57f8126
fix: ASC-23544 - global search UI (#460)
bonanaaaaaa Jun 28, 2024
93a2681
feat: ASC-22903 - media attachment (#449)
ChayanitBm Jun 28, 2024
41f0951
fix: ASC-23543 - fix PostDetailPage navigation and layout (#461)
bonanaaaaaa Jun 28, 2024
d9330be
fix: shouldCall useEffect logic (#462)
bonanaaaaaa Jun 28, 2024
ec692a0
fix: ASC-22949 - view story navigate logic (#458)
chaiwattsw Jun 28, 2024
ee68c13
fix: member query (#466)
ChayanitBm Jul 1, 2024
7be6be4
fix: moderator badge logic (#464)
bonanaaaaaa Jul 1, 2024
0881bcb
fix: ASC-00000 - tanstack query cache key (#465)
bonanaaaaaa Jul 1, 2024
9c64f84
fix: remove timestamp interaction (#463)
bonanaaaaaa Jul 1, 2024
d6bb2a8
fix: ASC-21809 - upload story video in android device (#467)
chaiwattsw Jul 2, 2024
e68a722
fix: ASC-23419 - like reaction in story reaction list show unknown re…
chaiwattsw Jul 2, 2024
e990805
fix: swipe down (#470)
chaiwattsw Jul 2, 2024
384e59e
fix: ASC-00000 - css broken in v3 (#473)
chaiwattsw Jul 2, 2024
674ccce
fix: ASC-23389 - disable overlay when desktop screen (#477)
chaiwattsw Jul 2, 2024
74a85f2
style: ASC-23581 - add width full button (#476)
ChayanitBm Jul 2, 2024
3b54ede
fix: ASC-23552 - fix reaction button interaction (#472)
bonanaaaaaa Jul 2, 2024
a3552a1
fix: type error (#471)
bonanaaaaaa Jul 2, 2024
413845b
fix: ASC-23659 - newsfeed layout (#474)
bonanaaaaaa Jul 2, 2024
6ca94ef
fix: ASC-23007 - community member collection limit (#478)
chaiwattsw Jul 2, 2024
32464b8
fix(sdk): ASC-22474 - story preview thumbnail hyperlink in console (#…
chaiwattsw Jul 2, 2024
8d9b011
fix: ASC-23583 - discard post modal (#483)
ChayanitBm Jul 3, 2024
cef0796
fix: ASC-23600 - create post params (#475)
ChayanitBm Jul 3, 2024
4f83068
fix: ASC-23590 - add toast duration (#479)
ChayanitBm Jul 3, 2024
3121dbf
fix: ASC-23599 - mention member in private community (#468)
ChayanitBm Jul 3, 2024
72735f4
fix: query mention (#484)
ChayanitBm Jul 3, 2024
ef1562c
feat: ASC-00000 - story preview skeleton (#486)
chaiwattsw Jul 3, 2024
ca73e6e
feat: ASC-22898 - create postProvider (#485)
ChayanitBm Jul 3, 2024
789ac57
fix: story bugs (#487)
chaiwattsw Jul 3, 2024
39116b3
feat: ASC-00000 - new comment (#482)
ptchayap Jul 8, 2024
3801e95
fix: ASC-00000 - story bugs (#491)
chaiwattsw Jul 8, 2024
46ea97f
fix: ASC-22508 - impression count condition (#492)
chaiwattsw Jul 8, 2024
fd92307
feat: ASC-23125 - global feed ad integration (#489)
bonanaaaaaa Jul 8, 2024
ffc15d5
chore: add storybook users (#494)
bonanaaaaaa Jul 8, 2024
1869dae
feat: comment ad (#493)
bonanaaaaaa Jul 8, 2024
a386845
chore: update ci (#495)
bonanaaaaaa Jul 8, 2024
8d0a671
fix: fix slice index (#498)
bonanaaaaaa Jul 9, 2024
9f9398e
fix: ad live collection integration (#503)
bonanaaaaaa Jul 9, 2024
a0ec6a5
fix: ASC-00000 - fix react error (#502)
bonanaaaaaa Jul 9, 2024
6803df7
fix: ASC-00000 - done button (#496)
chaiwattsw Jul 9, 2024
ee0e87c
fix: ASC-00000 - modal overlay (#497)
chaiwattsw Jul 9, 2024
4ddaba0
fix: ad information drawer (#500)
bonanaaaaaa Jul 9, 2024
6e2cba8
fix: ASC-24074 - comment ad style (#504)
bonanaaaaaa Jul 9, 2024
271fc72
fix: ASC-00000 - theme (#501)
bonanaaaaaa Jul 9, 2024
5fa2bfe
fix: ASC-24074 - fix an incorrect text position (#499)
bonanaaaaaa Jul 9, 2024
20f0042
feat: ASC-23131 - story premium ads (#508)
bonanaaaaaa Jul 10, 2024
1cb6ea6
feat: ASC-23312 - support image video upload (#506)
ChayanitBm Jul 10, 2024
8a50f99
fix: ASC-23693 - fix premium ads global feed (#512)
bonanaaaaaa Jul 11, 2024
3e1fa8e
fix: retain scroll position (#513)
bonanaaaaaa Jul 11, 2024
a43aedd
fix: remove button hover color (#517)
bonanaaaaaa Jul 11, 2024
8a29b4e
fix: reaction count (#509)
bonanaaaaaa Jul 11, 2024
48bd769
fix: comment ad styles (#518)
bonanaaaaaa Jul 11, 2024
de2d038
fix: ASC-00000 - fix paginator (#516)
bonanaaaaaa Jul 11, 2024
399b381
fix: ASC-23591 - image ratio (#515)
bonanaaaaaa Jul 11, 2024
812c3e4
fix: ASC-24193 - fix a background color css variable (#510)
bonanaaaaaa Jul 11, 2024
6bde523
chore: ASC-00000 - premium ads pure components (#522)
bonanaaaaaa Jul 11, 2024
cf5bb43
chore: ASC-00000 - console story ad ui (#521)
bonanaaaaaa Jul 11, 2024
d639683
fix: reactions count formatting (#519)
bonanaaaaaa Jul 11, 2024
05a19a9
style: fix height (#523)
ChayanitBm Jul 11, 2024
7a00f82
fix: ASC-24020 - load more mention list (#514)
ChayanitBm Jul 11, 2024
26222c6
fix: button style unset (#524)
bonanaaaaaa Jul 12, 2024
8a65e0c
style: change height (#525)
ChayanitBm Jul 12, 2024
c01da64
fix: ASC-00000 - create post menu position (#526)
ChayanitBm Jul 12, 2024
dea254d
feat: ASC-00000 - AmityStoryTargetSelectionPage (#528)
chaiwattsw Jul 12, 2024
80bc06f
fix: comment ad style (#527)
bonanaaaaaa Jul 12, 2024
bd29071
fix: ASC-23586 - livechat customization (#520)
bonanaaaaaa Jul 12, 2024
000742d
fix: ASC-24263 - stories bug (#533)
bonanaaaaaa Jul 12, 2024
49fdd43
fix: image ratio to 1 (#532)
bonanaaaaaa Jul 12, 2024
aee2164
fix: ASC-00000 - minor bugs (#531)
bonanaaaaaa Jul 12, 2024
5a9a424
fix: draft video story (#530)
chaiwattsw Jul 12, 2024
9e115b2
fix: ASC-00000 - story (#507)
chaiwattsw Jul 12, 2024
4e0eea1
fix: align with api (#534)
bonanaaaaaa Jul 12, 2024
a4cff59
feat: ASC-24094 - update code snippet (#529)
ChayanitBm Jul 12, 2024
ee61d27
fix: ASC-21809 - story video duration (#511)
chaiwattsw Jul 12, 2024
38003e8
fix: ASC-21809 - image local (#535)
chaiwattsw Jul 12, 2024
3547d7e
fix: video ratio (#536)
bonanaaaaaa Jul 15, 2024
91bd753
fix: fix Linkify (#539)
bonanaaaaaa Jul 15, 2024
23b1b97
fix: StoryAd layout (#537)
bonanaaaaaa Jul 15, 2024
21cf181
feat: combine v3 code (#541)
ChayanitBm Jul 15, 2024
40c6654
refactor: ASC-00000 - upload media (#540)
ChayanitBm Jul 15, 2024
281921e
fix: split into RoundedBackButton and BackButton (#543)
bonanaaaaaa Jul 15, 2024
3200a08
fix: useFeed (#542)
bonanaaaaaa Jul 16, 2024
223ef14
chore: ASC-23077 - eslint 9 (#387)
bonanaaaaaa Jul 16, 2024
5a40ac3
fix: ASC-00000 - v4 comment list component (#505)
chaiwattsw Jul 16, 2024
df87103
feat: ASC-00000 - comment skeleton loading and see more (#546)
ptchayap Jul 16, 2024
e69b3bd
fix: ASC-23324 - combine v3 and v4 (#548)
ChayanitBm Jul 18, 2024
06c0e95
fix: ASC-24390 - mention is not show in comment (#549)
ptchayap Jul 19, 2024
dbd8162
fix: onPress button (#550)
ChayanitBm Jul 23, 2024
2104f50
fix: ASC-24396 - comment list pagination (#553)
bonanaaaaaa Jul 24, 2024
ee60c55
fix: ASC-24024 - mention list and media attachment position (#551)
ChayanitBm Jul 24, 2024
81d1531
fix: query community sort (#552)
ChayanitBm Jul 24, 2024
e24d56b
docs: update example env (#554)
ptchayap Jul 24, 2024
9357565
Release/v4.0.0 beta.10 (#555)
ptchayap Jul 24, 2024
c37d928
feat: ASC-24349 - edit post (#557)
ChayanitBm Aug 1, 2024
abf6f13
feat: ASC-24665 - check labels ci (#558)
bonanaaaaaa Aug 1, 2024
4edd8ed
feat: ASC-24666 - create pull_request_template.md (#559)
ChayanitBm Aug 5, 2024
1136d05
feat: ASC-23982 - post impression (#561)
ChayanitBm Aug 6, 2024
568afd1
fix: undefined metadata (#564)
ChayanitBm Aug 7, 2024
f30d7ae
fix: ASC-24780 - handle no change edit post (#562)
ChayanitBm Aug 8, 2024
4853c2f
fix: ASC-24778 - add edit tag (#563)
ChayanitBm Aug 8, 2024
8e5faf1
fix: add getAuthToken param (#567)
ptchayap Aug 9, 2024
16c0ac8
fix: ASC-24831 - profile blinking (#569)
ptchayap Aug 9, 2024
0fd1d3b
fix: change text fail edit (#571)
ChayanitBm Aug 13, 2024
e7f0868
fix: ASC-23280 - showing long post (#580)
ChayanitBm Aug 13, 2024
9b5cdb8
style: add spacing (#581)
ChayanitBm Aug 13, 2024
10d37bb
fix: ASC-24779 - onClick go to post detail (#584)
ChayanitBm Aug 14, 2024
3fc1101
fix: fix ui (#589)
bonanaaaaaa Aug 15, 2024
5a91c31
fix: ASC-24857 - link preview button (#570)
ChayanitBm Aug 16, 2024
e16b6d2
chore(release): 4.0.0-beta.11 (#601)
ChayanitBm Aug 16, 2024
1b9c945
fix: ASC-00000 - layout global feed (#603)
ChayanitBm Aug 20, 2024
8495866
chore: change default screen to fullscreen (#598)
bonanaaaaaa Aug 23, 2024
ff79fd0
chore: ASC-00000 - configurable storybook (#595)
bonanaaaaaa Aug 23, 2024
6bc4363
feat: ASC-24796 - fix community profile (#568)
ChayanitBm Aug 23, 2024
36980da
fix: ASC-00000 - ulta fixes (#577)
bonanaaaaaa Aug 23, 2024
a7d03dd
feat: ASC-23849 - announcement post (#610)
ChayanitBm Aug 23, 2024
cbc72fd
fix: ASC-25190 - delete announcement post (#612)
ChayanitBm Aug 28, 2024
9767c6e
fix: ASC-25195 - hide chat input for normal user (#617)
ChayanitBm Aug 28, 2024
868724f
fix: ASC-00000 - sdk version prod (#623)
ChayanitBm Aug 28, 2024
09bb2d2
fix: ASC-235231 - video thumbnail (#626)
ChayanitBm Aug 29, 2024
184fb7c
fix: add remove drawer (#627)
ChayanitBm Aug 29, 2024
5ea60ae
fix: ASC-25204 - post mention (#630)
bonanaaaaaa Aug 29, 2024
b1e2785
fix: condition show story (#631)
ChayanitBm Aug 29, 2024
cb345f7
fix: ASC-24623 - add redirect user feed v3[Repeat PR to DEV] (#632)
ChayanitBm Aug 29, 2024
a79babb
fix: ASC-24486 - All users show in comment's mention list (#622)
ptchayap Aug 30, 2024
3c00379
chore(sdk): rattata (#611)
bonanaaaaaa Sep 2, 2024
e3cf90d
chore(release): 4.0.0-beta.12 (#638)
ptchayap Sep 2, 2024
921cb54
Merge remote-tracking branch 'upstream/develop' into release/v4.0.0-b…
ptchayap Sep 2, 2024
300cd1b
chore(release): 4.0.0-beta.12
bmo-amity-bot Sep 2, 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: 1 addition & 1 deletion .storybook/decorators/FluidControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const decorator: NonNullable<Preview['decorators']>[number] = (
Story,
{ globals: { [GLOBAL_NAME]: val } },
) => {
if (val === 'none') return <Centered>{Story()}</Centered>;
if (val === 'none') return <FullScreen>{Story()}</FullScreen>;
else if (val === 'fullscreen') return <FullScreen>{Story()}</FullScreen>;
else if (val === 'framed') return <Framed>{Story()}</Framed>;
else if (val === 'boundingbox')
Expand Down
56 changes: 25 additions & 31 deletions .storybook/decorators/UiKitDecorator.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
import React, { useCallback } from 'react';
import UiKitProvider from '../../src/core/providers/UiKitProvider';
import { Preview } from '@storybook/react';
import amityConfig from '../../amity-uikit.config.json';

const users = import.meta.env.STORYBOOK_USERS.split(',');

const GLOBAL_NAME = 'user';
const global = {
[GLOBAL_NAME]: {
name: 'User selector',
description: 'User switcher for SDK',
defaultValue: 'Web-Test',
toolbar: {
icon: 'user',
items: [
{ value: 'Web-Test,Web-test', title: 'Web-Test' },
...users.map((user) => {
return { value: `${user},${user}`, title: user };
}),
],
},
},
};
import { useState } from 'react';
import { useEffect } from 'react';

const FALLBACK_USER = 'Web-Test';

const decorator: NonNullable<Preview['decorators']>[number] = (Story, context) => {
const { args } = context;

const [userId, setUserId] = useState<string>(args.userId || FALLBACK_USER);
const [displayNameState, setDisplayNameState] = useState<string | undefined>(
args.displayName || args.userId || userId,
);

const FALLBACK_USER = 'Web-Test,Web-Test';
useEffect(() => {
if (!args.submit) return;
if (args.userId) {
setUserId(args.userId);
}
if (args.displayName) {
setDisplayNameState(args.displayName);
}
}, [args.submit]);

const decorator: NonNullable<Preview['decorators']>[number] = (
Story,
{ globals: { [GLOBAL_NAME]: val, theme } },
) => {
const user = val || FALLBACK_USER;
const [userId, displayName] = user.split(',');
const displayName = displayNameState || userId;

const handleConnectionStatusChange = useCallback((...args) => {
console.log(`[UiKitProvider.handleConnectionStatusChange]`, ...args);
Expand All @@ -46,8 +40,8 @@ const decorator: NonNullable<Preview['decorators']>[number] = (

return (
<UiKitProvider
apiKey={import.meta.env.STORYBOOK_API_KEY}
apiRegion={import.meta.env.STORYBOOK_API_REGION}
apiKey={args.apiKey || import.meta.env.STORYBOOK_API_KEY}
apiRegion={args.apiRegion || import.meta.env.STORYBOOK_API_REGION}
key={userId}
userId={userId}
displayName={displayName || userId}
Expand All @@ -60,4 +54,4 @@ const decorator: NonNullable<Preview['decorators']>[number] = (
);
};

export default { global, decorator };
export default { decorator };
49 changes: 22 additions & 27 deletions .storybook/decorators/UiKitV4Decorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,30 @@ import { AmityUIKitProvider } from '../../src/v4/core/providers';
import { Preview } from '@storybook/react';
import amityConfig from '../../amity-uikit.config.json';
import { Config } from '../../src/v4/core/providers/CustomizationProvider';
import { useState } from 'react';
import { useEffect } from 'react';

const users = import.meta.env.STORYBOOK_USERS.split(',');
const FALLBACK_USER = 'Web-Test';

const GLOBAL_NAME = 'user';
const global = {
[GLOBAL_NAME]: {
name: 'User selector',
description: 'User switcher for SDK',
defaultValue: 'Web-Test',
toolbar: {
icon: 'user',
items: [
{ value: 'Web-Test,Web-test', title: 'Web-Test' },
...users.map((user) => {
return { value: `${user},${user}`, title: user };
}),
],
},
},
};
const decorator: NonNullable<Preview['decorators']>[number] = (Story, context) => {
const { args } = context;

const [userId, setUserId] = useState<string>(args.userId || FALLBACK_USER);
const [displayNameState, setDisplayNameState] = useState<string | undefined>(
args.displayName || args.userId || userId,
);

const FALLBACK_USER = 'Web-Test,Web-Test';
useEffect(() => {
if (!args.submit) return;
if (args.userId) {
setUserId(args.userId);
}
if (args.displayName) {
setDisplayNameState(args.displayName);
}
}, [args.submit]);

const decorator: NonNullable<Preview['decorators']>[number] = (
Story,
{ globals: { [GLOBAL_NAME]: val, theme } },
) => {
const user = val || FALLBACK_USER;
const [userId, displayName] = user.split(',');
const displayName = displayNameState || userId;

const handleConnectionStatusChange = useCallback((...args) => {
console.log(`[UiKitProvider.handleConnectionStatusChange]`, ...args);
Expand All @@ -47,8 +42,8 @@ const decorator: NonNullable<Preview['decorators']>[number] = (

return (
<AmityUIKitProvider
apiKey={import.meta.env.STORYBOOK_API_KEY}
apiRegion={import.meta.env.STORYBOOK_API_REGION}
apiKey={args.apiKey || import.meta.env.STORYBOOK_API_KEY}
apiRegion={args.apiRegion || import.meta.env.STORYBOOK_API_REGION}
key={userId}
userId={userId}
displayName={displayName || userId}
Expand Down
16 changes: 14 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ import { Preview } from '@storybook/react';
import { FluidControl, UiKitDecorator, UiKitV4Decorator } from './decorators';

const preview: Preview = {
args: {
apiKey: undefined,
apiRegion: undefined,
userId: undefined,
displayName: undefined,
submit: false,
},
argTypes: {
apiKey: { control: { type: 'text' } },
apiRegion: { control: { type: 'text' } },
userId: { control: { type: 'text' } },
displayName: { control: { type: 'text' } },
submit: { control: { type: 'boolean' } },
},
decorators: [
FluidControl.decorator,
(Story, ctx) => {
Expand Down Expand Up @@ -29,8 +43,6 @@ const preview: Preview = {
},
globalTypes: {
...FluidControl.global,
...UiKitDecorator.global,
...UiKitV4Decorator.global,
},
};

Expand Down
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.

## 4.0.0-beta.12 (2024-09-02)

## 4.0.0-beta.11 (2024-08-16)

## 4.0.0-beta.10 (2024-07-24)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/ui-kit-open-source",
"version": "4.0.0-beta.11",
"version": "4.0.0-beta.12",
"engines": {
"node": ">=20",
"pnpm": "9"
Expand Down Expand Up @@ -39,12 +39,12 @@
"tsc": "tsc"
},
"peerDependencies": {
"@amityco/ts-sdk": "^6.27.0",
"@amityco/ts-sdk": "^6.30.0",
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
},
"devDependencies": {
"@amityco/ts-sdk": "^6.27.0",
"@amityco/ts-sdk": "^6.30.0",
"@eslint/js": "^9.4.0",
"@storybook/addon-a11y": "^7.6.7",
"@storybook/addon-actions": "^7.6.7",
Expand Down Expand Up @@ -159,5 +159,5 @@
}
},
"license": "LGPL-2.1-only",
"packageManager": "pnpm@9.5.0"
"packageManager": "pnpm@9.9.0"
}
11 changes: 5 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion src/chat/components/Chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import ChatHeader from '~/chat/components/ChatHeader';

import { ChannelContainer } from './styles';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';
import { useChannelPermission } from '~/chat/hooks/useChannelPermission';
import useChannel from '~/chat/hooks/useChannel';

interface ChatProps {
channelId: string;
Expand All @@ -27,6 +29,9 @@ const Chat = ({ channelId, onChatDetailsClick, shouldShowChatDetails }: ChatProp
};
}, [channelId]);

const { isModerator } = useChannelPermission(channelId);
const channel = useChannel(channelId);

const sendMessage = async (text: string) => {
return MessageRepository.createMessage({
subChannelId: channelId,
Expand All @@ -35,6 +40,13 @@ const Chat = ({ channelId, onChatDetailsClick, shouldShowChatDetails }: ChatProp
});
};

const renderMessageComposeBar = () => {
if (channel?.type !== 'broadcast' || (channel?.type === 'broadcast' && isModerator)) {
return <MessageComposeBar onSubmit={sendMessage} />;
}
return null;
};

return (
<ChannelContainer>
<ChatHeader
Expand All @@ -43,7 +55,7 @@ const Chat = ({ channelId, onChatDetailsClick, shouldShowChatDetails }: ChatProp
onChatDetailsClick={onChatDetailsClick}
/>
<MessageList channelId={channelId} />
<MessageComposeBar onSubmit={sendMessage} />
{renderMessageComposeBar()}
</ChannelContainer>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/chat/hooks/collections/useChannelMembersCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useLiveCollection from '~/core/hooks/useLiveCollection';
export default function useChannelMembersCollection(channelId?: string) {
const { items, ...rest } = useLiveCollection({
fetcher: ChannelRepository.Membership.getMembers,
params: { channelId: channelId as string },
params: { channelId: channelId as string, includeDeleted: false },
shouldCall: () => !!channelId,
});

Expand Down
18 changes: 18 additions & 0 deletions src/chat/hooks/useChannelPermission.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { useMemo } from 'react';
import useSDK from '~/core/hooks/useSDK';

export const useChannelPermission = (subChannelId?: Amity.SubChannel['subChannelId']) => {
const { client } = useSDK();

const isModerator = useMemo(() => {
if (!subChannelId) return false;
const currentUser = client?.hasPermission('MUTE_CHANNEL').currentUser() || false;
const currentUserInChannel =
client?.hasPermission('MUTE_CHANNEL').channel(subChannelId) || false;
return currentUser || currentUserInChannel;
}, [subChannelId]);

return {
isModerator,
};
};
8 changes: 7 additions & 1 deletion src/core/components/Confirm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { useConfirmContext } from '~/core/providers/ConfirmProvider';
import { ModalContainer } from '../ModalContainer';

import {
ConfirmModal,
Expand Down Expand Up @@ -61,9 +62,14 @@ export const ConfirmComponent = () => {
const onOk = () => {
closeConfirm();
confirmData?.onOk && confirmData.onOk();
confirmData?.onSuccess && confirmData?.onSuccess();
};

return <Confirm {...confirmData} onCancel={onCancel} onOk={onOk} />;
return (
<ModalContainer>
<Confirm {...confirmData} onCancel={onCancel} onOk={onOk} />
</ModalContainer>
);
};

export default Confirm;
2 changes: 1 addition & 1 deletion src/core/components/Dropdown/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Frame = styled.div<{
scrollableHeight?: number;
}>`
position: absolute;
z-index: 2;
z-index: 10;
${({ position }) => getCssPosition(position)}
${({ align }) => align && getCssPosition(align)}
background: ${({ theme }) => theme.palette.system.background};
Expand Down
Loading
Loading