Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save a board as a template #87

Closed
rtxm opened this issue Nov 2, 2015 · 3 comments
Closed

Save a board as a template #87

rtxm opened this issue Nov 2, 2015 · 3 comments
Assignees
Labels

Comments

@rtxm
Copy link
Collaborator

rtxm commented Nov 2, 2015

Expected behavior

If a custom template directory is configured, we allow users to save the current board as a template. The template becomes available to all users.

On a board, in the board menu, a new entry is available for board owners: Save as template.
When a user clicks on that entry, a pop-up appears asking whether the template is personnal or public.
The new template appears in the list to create boards from on the user's home and, if public, on all users'.

Technical notes

Use a kind of delegation pattern: each level (board, column, card) is responsible for exporting its own JSON fragment.

Use AssetManager to store templates.
Create a new relation in DB between user, board, template asset UUID and a boolean (shared indicator).

@vrialland
Copy link
Collaborator

Here is the full list of data stored in boards, columns and cards, those exported are prepended with ✅

Board

  • ✅ Title
  • ✅ Description
  • URI
  • Background image
  • Background image position
  • Title color
  • Comments allowed
  • Votes allowed
  • Visibility (private or public)
  • Show archive column
  • Weights activated
  • Weights list
  • ✅ Columns
  • ✅ Labels

Label

  • ✅ Title
  • ✅ Color

Column

  • ✅ Title
  • Max cards
  • ✅ Cards

Card

  • ✅ Title
  • ✅ Description
  • Votes
  • ✅ Labels
  • ✅ Comments (are attached to the user importing the template)
  • Assets
  • ✅ Checklists
  • Cover image
  • ✅ Due date
  • Weight

Comment

  • ✅ Comment

Checklist

  • ✅ Title
  • ✅ Items

Checklist item

  • ✅ Title
  • ✅ Done

@vrialland vrialland self-assigned this Nov 24, 2015
@vrialland
Copy link
Collaborator

TODO : update to these values

Board

  • ✅ Title
  • ✅ Description
  • URI
  • ✅ Background image
  • ✅ Background image position
  • ✅ Title color
  • ✅ Comments allowed
  • ✅ Votes allowed
  • Visibility (private or public)
  • Show archive column
  • ✅ Weights activated
  • ✅ Weights list
  • ✅ Columns
  • ✅ Labels

Label

  • ✅ Title
  • ✅ Color

Column

  • ✅ Title
  • ✅ Max cards
  • ✅ Cards

Card

  • ✅ Title
  • ✅ Description
  • Votes
  • ✅ Labels
  • Comments
  • ✅ Assets
  • ✅ Checklists
  • ✅ Cover image
  • Due date
  • ✅ Weight

Comment

  • ✅ Comment

Checklist

  • ✅ Title
  • ✅ Items

Checklist item

  • ✅ Title
  • Done

Others

  • Export overlay:
    • Use radio buttons for export.
    • Put a warning if user exports a board for all users if it is private
    • Add a visual feedback in the export overlay, a waiter then a confirmation message
  • Add a title and a description on the export that will appear in the templates list
  • A template is stored in database as a board with a flag indicating it is a template, except for its assets

@vrialland
Copy link
Collaborator

Replaced by #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants