mikolajmitura / crud-wizard

0 stars 1 forks source link

Generic mechanism for generate frontend #55

Open mikolajmitura opened 2 years ago

mikolajmitura commented 2 years ago

Should generate code for: pages for create, delete, update, list objects or view data for some row

This should be generic mechanism which will be used for create pages for update metamodels and for update specific cusom classmetamodels adres by user.

This should be generated based on classmeta modela, fields, validators.

Generated code should be based on jhipster

modules loaded lazily or not lazily (configurated) Every endpoint family will be separated module. form reactive or template (configured) in first release reactive forms should be custom template for components (add, edit, view, table/list with search), every component and service for it can have own template when not provided then default one will be used. every input (field) can have own template. adding something to list via modal or nested list on form? (configurated), maybe something will be from other service could used via other endpoint or created directly via endpoint (composition or relation). custom validation could be written in separated files or as code which will be placed to components. during adding template for fields should be opportunity for show what should be imported/declared to component.

child routes, not in one file with routes, modules should attach their routes

mikolajmitura commented 11 months ago

usefull for cross fields validations https://angular.io/guide/form-validation#adding-cross-validation-to-reactive-forms

mikolajmitura commented 11 months ago

When server respond with error then messages should be attached to specific fields.