OrchardCMS/OrchardCore

Combine the recipe import (file and JSON) into one

Open

#11,958 建立於 2022年7月5日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)C# (6,998 star) (2,288 fork)batch import
Deploymentgood first issue

描述

Is your feature request related to a problem? Please describe.

Currently, the Deployment feature expose 2 different routes to import a recipe. First one using a JSON string, and the other one is using a file. For that reason, we have 2 menu items on the navigation (i.e., JSON Import and Package Import)

Describe the solution you'd like

I think we should replace both menu items (i.e., JSON Import and Package Import) with a single one called "Import Recipes". In the "Import Recipes" view, we can have two radio buttons to select which type of import to

  1. First radio button will be "JSON recipe" which is checked by default. We'll show the JSON input field by default and hide the field upload field.
  2. Second radio button will be "Recipe file". If the user checks this radio, we'll just show the file upload field.

This should reduce the navigation menu by 1 item and centralize the import process.

貢獻者指南