-
Notifications
You must be signed in to change notification settings - Fork 44
チャンネルリストの検索結果が多いときに一部のみ表示 #4630
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
base: master
Are you sure you want to change the base?
Conversation
|
Preview (prod) → https://4630-prod.traq-preview.trapti.tech/ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4630 +/- ##
=========================================
- Coverage 8.72% 8.71% -0.01%
=========================================
Files 692 692
Lines 30947 30973 +26
Branches 536 536
=========================================
Hits 2699 2699
- Misses 28241 28267 +26
Partials 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
#4629 とかでチャンネルリストの検索が重いことを思い出したので |
| ) | ||
| const { query, filteredChannels } = useChannelFilter(channelListForFilter) | ||
| const INITIAL_CHANNEL_DISPLAY_LIMIT = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
「全て表示」で切る個数をどうするか問題がある。増やすと重くなるので、16 個以下がよく、とりあえず 10 にしてみた
|
これって無限スクロールの形で実装できたりしないです? |
|
表示画面によっては全て表示が結構早いタイミングで出てそれだと困る、というのがあるので画面サイズに合わせて出せるようにすると良いと思います |
| const { query, filteredChannels } = useChannelFilter(channelListForFilter) | ||
| const INITIAL_CHANNEL_DISPLAY_LIMIT = 10 | ||
| const isChannelsExpanded = ref(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isChannelListExpanded の方がいいかも List に対して expanded がかっててほしい
無限スクロールというよりは virtual scroll (仮想スクロール) が適切かなという気がします (最近コンポーネントが削除されちゃったけど (#4676)) (意図しているところは同じかもしれない) |
概要
なぜこの PR を入れたいのか
close #4628
動作確認の手順
子チャンネルの多いチャンネルの子チャンネルをチャンネルリストから検索する (dev 環境だと
g/, prod 環境ならgps/times/)UI 変更部分のスクリーンショット
before
after
PR を出す前の確認事項
見てほしいところ・聞きたいことなど