diff --git a/VERSION b/VERSION index ab1d615..2e49270 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.18.2 +6.18.3 diff --git a/play-life-web/package.json b/play-life-web/package.json index 57ec795..efc0896 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.18.2", + "version": "6.18.3", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/App.jsx b/play-life-web/src/App.jsx index c16f74c..c3a85b8 100644 --- a/play-life-web/src/App.jsx +++ b/play-life-web/src/App.jsx @@ -1309,6 +1309,7 @@ function AppContent() { configId={tabParams.configId} maxCards={tabParams.maxCards} taskId={tabParams.taskId} + isActive={activeTab === 'test'} /> diff --git a/play-life-web/src/components/TaskList.jsx b/play-life-web/src/components/TaskList.jsx index 909b338..18744be 100644 --- a/play-life-web/src/components/TaskList.jsx +++ b/play-life-web/src/components/TaskList.jsx @@ -925,7 +925,7 @@ function TaskList({ onNavigate, data, loading, backgroundLoading, error, onRetry {task.name} {hasSubtasks && ( - {task.draft_subtasks_count != null + {task.draft_subtasks_count != null && task.draft_subtasks_count > 0 ? `(${task.draft_subtasks_count}/${task.subtasks_count})` : `(${task.subtasks_count})`} diff --git a/play-life-web/src/components/TestWords.jsx b/play-life-web/src/components/TestWords.jsx index 2c46e85..acd7ca8 100644 --- a/play-life-web/src/components/TestWords.jsx +++ b/play-life-web/src/components/TestWords.jsx @@ -1,4 +1,5 @@ import React, { useState, useEffect, useRef, useCallback } from 'react' +import { createPortal } from 'react-dom' import { useAuth } from './auth/AuthContext' import LoadingError from './LoadingError' import './TestWords.css' @@ -8,7 +9,7 @@ const API_URL = '/api' const DEFAULT_TEST_WORD_COUNT = 10 -function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialConfigId, maxCards: initialMaxCards, taskId: initialTaskId }) { +function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialConfigId, maxCards: initialMaxCards, taskId: initialTaskId, isActive }) { const { authFetch } = useAuth() const wordCount = initialWordCount || DEFAULT_TEST_WORD_COUNT const configId = initialConfigId || null @@ -610,6 +611,7 @@ function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialC return ( + <>