OrchardCMS/OrchardCore

Combine the recipe import (file and JSON) into one

開放

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

 (6 則留言) (0 個反應) (0 位負責人)C# (2,288 個分叉)batch import
Deploymentgood first issue

倉庫指標

星標
 (6,998 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南