How gregoryoviedo/boardrop works
Main Components
• Overall Application: Represent the main entry point (App.tsx), which integrates all components.
• UI Components: List key UI components found under “src/components” such as:
• AutoResizeTextArea
• Column (likely representing one column of the Kanban board)
• DarkModeIconButton (theme toggle possibly)
• Task (an individual task card)
• Custom Hooks/Logic: Under “src/hooks”, you have:
• useColumnDrop
• useColumnTasks
• useTaskCollection
• useTaskDragAndDrop
These hooks manage the board’s drag-and-drop behavior and state manipulation.
• Configuration: The “src/config” folder (e.g., theme.ts) that configures theming and look-and-feel.
• Utilities: Under “src/utils” are enums, helper functions, logging, and models that support the application behavior.
Relationships and Interactions
• The main App.tsx integrates the Core UI components and passes required props and callbacks (probably coming from custom hooks).
• The Components, such as Column and Task, interact with the custom hooks to handle user actions like dragging and dropping.
• Configuration (theme) and utilities under “src/utils” support the dynamic behavior and business logic, indicating a separation of concerns.
• The data flow should be represented from the App containers down to individual UI components, and the hooks should be shown as supporting state and logic layers.
Architectural Patterns and Design Principles
• Component-Based Architecture: Emphasize how smaller, reusable components (e.g., Task, Column) are combined to form the full UI.
• Separation of Concerns: Show the separation between presentation (components), business logic (hooks), and configuration/utilities.
• Drag-and-Drop Design: Highlight how custom hooks (useTaskDragAndDrop, etc.) encapsulate the drag-and-drop logic.
• Frontend-Only Single-Page Application: All functionalities reside in the client-side application (with Vite bundling).
Technologies & Frameworks
• React (with TypeScript) is central.
• Vite for bundling and development.
• ESLint, Prettier configurations ensure code quality.
• The styling/theme might be driven by the “config/theme.ts”.
Essential Architectural Elements
• Don’t overcomplicate: clearly separate the application’s UI layer from its logic layer (custom hooks) and supporting utilities.
• To label modules fetched from “src/config” and “src/utils” as they provide context to the configuration and business logic.
• Adding a “rendering/interaction loop” that demonstrates how dragging tasks triggers hook functions, updates the state, and then re-renders the UI components.
• Within it, a main “App” component that contains several “Column” components.
• Each “Column” contains several “Task” components and possibly the “AutoResizeTextArea” for new tasks.