Исправление ошибки добавления проекта
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s

This commit is contained in:
poignatov
2026-01-13 17:07:20 +03:00
parent b8ae0bb17a
commit 22995b654d
4 changed files with 7 additions and 17 deletions

View File

@@ -1 +1 @@
3.10.5
3.10.6

View File

@@ -1,6 +1,6 @@
{
"name": "play-life-web",
"version": "3.10.5",
"version": "3.10.6",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -36,16 +36,6 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
})()
const hasProgressData = overallProgress !== null
// Логирование для отладки
console.log('CurrentWeek data:', {
data,
dataTotal: data?.total,
dataProgress: data?.progress,
dataPercentage: data?.percentage,
overallProgress,
hasProgressData
})
// Получаем отсортированный список всех проектов для синхронизации цветов
const allProjects = getAllProjectsSorted(allProjectsData, projectsData || [])

View File

@@ -108,8 +108,8 @@ function AddProjectScreen({ onClose, onSuccess, onError }) {
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"
autoFocus
/>
{error && (
<div className="mt-2 text-sm text-red-600">{error}</div>
{validationError && (
<div className="mt-2 text-sm text-red-600">{validationError}</div>
)}
</div>
</div>
@@ -873,7 +873,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
const activeProject = allItems.find(item => item.name === activeId)
return (
<div className="max-w-2xl mx-auto flex flex-col max-h-[calc(100vh-11rem)] pt-[60px]">
<div className="max-w-2xl mx-auto flex flex-col h-full">
{onNavigate && (
<button
onClick={() => onNavigate('current')}
@@ -903,8 +903,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
onDragCancel={handleDragCancel}
>
<div
className="space-y-6 overflow-y-auto flex-1"
style={{ minHeight: 0, touchAction: 'pan-y' }}
className="space-y-6 overflow-y-auto flex-1 min-h-0 pt-[60px]"
style={{ touchAction: 'pan-y' }}
>
<SortableContext items={maxPriority.map(p => p.name)} strategy={verticalListSortingStrategy}>
<PrioritySlot