Giter Site home page Giter Site logo

react-kanban-workshop's Introduction

react-kanban

Demo app

Setup

  1. Clone or download this repo.
  2. Install Node dependencies via npm ci.
  3. Make sure the project runs with npm start.

Task

As a project manager, I need to be able to view and change tasks statuses visually.

Need: Create the view and functionality to display tasks on a columnar grid and be able to change their status by dragging them between columns.

Constraints:

  • A "card" must always have a status
  • A "card" may never have more than one status
  • "Cards" may not overlap in a column

Acceptance Criteria:

  • Dragging a card between columns changes the status of the card
  • If a user drags a card on top of another card, the card is displayed below that card instead

Details:

  • Four columns labeled "To Do", "In Progress", "Blocked", "Done"
  • Create "cards", which are objects able to be sized, dragged, and have text typed into and edited
  • Create a field "Status" for each "card"
  • The status of each "card" is set by the column in which it currently resides
  • Dragging a "card" between columns will change the status of the "card" to the new column status

From scratch instructions

  1. Clone react-boilerplate repo, follow the Quick Start instructions.
  2. Install and configure redux-logger.
  3. Create a new KanbanBoardPage container, react-boilerplate provides the npm run generate script to generate a new container for us.
  4. Modify app/containers/App/index.js so the <Route exact path="/" component={KanbanBoardPage} />.
  5. Create reducers, sagas, selectors, and actions.

Workshop instructions

  1. Install react-beautiful-dnd.
  2. Add DragDropContext to KanbanBoardPage
  3. Add Droppable to KanbanColumn
  4. Add Draggable to KanbanCard, mapping the index prop from the task list.
  5. Create new action and update reducer.

Limitations and next steps

  • Only one board--this could be solved using routing.
  • No tests exist for KanbanBoardPage components, sagas, reducers, or selectors.
  • Provide a sort order within a column.

react-kanban-workshop's People

Contributors

roberthodgen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.