diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 069a3a4..411fe28 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -14,7 +14,6 @@ const navItems = computed(() => [ { id: 'stack', label: t('nav.stack'), icon: 'ph-tray', to: '/stack' }, - { id: 'tree', label: t('nav.tree'), icon: 'ph-tree-structure', to: '/tree' }, { id: 'list', label: t('nav.list'), icon: 'ph-list-bullets', to: '/list' }, { id: 'projects', label: t('nav.projects'), icon: 'ph-folders', to: '/projects' }, { id: 'options', label: t('nav.options'), icon: 'ph-shuffle', to: '/options' }, @@ -135,9 +134,9 @@ left: auto; right: 0; } -/* иконки в заголовках карточек — контрастнее текста (сливались с акцентом) */ +/* иконки в заголовках карточек — тёмные, не выпячиваются */ .app-content .card .card-title-icon { - color: #bb9af7; + color: #565f89; } /* иконка внутри бейджа (GnBadge не имеет пропа icon — кладём в слот) */ .badge .ph { diff --git a/frontend/src/components/TaskTree.vue b/frontend/src/components/TaskTree.vue deleted file mode 100644 index f4bad49..0000000 --- a/frontend/src/components/TaskTree.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - - \ No newline at end of file diff --git a/frontend/src/locales/en.ts b/frontend/src/locales/en.ts index 75bb2a8..1b1c9da 100644 --- a/frontend/src/locales/en.ts +++ b/frontend/src/locales/en.ts @@ -35,7 +35,6 @@ signOut: 'Sign out', task: 'Task', stack: 'Inbox stack', - tree: 'Task tree', list: 'Task list', projects: 'Projects', options: '3 options', @@ -95,14 +94,8 @@ }, }, tree: { - title: 'Task tree', - count: 'Tasks: {n}', - emptyTitle: 'No tasks yet', - emptyText: 'Approve tasks in the stack — a tree will grow here.', addSubtask: 'Add subtask', promptSubtask: 'Subtask:', - collapse: 'Collapse', - expand: 'Expand', }, task: { notFoundTitle: 'Task not found', @@ -148,8 +141,6 @@ emptyTitle: 'No tasks', emptyText: 'Create the first project task or relax the filters.', tree: 'Project tree', - viewList: 'List', - viewTree: 'Tree', stats: 'Statistics', total: 'Total tasks', doneN: 'Done', diff --git a/frontend/src/locales/ru.ts b/frontend/src/locales/ru.ts index b663ee7..1f6694f 100644 --- a/frontend/src/locales/ru.ts +++ b/frontend/src/locales/ru.ts @@ -36,7 +36,6 @@ signOut: 'Выйти', task: 'Задача', stack: 'Стек входящих', - tree: 'Дерево задач', list: 'Список задач', projects: 'Проекты', options: '3 варианта', @@ -96,14 +95,8 @@ }, }, tree: { - title: 'Дерево задач', - count: 'Задач: {n}', - emptyTitle: 'Задач пока нет', - emptyText: 'Утвердите задачи в стеке — здесь вырастет дерево.', addSubtask: 'Добавить подзадачу', promptSubtask: 'Подзадача:', - collapse: 'Свернуть', - expand: 'Развернуть', }, task: { notFoundTitle: 'Задача не найдена', @@ -149,8 +142,6 @@ emptyTitle: 'Задач нет', emptyText: 'Создайте первую задачу проекта или ослабьте фильтры.', tree: 'Дерево проекта', - viewList: 'Список', - viewTree: 'Дерево', stats: 'Статистика', total: 'Всего задач', doneN: 'Завершено', diff --git a/frontend/src/locales/uk.ts b/frontend/src/locales/uk.ts index e6059f2..2de6977 100644 --- a/frontend/src/locales/uk.ts +++ b/frontend/src/locales/uk.ts @@ -35,7 +35,6 @@ signOut: 'Вийти', task: 'Завдання', stack: 'Вхідний стек', - tree: 'Дерево задач', list: 'Список задач', projects: 'Проєкти', options: '3 варіанти', @@ -95,14 +94,8 @@ }, }, tree: { - title: 'Дерево задач', - count: 'Завдань: {n}', - emptyTitle: 'Завдань ще немає', - emptyText: 'Затвердіть задачі у стеці — тут виросте дерево.', addSubtask: 'Додати підзадачу', promptSubtask: 'Підзадача:', - collapse: 'Згорнути', - expand: 'Розгорнути', }, task: { notFoundTitle: 'Задачу не знайдено', @@ -148,8 +141,6 @@ emptyTitle: 'Задач немає', emptyText: 'Створіть першу задачу проєкту або послабте фільтри.', tree: 'Дерево проєкту', - viewList: 'Список', - viewTree: 'Дерево', stats: 'Статистика', total: 'Всього задач', doneN: 'Завершено', diff --git a/frontend/src/main.ts b/frontend/src/main.ts index cd4f0a4..4256264 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -14,14 +14,12 @@ import SettingsView from './views/SettingsView.vue' import StackView from './views/StackView.vue' import TaskView from './views/TaskView.vue' -import TreeView from './views/TreeView.vue' const router = createRouter({ history: createWebHistory(), routes: [ { path: '/', redirect: '/stack' }, { path: '/stack', component: StackView }, - { path: '/tree', component: TreeView }, { path: '/list', component: ListView }, { path: '/projects', component: ProjectsView }, { path: '/projects/:id', component: ProjectView }, diff --git a/frontend/src/views/ProjectView.vue b/frontend/src/views/ProjectView.vue index 91a5c53..79574b4 100644 --- a/frontend/src/views/ProjectView.vue +++ b/frontend/src/views/ProjectView.vue @@ -8,7 +8,6 @@ import MdEditor from '../components/MdEditor.vue' import TaskForm from '../components/TaskForm.vue' import TaskCard from '../components/TaskCard.vue' -import TaskTree from '../components/TaskTree.vue' defineOptions({ name: 'ProjectView' }) @@ -30,9 +29,6 @@ const loading = ref(false) const notFound = ref(false) -// Переключатель вида списка (карточки ↔ дерево) -const viewMode = ref<'list' | 'tree'>('list') - // Фильтры списка: статус, тег const filters = ref({ status: '', tag_id: '' }) @@ -289,16 +285,6 @@ :label="t('projectPage.progress', { done: doneCount, total: tasks.length })" /> - - -
-
+
- - -
- -
@@ -515,9 +491,6 @@ color: var(--text-muted, #888); font-size: 0.9em; } -.view-tabs { - margin-bottom: 1rem; -} /* фильтры: подписанные селекты в ряд, кнопка сброса прижата к низу */ .filters { display: flex; @@ -541,9 +514,6 @@ flex-direction: column; gap: 0.75rem; } -.tree-section { - margin-top: 0.5rem; -} .edit-form { display: flex; flex-direction: column; diff --git a/frontend/src/views/TaskView.vue b/frontend/src/views/TaskView.vue index 313fb82..68e48d8 100644 --- a/frontend/src/views/TaskView.vue +++ b/frontend/src/views/TaskView.vue @@ -177,7 +177,7 @@ return rows }) -// Смена статуса — дропдаун статусов (отмечен текущий); эмит TaskTree несёт задачу +// Смена статуса — дропдаун статусов (отмечен текущий); эмит карточки несёт задачу function statusMenu(task0: Task) { return statusOptions().map((o) => ({ label: o.label, diff --git a/frontend/src/views/TreeView.vue b/frontend/src/views/TreeView.vue deleted file mode 100644 index c9ca190..0000000 --- a/frontend/src/views/TreeView.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - - \ No newline at end of file