Refactor/add new kanban#68
Open
AlexandrNel wants to merge 27 commits into
Open
Conversation
…ed layout and header integration
…ks for board column removing
…rule for board, task features
…g for board column creation
…umnDialog with projectId handling
…efault color handling
…pability; add skeleton components for loading states
soorq
reviewed
Jun 3, 2026
| columns: Record<string, BoardColumnResponse>; | ||
| tasksByColumn: Record<string, unknown[]>; | ||
| }; | ||
|
|
Collaborator
There was a problem hiding this comment.
Сюда закладывай как фабрику, вы будете тут через ?layout получать большой список, и по айдишникам вставлять все
Во фабрике нужно сделать виды, kanban/gant/matrix, ну и в таком духе, это на будущее
| <Controller | ||
| name="settings" | ||
| control={form.control} | ||
| render={({ field, fieldState }) => ( |
| import { useLayoutEffect } from 'react'; | ||
|
|
||
| export function useClickOutside(id: string, handler: () => void) { | ||
| useLayoutEffect(() => { |
Collaborator
There was a problem hiding this comment.
use callback ref можно посмотреть в эту сторону
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Что сделано
entities/boardсущность с контрактом бэкенда:schemas: Zod-схемы для досок, колонок, представлений и body/response для CRUDhttp: GET/POST/PATCH/DELETE (board, boardList, boardColumns, boardViews и др.)quries: ДобавилBoardQueriesиboardFabricKeys(list, detail, columns, views) для React Queryentities/board/lib/colors.ts(BOARD_COLUMN_COLORS)features/boards/create:useCreateBoardс инвалидациейboardFabricKeys.list(projectId)features/boards/remove:features/boards/column/create:createBoardColumnс инвалидацией list + columnsfeatures/boards/column/remove:RemoveColumnDialogв меню колонкиuseBoardsPage,useActiveBoardsProjectBoards(переключение досок, создание/удаление)ProjectKanbanс локальным state для DnDtasksByColumnиз пропа черезuseEffecttask-column/:TaskColumn,TaskColumnHeader(цвет, счётчик задач, удаление колонки, создание задачи)features/task/create:CreateTaskField,CreateTaskButton(интеграция в колонку)BoardMapper/BoardWithTasksдля маппинга ответа API в структуру канбанаsteiger.config: временно отключил правило "fsd/insignificant-slice" для выше указанных фичей и сущностейColorPickerвsharedCheckboxвsharedПроверка
pnpm lintpnpm typecheck