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

Custom block #388

Open
the2ne opened this issue Jun 14, 2021 · 1 comment
Open

Custom block #388

the2ne opened this issue Jun 14, 2021 · 1 comment
Assignees
Labels
⛰ Epic Big big feature ⚙️ Feature New feature

Comments

@the2ne
Copy link
Collaborator

the2ne commented Jun 14, 2021

Description

As a user of LePatron,
I want to be able to save an existing block after customising it,
so that I can add it to my predefined block library and reuse it.

Rules

New custom block

Custom blocks are created from existing blocks after they have been modified (in the central part of the editor)

Custom block attributes

  • Name
    • defined by user at creation
    • editable by admin group
  • Category
    • defined by user at creation
    • editable by admin group
  • Creator (user name)
  • Preview image (generated when block is saved)

Custom block creation

from the central block, when editing, add a save button (top right, same as duplication Use Font Awesome for pictograms). At submit, open a panel with attributes settings :

  • name (mandatory)
  • category (optional)

cta-save

Custom blocks library

In the sidebar (left column) we have access to a library of blocks.
It contains two tabs in order to distinguish the default blocks of the master template from those created by the users (custom blocks).

Default blocks tab (active)

tab-default

Custom blocks tab (active)

tab-custom

Custom blocks actions

in the custom blocks tab, we have two additional actions:

  • Edit button: name and category image (role: only Group admin)
  • Delete button with confirmation (role: only Group admin )
  • The name of the block is displayed over the preview in the list of available blocks

custom-actions

Custom block edition

in the modalbox, after clicking on the edit button of the block

  • Input text for the name
  • Input text for the category
  • don't change the associated user name

edit-attributes

Custom blocks sort

In the custom block library, have a "full text" search field.
I can filter blocks by :

  • name
  • category
  • user name
@the2ne the2ne added ⛰ Epic Big big feature ⚙️ Feature New feature labels Jun 14, 2021
@medamineziraoui
Copy link
Collaborator

medamineziraoui commented Jun 23, 2021

Core feature:

  • Listing and search for custom blocks By master template ( api )
  • Add navigation to the editor
  • Register a new block definition in mongoDB ( api )
  • Add block to the Html from the definition
  • Generate preview ( api )

Additional Specs:

  • Blocks are associated to master template.

Technical problem to poc:

  • Drag and drop from vue to knockout
  • Safe the definition of a block in the database and load the definition in the editor
  • Add block from the block definition.

@the2ne the2ne added this to the V1.8.0 Customize your group milestone Jun 30, 2021
@the2ne the2ne removed this from the V1.8.0 Customize your group milestone Aug 24, 2021
@the2ne the2ne changed the title Save a custom block Custom block Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛰ Epic Big big feature ⚙️ Feature New feature
Projects
None yet
Development

No branches or pull requests

4 participants