Исправление ошибки добавления проекта
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "play-life-web",
|
"name": "play-life-web",
|
||||||
"version": "3.10.5",
|
"version": "3.10.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -37,16 +37,6 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
|
|||||||
|
|
||||||
const hasProgressData = overallProgress !== null
|
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 || [])
|
const allProjects = getAllProjectsSorted(allProjectsData, projectsData || [])
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
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
|
autoFocus
|
||||||
/>
|
/>
|
||||||
{error && (
|
{validationError && (
|
||||||
<div className="mt-2 text-sm text-red-600">{error}</div>
|
<div className="mt-2 text-sm text-red-600">{validationError}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -873,7 +873,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
|
|||||||
const activeProject = allItems.find(item => item.name === activeId)
|
const activeProject = allItems.find(item => item.name === activeId)
|
||||||
|
|
||||||
return (
|
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 && (
|
{onNavigate && (
|
||||||
<button
|
<button
|
||||||
onClick={() => onNavigate('current')}
|
onClick={() => onNavigate('current')}
|
||||||
@@ -903,8 +903,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
|
|||||||
onDragCancel={handleDragCancel}
|
onDragCancel={handleDragCancel}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="space-y-6 overflow-y-auto flex-1"
|
className="space-y-6 overflow-y-auto flex-1 min-h-0 pt-[60px]"
|
||||||
style={{ minHeight: 0, touchAction: 'pan-y' }}
|
style={{ touchAction: 'pan-y' }}
|
||||||
>
|
>
|
||||||
<SortableContext items={maxPriority.map(p => p.name)} strategy={verticalListSortingStrategy}>
|
<SortableContext items={maxPriority.map(p => p.name)} strategy={verticalListSortingStrategy}>
|
||||||
<PrioritySlot
|
<PrioritySlot
|
||||||
|
|||||||
Reference in New Issue
Block a user