wolflu05 / inventree-bulk-plugin

A bulk creation plugin for InvenTree, which helps you generating locations, categories and even parts in bulk by using customized naming strategies and ensure them along your complete storage tree.
MIT License
17 stars 1 forks source link

Refactor UI #44

Closed wolflu05 closed 1 year ago

wolflu05 commented 1 year ago

Refacor the ui to make integration with parts easier.

Components

BulkGenerateView(templateType, createUrl)

(create only if createUrl)
- Table 
    delete => opens DeleteDialog
    edit => opens TemplateForm new page
    preview/create => opens PreviewCreateDialog
- New Button

TemplateForm(handleBack)

- Name
- Type?
- BulkDefinitionSchemaBuilder
- back, create or update, reset, preview, bulk create
- PreviewTable

PreviewTable(data: BulkGenerateAPIResult)

(implementation with useEffect)
- Table

PreviewCreateDialog

- Headline
- Inputs
- Preview, bulk create
- PreviewTable

DeleteDialog

- Are you sure...?
- Delete Cancel