Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
タグを付ける入力はダイアログだとテストで描画が落ち着かないため、カテゴリ・コレクションと同じ下から出るシートにした。 全件のユニットテスト・lint・ビルドと、選択画面のスクリーンショットを確認した。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
一覧(検索結果・スマートフォルダを含む)とコレクションの画面で、複数のブックマークを選んでまとめて操作できるようにした。
入り方・選び方
SavedStateHandleに持つので、回転やプロセスの再作成のあとも戻る。絞り込み・検索で一覧から外れたものは、選んでいる数にも操作の対象にも入れない(見えないものを操作しない)。長押しと選択の関係(判断)
長押しは選択の開始にし、これまで長押しで出していた操作シート(お気に入り・既読・アーカイブ・共有・削除)は、選択モードの操作バーへ移した。シートは削除した。
まとめて書く部分
IN (...)でまとめ、500件ずつに区切って1つのトランザクションで書く(BookmarkRepositoryのsetFavoriteAll/setArchivedAll/setReadAll/addTagAll/removeTagAll/setCategoryAll/deleteBookmarks/restoreBookmarks、CollectionRepository.addAll/removeAll)。DAO に足したのは、まとめて書くための更新だけ。reprocessAll。件ごとに急いで処理せず、enqueueSequentialProcessing(1件ずつ順番の列)に積む。手で直した要約は置き換えず、タグ・カテゴリ・埋め込みだけをやり直す。夜間にまとめて処理する設定・オフラインモードでは、処理待ちにするだけで列には積まない(その旨を知らせる)。restoreBookmarks)も、ノート・コレクションへの所属・復習のカードを戻したうえで、AI 処理は件ごとではなく順番の列に積む。BookmarkExporterを使うExportRepository.exportBookmarks(選んだ順。形式は Markdown / ブラウザの HTML)。テスト
SelectionHolderの単体テスト。ローカルの結果
./gradlew :app:assembleDebug :app:testDebugUnitTest :app:lintDebugが成功(全 2675 件、失敗なし)。recordRoborazziDebugも成功。端末が無いと確認できないこと
CreateDocument)からファイルが実際に書かれるところ(書き込み自体は実際のファイルでテスト済み)。他の PR との重なり
#99(
codex/bookmark-usability)もBookmarkListScreen.kt・BookmarkViewModel.ktとそのテストを変更しているため、あとに入れる方でコンフリクトしうる(この PR は #99 を土台にしていない)。🤖 Generated with Claude Code