Skip to main content

First steps for using the nuvo importer

Importer workflow

Our NuvoImporter is a component that you can easily embed into your application's frontend. This component enables you to guide your users through our data onboarding workflow, which contains the following steps:

  1. Upload: The user can upload one or multiple files by either dragging the spreadsheet(s) within the dropzone or pressing the "Select file"-button.
  2. Sheet Selection: If the uploaded file contains more than one sheet, the user has to select the sheet(s) with the data that matter for the import.
  3. Header Selection: The user must select the header row containing the column names for each imported sheet.
  4. Join Sheets (optional): This step is only displayed if the multipleFileUpload is set to true and the user has uploaded and selected more than one sheet. Here the user specifies for each sheet the column whose values are used as keys for the join.
  5. Match Columns: The imported columns are matched to the columns of the target data model.
  6. Review Entries: In this step, the user reviews data, cleans errors and finishes the data import.

How to start?

If you want to implement our nuvo importer fastly, we recommend you to follow the next steps:

  1. Technical implementation: Choose your preferred JavaScript framework and follow the instructions of the "Technical implementation"-Section below for getting our component up and running within your application.
  2. Target model & settings configuration: The most essential element of our importer is the target data model, which contains all columns of your preferred output structure. The columns array, which includes all requested columns, is defined within the settings property, with which you can adjust the import workflow and disable certain features.
  3. Set up validation rules & cleaning functions: After the first two steps, you can already use the importer within a production environment. But to use the full potential of the nuvo importer and also to serve more complex use cases, you can add additional validation rules to each column by defining them within the validations property or by using our cleaning functions. For each column, you can add regular expressions, column-cross dependencies, column types (very similar to data types) and/or add a required- as well as an unique-rule. With our cleaning functions, you can transform data automatically and display feedback to the user.
  4. Dealing with the result: With the onResults callback function, you can define what is supposed to happen with user-submitted data. You have many possibilities at your disposal. For instance, you can send the data to your preferred API endpoint, define variables within the frontend, modify the structure and the values of the result array object, or call a function that leads to an XLSX- or CSV-Download.
  5. Styling & multi-language support (optional): The nuvo importer is a fully customizable component that can be adjusted in many ways to fit your importing process. As mentioned above, you can disable certain features or make adjustments to the workflow with the settings property. Moreover, you can fully customize the nuvo importer's design and change all interface texts with our i18nOverrides option. The last can be used for providing multi-language support.

Technical implementation

It's relatively easy to get started with the nuvo importer. Usually, it only takes a couple of minutes to get the nuvo importer up and running. In this section, you'll learn how to start using the nuvo importer within your application.

info

To implement the nuvo importer correctly, you will need a license key. Please use the dev key for testing and the live key for production activities. After logging into your account inside the nuvo user platform, you can find both by going to the setup page or the dashboard page.

info

No account yet? You can use our GitHub login to receive access to our importer immediately, or you can book a demo to talk to a nuvo sales manager upfront.

Install & import the NuvoImporter

We provide our nuvo importer for React, Angular, Vue.js and plain JavaScript. Our software library can be installed with NPM or Yarn, and we offer the option to directly source it from our CDN. You can find a list of all supported versions here.

Install the React package with NPM:

npm install nuvo-react

or install it with Yarn:

yarn add nuvo-react

This allows you to use the <NuvoImporter> component inside your application:

import { NuvoImporter } from "nuvo-react";

Set up settings

The <NuvoImporter> instance must have settings & licenseKey as properties to launch. The following list contains all properties of the <NuvoImporter> that are adjustable. For more details, visit our settings page.

  • licenseKey (required) - A valid license key is required to be allowed to use the nuvo importer. You can find both license keys (dev/live) within the nuvo user platform after you have logged in.
  • settings (required) - Requires an object that contains the identifier and the columns of the target data model. For more details, visit our settings page.
  • onResults - Allows you access to the user-submitted data as an array of JSON objects with the result parameter and access to the identifier. For more information, visit our results page.
  • onCancel - Allows you to insert a callback function that runs if the user cancels the import process.
  • onEntryChange - Allows you to insert a callback function that iterates through each entry and runs when an entry/row is changed.
  • onEntryInit - Allows you to insert a callback function that iterates through each entry and runs after the user confirms the "Match Columns"-Step, so that the "Review Entries"-Step is initialised.
  • columnHooks - Allows you to insert a single or multiple callback functions that each have access to only one column and run after the user confirms the "Match Columns"-Step, so that the "Review Entries"-Step is initialised.
  • renderUploadButton - Allows you to insert your buttons/components instead of the default nuvo element.

You can copy the following code snippet to set up the nuvo importer quickly:

info

Please note the minimum screen width for the nuvo importer to work:

  • if modal is set to true, the minimum required screen width is 901px
  • if modal is set to false, the minimum required screen width is 948px
<NuvoImporter
licenseKey="Your License Key"
settings={{
developerMode: true,
identifier: "product_data",
columns: [
{
label: "Product ID",
key: "product_id",
},
{
label: "Article Name",
key: "article_name",
},
],
style: {
buttons: {
primary: {
backgroundColor: "#FFC116",
color: "#162238",
":hover": {
backgroundColor: "#E6A604",
},
},
},
dropzone: {
root: {
backgroundColor: "#f8f8f8",
},
},
},
}}
onResults={(result) => console.log("Result:", result)}
onCancel={() => {
console.log("onCancel");
}}
onEntryChange={(row, rowIndex) => {
return { product_id: { value: row.product_id + " on change" } };
}}
onEntryInit={(row, rowIndex) => {
return { product_id: { value: row.product_id + " on init" } };
}}
columnHooks={{
article_name: (values) => {
return values.map(([item, index]) => [{ value: "#NU" + item }, index]);
},
}}
renderUploadButton={({ launch }) => <button onClick={launch}>Select File</button>}
/>