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.10.3 #85

Merged
merged 349 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
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
1b2afe6
feat: ASC-24795 - pinned post (#621)
ChayanitBm Sep 9, 2024
dd641d0
fix: fix PostTextField (#643)
bonanaaaaaa Sep 10, 2024
d8caac4
fix: prevent pr to be merged if it is labeled with do not merge (#644)
bonanaaaaaa Sep 11, 2024
bd928a2
fix: skeleton style (#646)
bonanaaaaaa Sep 12, 2024
dcdad21
fix: community feed render post (#651)
ChayanitBm Sep 18, 2024
8d4c4a8
feat: ASC-25653 - add accessibilityId (#650)
ChayanitBm Sep 18, 2024
90ba4f7
fix: ASC-25689 - add condition to show moderator badge (#652)
ChayanitBm Sep 18, 2024
bbbc2dc
feat: ASC-25040 - post as brand (#608)
bonanaaaaaa Sep 19, 2024
0a5fb03
chore(release): 4.0.0-beta.13 (#653)
ChayanitBm Sep 19, 2024
48266ee
fix: dedup mention data (#655)
bonanaaaaaa Sep 25, 2024
c9194ed
fix: loadmore (#660)
ChayanitBm Oct 1, 2024
cc00c2c
feat: ASC-25653 - add accessibility (#659)
ChayanitBm Oct 1, 2024
4ed08dd
feat: ASC-25247 - explore page (#656)
bonanaaaaaa Oct 1, 2024
c239854
fix: ASC-26256 - fix lexical utils (#661)
bonanaaaaaa Oct 2, 2024
2fc1f09
fix: ASC-26255 - refetch recommended communities after join (#662)
bonanaaaaaa Oct 2, 2024
0bdb50f
fix: condition check target community (#663)
ChayanitBm Oct 3, 2024
dcfe6d5
Release/v4.0.0 beta.14 (#664)
ptchayap Oct 4, 2024
afe6b21
chore(release): 4.0.0-beta.15 (#665)
ptchayap Oct 4, 2024
cf84552
style: fix max height video preview (#670)
ChayanitBm Oct 9, 2024
eac22d2
fix: passing currentUserId (#672)
ChayanitBm Oct 10, 2024
ac8740a
fix: call onBack when create story success (#671)
ChayanitBm Oct 10, 2024
45b8c35
fix: ASC-26434 - refresh global feed story (#673)
ChayanitBm Oct 10, 2024
f100dd0
feat: changed to onPressStart (#674)
htutwaiphyoe Oct 10, 2024
7aef805
fix: ASC-26262 - input blur after commented (#675)
htutwaiphyoe Oct 11, 2024
2ce64ac
feat: ASC-26280 - icons storybook (#668)
htutwaiphyoe Oct 15, 2024
8ceab4b
fix: ASC-26458 - video story view (#676)
ChayanitBm Oct 15, 2024
3928c7a
fix: ASC-26262 - blur delay (#678)
htutwaiphyoe Oct 15, 2024
bba583a
feat: overflow index (#677)
htutwaiphyoe Oct 15, 2024
3aa44b4
feat: ASC-25653 - add accessibility (#679)
ChayanitBm Oct 16, 2024
78fc20c
feat: story upload ui fixes (#682)
htutwaiphyoe Oct 16, 2024
88b83f0
feat: ASC-26263 - private icon (#683)
htutwaiphyoe Oct 17, 2024
160efa7
fix: ASC-26568 - mention disappear while edit post in v3 (#685)
ptchayap Oct 18, 2024
117d42f
chore: v3.6.0
ptchayap Jun 24, 2024
8ba5963
chore: v3.6.0
ptchayap Jun 24, 2024
a15b162
fix: remove expose v4 component
ptchayap Jun 24, 2024
5ef5465
chore(release): 3.7.0
bmo-amity-bot Jun 24, 2024
2ec9621
chore: update pnpm-lock.yaml
bonanaaaaaa Jul 12, 2024
5e0cfb0
chore(release): 3.8.0
bmo-amity-bot Jul 12, 2024
dbafb94
chore: update pnpmplock
ptchayap Aug 8, 2024
1c25627
chore: update lock
ChayanitBm Aug 16, 2024
d1935ce
chore(release): 3.9.0 (#602)
ChayanitBm Aug 19, 2024
c954c7a
Release/v3.10.0 (#639)
ptchayap Sep 2, 2024
c5aa191
chore(release): 3.10.1 (#649)
bonanaaaaaa Sep 12, 2024
21d6420
feat: update version sdk
ChayanitBm Oct 18, 2024
96493d2
chore: update version
ChayanitBm Oct 18, 2024
196e865
chore: update version
ChayanitBm Oct 18, 2024
368bc35
chore(release): 3.10.2
bmo-amity-bot Oct 18, 2024
337dba9
fix: remove log
ChayanitBm Oct 18, 2024
570f517
Merge remote-tracking branch 'upstream/release/v3.10.2' into release/…
ChayanitBm Oct 18, 2024
15b9cf3
chore(release): 3.10.3
bmo-amity-bot Oct 18, 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
8 changes: 7 additions & 1 deletion .github/workflows/check_do_not_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ on:

jobs:
ok-to-merge:
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == false
runs-on: ubuntu-latest
steps:
- name: This PR is labeled with do not merge
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == true
run: |
echo "This PR cannot be merged"
exit 1

- name: This PR is not labeled with do not merge
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == false
run: |
echo "This PR can be merged"
exit 0
74 changes: 73 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import path from 'path';
import { readdirSync } from 'fs';
import type { InlineConfig, Plugin } from 'vite';
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
Expand All @@ -9,11 +12,80 @@ const config: StorybookConfig = {
'@storybook/addon-controls',
'@storybook/addon-viewport',
'@storybook/addon-toolbars',

'@storybook/addon-a11y',
],
framework: '@storybook/react-vite',
staticDirs: ['../static'],
viteFinal: async (config) => {
config.plugins?.push(
assetPlugin(config, {
markup: `[ICONS]`,
exclude: [/.*stories.*/],
assetDir: 'src/v4/icons',
storyFileName: 'icons.stories.tsx',
}),
);
return config;
},
};

export default config;

const assetPlugin: (
config: InlineConfig,
options: {
assetDir: string;
storyFileName: string;
exclude?: Array<RegExp>;
markup: string | RegExp;
},
) => Plugin = (config, { storyFileName, assetDir, exclude, markup }) => {
return {
enforce: 'pre',
name: 'vite-plugin-v4-icons',
transform(code, id) {
const rootDir = config.root!;

if (id.includes(storyFileName)) {
let icons = '',
imports = '';
readdirSync(path.join(rootDir, assetDir)).forEach((file) => {
if (file.match(/.*\.(tsx)/) && exclude?.every((ex) => !file.match(ex))) {
const fileName = file.replace(/.tsx/, '');
const source = {
relativePath: path.join(assetDir.replace(/.*src\//, ''), fileName),
path: path.join(rootDir, assetDir, file),
};

// eslint-disable-next-line @typescript-eslint/no-var-requires
const exportedAssets = require(source.path!);
const entries = Object.entries(exportedAssets);

entries.map(([key, _]) => {
const componentName = key === 'default' ? fileName : key;
imports +=
key == 'default'
? `import ${fileName} from "src/${source?.relativePath}";\n`
: `import {${key}} from "src/${source?.relativePath}";\n`;
icons += `
<button
key="${key}"
data-name="${componentName}"
>
<${componentName} width='25' height='25' />
<div>
<p>${componentName}</p>
<p>${source.relativePath.replace('/src', '')}</p>
</div>
</button>
`;
});
}
});

code = imports + code.replace(markup, icons);
}
return code;
},
};
};
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.10.3 (2024-10-18)

### 3.10.2 (2024-09-12)


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.10.2",
"version": "3.10.3",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Modal/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
import styled, { css } from 'styled-components';
import { Close } from '~/icons';

export const CloseIcon = styled(Close).attrs<{ icon?: ReactNode }>({ width: 18, height: 18 })`
export const CloseIcon = styled(Close).attrs<{ icon?: ReactNode }>({ width: 20, height: 20 })`
padding: 0 6px;
cursor: pointer;
margin-left: auto;
Expand Down
34 changes: 32 additions & 2 deletions src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ import {
} from '@amityco/ts-sdk';
import isEmpty from 'lodash/isEmpty';

export type Mentioned = { userId: string; length: number; index: number; type: string };
export type Mentionees = Parameters<typeof CommentRepository.updateComment>[1]['mentionees'];
export type Mentioned = {
userId: string;
length: number;
index: number;
type: string;
displayName: string;
};
export type Mentionees = Amity.UserMention[];
export type Metadata = {
mentioned?: Mentioned[];
};
Expand Down Expand Up @@ -116,6 +122,7 @@ export function extractMetadata(
length: displayName.length - AT_SIGN_LENGTH,
type: 'user',
userId: id,
displayName,
})),
];

Expand Down Expand Up @@ -160,3 +167,26 @@ export function parseMentionsMarkup(
export function isNonNullable<TValue>(value: TValue | undefined | null): value is TValue {
return value != null;
}

export function reconstructMentions(
metadata?: Metadata,
mentionees?: Mentionees,
): { plainTextIndex: number; id: string; display: string }[] {
if (!metadata?.mentioned || mentionees?.length === 0) {
return [];
}

const userIds = mentionees?.find((mentionee) => mentionee.type === 'user')?.userIds || [];

return metadata?.mentioned?.map((mention, index) => {
const id = userIds[index];
const displayName = mention.displayName;
const display = '@' + (displayName ?? id);

return {
plainTextIndex: mention.index,
id,
display,
};
});
}
8 changes: 8 additions & 0 deletions src/social/components/CommunityForm/EditCommunityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ const EditCommunityForm = ({
await onSubmit?.({ ...data, avatarFileId: data.avatarFileId || undefined });

notification.success({ content: <FormattedMessage id="community.updateSuccess" /> });
} catch (error) {
console.log('error', error);
if (error instanceof Error) {
if (error.message.indexOf(':') > -1) {
const [, errorMessage] = error.message.split(':');
notification.error({ content: errorMessage });
}
}
} finally {
setSubmitting(false);
}
Expand Down
1 change: 0 additions & 1 deletion src/social/components/SideSectionMyCommunity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const SideSectionMyCommunity = ({ className, activeCommunity }: SideSectionMyCom
const open = () => setIsOpen(true);

const close = (communityId?: string) => {
console.log('communityId', communityId);
setIsOpen(false);
communityId && onCommunityCreated(communityId);
};
Expand Down
5 changes: 4 additions & 1 deletion src/social/components/UserHeader/UIUserHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import {
UserHeaderTitle,
} from './styles';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';
import { BrandBadge } from '~/v4/social/internal-components/BrandBadge/BrandBadge';

interface UIUserHeaderProps {
userId?: string | null;
displayName?: string | null;
avatarFileUrl?: string | null;
children?: ReactNode;
isBanned?: boolean;
isBrand?: boolean;
onClick?: (userId: string) => void;
}

Expand All @@ -26,6 +28,7 @@ const UIUserHeader = ({
children,
onClick,
isBanned,
isBrand,
}: UIUserHeaderProps) => {
const onClickUser = () => userId && onClick?.(userId);
return (
Expand All @@ -36,7 +39,7 @@ const UIUserHeader = ({
onClick={onClickUser}
/>
<UserHeaderTitle title={userId || undefined} onClick={onClickUser}>
<div>{displayName}</div> {isBanned && <BanIcon />}
<div>{displayName}</div> {isBanned && <BanIcon />} {isBrand && <BrandBadge />}
</UserHeaderTitle>
{children && <UserHeaderSubtitle>{children}</UserHeaderSubtitle>}
</UserHeaderContainer>
Expand Down
1 change: 1 addition & 0 deletions src/social/components/UserHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const UserHeader = ({ userId, children, onClick, isBanned = false }: UserHeaderP
displayName={user?.displayName}
avatarFileUrl={avatarFileUrl}
isBanned={isBanned}
isBrand={user?.isBrand}
onClick={onClick}
>
{children}
Expand Down
1 change: 1 addition & 0 deletions src/social/components/UserHeader/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const UserHeaderTitle = styled.div`
display: flex;
min-width: 0;
align-items: center;
gap: 8px;

> div {
text-overflow: ellipsis;
Expand Down
7 changes: 3 additions & 4 deletions src/social/components/post/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ import { PostEditorContainer, Footer, ContentContainer, PostButton } from './sty
import { usePostEditor } from './usePostEditor';

interface PostEditorProps {
postId?: string;
post: Amity.Post;
onSave: () => void;
className?: string;
placeholder?: string;
}

const PostEditor = ({
postId,
post,
placeholder = "What's going on...",
className,
onSave,
}: PostEditorProps) => {
const {
post,
markup,
onChange,
queryMentionees,
Expand All @@ -30,7 +29,7 @@ const PostEditor = ({
isEmpty,
handleSave,
} = usePostEditor({
postId,
post,
onSave,
});

Expand Down
6 changes: 3 additions & 3 deletions src/social/components/post/Editor/usePostEditor.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { PostRepository } from '@amityco/ts-sdk';
import { useMemo, useState } from 'react';
import { parseMentionsMarkup } from '~/helpers/utils';
import { parseMentionsMarkup, reconstructMentions } from '~/helpers/utils';
import usePost from '~/social/hooks/usePost';
import usePostByIds from '~/social/hooks/usePostByIds';
import useSocialMention from '~/social/hooks/useSocialMention';

export const usePostEditor = ({ postId, onSave }: { postId?: string; onSave: () => void }) => {
const post = usePost(postId);
export const usePostEditor = ({ post, onSave }: { post: Amity.Post; onSave: () => void }) => {
const initialChildrenPosts = usePostByIds(post?.children);
const { text, markup, mentions, mentionees, metadata, clearAll, onChange, queryMentionees } =
useSocialMention({
Expand All @@ -18,6 +17,7 @@ export const usePostEditor = ({ postId, onSave }: { postId?: string; onSave: ()
typeof post?.data === 'string' ? post?.data : (post?.data as Amity.ContentDataText)?.text,
post?.metadata,
),
remoteMentions: reconstructMentions(post?.metadata, post?.mentionees),
});

// List of the children posts removed - these will be deleted on save.
Expand Down
4 changes: 2 additions & 2 deletions src/social/components/post/Post/DefaultPostRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ const DefaultPostRenderer = (props: DefaultPostRendererProps) => {
</ReviewButtonsContainer>
)}

{isEditing && (
{isEditing && post && (
<Modal
data-qa-anchor="post-editor-modal"
title={formatMessage({ id: 'post.editPost' })}
onCancel={closeEditingPostModal}
>
<PostEditor postId={post?.postId} onSave={closeEditingPostModal} />
<PostEditor post={post} onSave={closeEditingPostModal} />
</Modal>
)}
</>
Expand Down
7 changes: 4 additions & 3 deletions src/social/hooks/useSocialMention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface UseSocialMentionProps {
targetType?: 'user' | 'community' | string;
remoteText?: string;
remoteMarkup?: string;
remoteMentions?: { plainTextIndex: number; id: string; display: string }[];
}

export type QueryMentioneesFnType = (query?: string) => Promise<
Expand All @@ -24,15 +25,15 @@ const useSocialMention = ({
targetType,
remoteText,
remoteMarkup,
remoteMentions = [],
}: UseSocialMentionProps) => {
const isCommunityFeed = targetType === 'community';
const community = useCommunity(targetId);

const [text, setText] = useState(remoteText ?? '');
const [markup, setMarkup] = useState(remoteMarkup ?? remoteText);
const [mentions, setMentions] = useState<
{ plainTextIndex: number; id: string; display: string }[]
>([]);
const [mentions, setMentions] =
useState<{ plainTextIndex: number; id: string; display: string }[]>(remoteMentions);

useEffect(() => {
setText(remoteText || '');
Expand Down
4 changes: 2 additions & 2 deletions src/social/pages/CommunityEdit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const CommunityEditPage = ({

useEffect(() => setActiveTab(tab), [tab]);

const { onClickCommunity } = useNavigation();
const { onBack } = useNavigation();
const community = useCommunity(communityId);
const avatarFileUrl = useImage({ fileId: community?.avatarFileId, imageSize: 'medium' });

const handleReturnToCommunity = () => communityId && onClickCommunity(communityId);
const handleReturnToCommunity = () => communityId && onBack();

const handleEditCommunity = async (
data: Parameters<typeof CommunityRepository.updateCommunity>[1],
Expand Down
4 changes: 2 additions & 2 deletions src/v4/chat/components/MessageComposer/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { MentionPlugin } from '~/v4/social/internal-components/Lexical/plugins/M

import { useMutation } from '@tanstack/react-query';
import {
editorStateToText,
editorToText,
getEditorConfig,
MentionData,
} from '~/v4/social/internal-components/Lexical/utils';
Expand Down Expand Up @@ -148,7 +148,7 @@ export const MessageComposer = ({
if (!channel) return;
if (!editorRef.current) return;

const { mentioned, mentionees, text } = editorStateToText(editorRef.current);
const { mentioned, mentionees, text } = editorToText(editorRef.current);

if (text?.trim().length === 0) return;

Expand Down
Loading
Loading