[PR #352] [MERGED] feat: Support Trello Board JSON Import #1181

Open
opened 2025-10-09 19:10:24 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/352
Author: @christophenne
Created: 12/8/2022
Status: Merged
Merged: 12/17/2022
Merged by: @meltyshev

Base: masterHead: feature/27-import-trello-json-export


📝 Commits (9)

  • afca974 #27 add backend endpoint with trello import logic
  • 0a63ada #27 fix name of file parameter
  • 2880ffc #27 add trello import to UI
  • d6fd779 #27 fix imported board not being shown immediately
  • 7596f53 #27 update file picker appearance
  • 3270a03 #27 better error handling and restructuring
  • d06c0c8 #27 import labels
  • 8590d4f plankanban#27 UI changes, front-end refactoring
  • e4109c8 plankanban#27 back-end refactoring, fix board duplication

📊 Changes

20 files changed (+537 additions, -89 deletions)

View changed files

📝 client/src/api/boards.js (+5 -0)
client/src/components/Boards/AddPopup.jsx (+0 -70)
client/src/components/Boards/AddPopup.module.scss (+0 -5)
client/src/components/Boards/AddPopup/AddPopup.jsx (+116 -0)
client/src/components/Boards/AddPopup/AddPopup.module.scss (+42 -0)
client/src/components/Boards/AddPopup/ImportStep.jsx (+51 -0)
client/src/components/Boards/AddPopup/ImportStep.module.scss (+17 -0)
client/src/components/Boards/AddPopup/index.js (+3 -0)
📝 client/src/entry-actions/boards.js (+2 -1)
📝 client/src/locales/en/core.js (+3 -0)
📝 client/src/models/Board.js (+1 -5)
📝 client/src/sagas/core/services/boards.js (+20 -4)
📝 client/src/sagas/core/watchers/boards.js (+2 -2)
📝 client/src/sagas/core/watchers/socket.js (+2 -2)
📝 client/src/selectors/boards.js (+7 -0)
📝 server/api/controllers/boards/create.js (+55 -0)
📝 server/api/helpers/boards/create-one.js (+16 -0)
server/api/helpers/boards/import-from-trello.js (+152 -0)
server/api/helpers/boards/process-uploaded-trello-import-file.js (+38 -0)
📝 server/api/models/Board.js (+5 -0)

📄 Description

issue: #27

  • Add Backend Endpoint to upload the file
  • UI "Import" - Option when creating a board
  • call backend and upload file

This PR now contains a working proof of concept to upload Trello Board JSON files to planka on the UI, and import the most relevant data of this board into a new planka board.

Open things:

  • Fix styling of the Trello FilePicker
  • Import Labels as well

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/352 **Author:** [@christophenne](https://github.com/christophenne) **Created:** 12/8/2022 **Status:** ✅ Merged **Merged:** 12/17/2022 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `feature/27-import-trello-json-export` --- ### 📝 Commits (9) - [`afca974`](https://github.com/plankanban/planka/commit/afca974f2071086b1c37a0949a8d040a7344c84b) #27 add backend endpoint with trello import logic - [`0a63ada`](https://github.com/plankanban/planka/commit/0a63ada320be136ea60aca9e5df255cdcad7b90e) #27 fix name of file parameter - [`2880ffc`](https://github.com/plankanban/planka/commit/2880ffccaa05e4235d0f5410c9a94dc8825134c7) #27 add trello import to UI - [`d6fd779`](https://github.com/plankanban/planka/commit/d6fd7796bd1ee497a8360a029b75bfeffb5cfe78) #27 fix imported board not being shown immediately - [`7596f53`](https://github.com/plankanban/planka/commit/7596f5348cff08541e763384af399917fe0b5b0f) #27 update file picker appearance - [`3270a03`](https://github.com/plankanban/planka/commit/3270a0338e864f563148076ab107e50387a5087b) #27 better error handling and restructuring - [`d06c0c8`](https://github.com/plankanban/planka/commit/d06c0c8b06d0925fc93d0bbb96432718f732bf88) #27 import labels - [`8590d4f`](https://github.com/plankanban/planka/commit/8590d4f06ceabbad6abdcd695b385de8b9b65132) plankanban#27 UI changes, front-end refactoring - [`e4109c8`](https://github.com/plankanban/planka/commit/e4109c825fbd17343a4d3459a146936d0a0b6720) plankanban#27 back-end refactoring, fix board duplication ### 📊 Changes **20 files changed** (+537 additions, -89 deletions) <details> <summary>View changed files</summary> 📝 `client/src/api/boards.js` (+5 -0) ➖ `client/src/components/Boards/AddPopup.jsx` (+0 -70) ➖ `client/src/components/Boards/AddPopup.module.scss` (+0 -5) ➕ `client/src/components/Boards/AddPopup/AddPopup.jsx` (+116 -0) ➕ `client/src/components/Boards/AddPopup/AddPopup.module.scss` (+42 -0) ➕ `client/src/components/Boards/AddPopup/ImportStep.jsx` (+51 -0) ➕ `client/src/components/Boards/AddPopup/ImportStep.module.scss` (+17 -0) ➕ `client/src/components/Boards/AddPopup/index.js` (+3 -0) 📝 `client/src/entry-actions/boards.js` (+2 -1) 📝 `client/src/locales/en/core.js` (+3 -0) 📝 `client/src/models/Board.js` (+1 -5) 📝 `client/src/sagas/core/services/boards.js` (+20 -4) 📝 `client/src/sagas/core/watchers/boards.js` (+2 -2) 📝 `client/src/sagas/core/watchers/socket.js` (+2 -2) 📝 `client/src/selectors/boards.js` (+7 -0) 📝 `server/api/controllers/boards/create.js` (+55 -0) 📝 `server/api/helpers/boards/create-one.js` (+16 -0) ➕ `server/api/helpers/boards/import-from-trello.js` (+152 -0) ➕ `server/api/helpers/boards/process-uploaded-trello-import-file.js` (+38 -0) 📝 `server/api/models/Board.js` (+5 -0) </details> ### 📄 Description issue: #27 - [X] Add Backend Endpoint to upload the file - [X] UI "Import" - Option when creating a board - [X] call backend and upload file This PR now contains a working proof of concept to upload Trello Board JSON files to planka on the UI, and import the most relevant data of this board into a new planka board. Open things: - [x] Fix styling of the Trello FilePicker - [x] Import Labels as well --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 19:10:24 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#1181