このコミットが含まれているのは:
2026-06-10 22:24:01 +09:00
コミット 480a06caaf
4個のファイルの変更28行の追加28行の削除
+15 -5
ファイルの表示
@@ -449,9 +449,12 @@ const previewAnswer = ({
const hardFilteredPosts =
answer === 'unknown'
? posts
: posts.filter (post => expectedAnswerForQuestion (question, post) === answer)
: posts.filter (post => {
const expected = expectedAnswerForQuestion (question, post)
return expected === null || expected === 'unknown' || expected === answer
})
const nextPosts =
answer !== 'unknown' && hardFilteredPosts.length > 0
hardFilteredPosts.length > 0
? hardFilteredPosts
: posts
const nextScores = new Map (scores)
@@ -1061,14 +1064,16 @@ const GekanatorPage: FC = () => {
}})
const questionSuggestionMutation = useMutation ({
mutationFn: saveGekanatorQuestionSuggestion,
onSuccess: data => {
onSuccess: async data => {
await queryClient.refetchQueries ({ queryKey: gekanatorKeys.questions () })
setQuestionSuggestionCount (data.count)
setQuestionSuggestion ('')
setQuestionSuggestionAnswer ('yes')
}})
const extraQuestionAnswersMutation = useMutation ({
mutationFn: saveGekanatorExtraQuestionAnswers,
onSuccess: () => {
onSuccess: async () => {
await queryClient.refetchQueries ({ queryKey: gekanatorKeys.questions () })
setExtraQuestionState ('saved')
setPhase ('learned')
}})
@@ -1544,7 +1549,12 @@ const GekanatorPage: FC = () => {
? <>wwwww <ruby>鹿<rt></rt></ruby>!</>
: <><ruby>鹿<rt></rt></ruby>稿</>
const introLoading = isLoading || acceptedQuestionsLoading
const readyToStart = !(introLoading) && acceptedQuestionsFetched && posts.length > 0
const readyToStart =
!(introLoading)
&& acceptedQuestionsFetched
&& posts.length > 0
&& !(error)
&& !(acceptedQuestionsError)
return (
<MainArea className="bg-yellow-50 dark:bg-red-975">