パン太

Results 152 comments of パン太

今の所Tuskyのスレッド一覧のUIが一番モバイルと相性が良いUIか?・・・

# 設計 ## UserMemo val text: String val userId: User.Id ## UserMemoRepository - save(memo: UserMemo): Result

そこまで使われているライブラリではないが、いざとなれば自分でメンテできる規模なので大丈夫なはず・・・

カスタム絵文字を描画する必要性があるのでこのライブラリでは完結できないかも

ライブラリのコードを参考にしつつカスタム絵文字をパース&描画する処理を実装する必要性がある

実装方法としては [ChannelViewModelのclearAndLoad](https://github.com/pantasystem/Milktea/blob/7c63c59c1ae153291f22e999fc47ddc31c276e34/modules/features/channel/src/main/java/net/pantasystem/milktea/channel/ChannelViewModel.kt#L96-L111)のmodel.clear()のないバージョンを ChannelViewModelに作成します。 それを[UserDetailCardPageableListの要領](https://github.com/pantasystem/Milktea/blob/7c63c59c1ae153291f22e999fc47ddc31c276e34/modules/features/user/src/main/java/net/pantasystem/milktea/user/compose/UserDetailCardPageableList.kt#L53-L61)で、ページの末端判定を行い、 新たに作成したChannelViewModelの次のページを読み込む処理を呼び出すだけです。

> ChannelViewModelとFollowFollowerViewModelでは [clearAndLoad](https://github.com/pantasystem/Milktea/blob/e5348b42373f291fb5e470aac3f56237284108ce/modules/features/channel/src/main/java/net/pantasystem/milktea/channel/ChannelViewModel.kt#L96)が[loadInit](https://github.com/pantasystem/Milktea/blob/e5348b42373f291fb5e470aac3f56237284108ce/modules/features/user/src/main/java/net/pantasystem/milktea/user/followlist/FollowFollowerViewModel.kt#L107)に対応していて、 その認識であっています > (これを仮にloadとする) が[loadOld](https://github.com/pantasystem/Milktea/blob/e5348b42373f291fb5e470aac3f56237284108ce/modules/features/user/src/main/java/net/pantasystem/milktea/user/followlist/FollowFollowerViewModel.kt#L123)に対応している認識で合っていますか? これもあっています チャンネル一覧画面でもLaunchEffectでclearAndLoadを呼び出しています https://github.com/pantasystem/Milktea/blob/7c63c59c1ae153291f22e999fc47ddc31c276e34/modules/features/channel/src/main/java/net/pantasystem/milktea/channel/ChannelListStatePage.kt#L32-L34

技術的には可能 https://stackoverflow.com/questions/68886848/how-can-i-add-a-stickyheader-to-lazyverticalgrid-like-lazycolumn-in-jetpack-comp

元々の実装があまり良くないので、 やはり動作が不安定になりがちですね・・・ 実装としては意図した通りかなと思います。