CRUD icon indicating copy to clipboard operation
CRUD copied to clipboard

[POC][WIP] backpack smart components

Open tabacitu opened this issue 2 years ago • 3 comments

WIP

tabacitu avatar Dec 19 '22 17:12 tabacitu

The inspection completed: 24 new issues, 106 updated code elements

scrutinizer-notifier avatar Jan 02 '23 13:01 scrutinizer-notifier

this looks interesting, I'm curious, what does it do?

ziming avatar Jan 20 '23 15:01 ziming

this looks interesting, I'm curious, what does it do?

Sorry @ziming totally missed your comment.

An overview of what we want to achieve here is:

  • Make all backpack attributes (entity, type, label etc) have their own classes and implement specific methods, like getDefaults, getValidation etc that could easily be overwritten by developer without messing with CrudPanel object. (our makeSureFieldHasEntity, makeSureFieldHasLabel etc methods).
  • Create the concept of Component (Field, Button, Column etc), anything that has attributes, and make them uniform across the whole app.

I hope that we come up with a good solution here, I have high hopes for this, will remove ALOT of code from CrudPanel object, separate it correctly where it's used and make overriding core stuff easier.

Cheers

pxpm avatar Feb 10 '23 11:02 pxpm

I don't think we will go this direction in crud.

Closing 🫨

pxpm avatar Jul 17 '24 15:07 pxpm