GithubHelp home page GithubHelp logo

Comments (4)

DivyanshiSingh avatar DivyanshiSingh commented on September 13, 2024

Hey, @mairin I would like to work on this issue. Please assign me this.

from chris_store_ui.

DivyanshiSingh avatar DivyanshiSingh commented on September 13, 2024

Hey, @jennydaman can you provide some more information that will help me in solving this issue.
I am not getting where to write the script for testing the build command.

from chris_store_ui.

jennydaman avatar jennydaman commented on September 13, 2024

script for testing the build command

I am not sure what you mean by this.

Here's a hacked mock-up

Screenshot

Here the user is trying to create a plugin. They've specified the "Docker Image" (dock_image) as fnndsc/pl-surf. This is a bad practice so we show the warning message

Please tag your Docker image by version.

In that box, you could include a link to a help article explaining why and how, or design a layout to provide immediate help. e.g. show a code block

docker tag fnndsc/pl-surf fnndsc/pl-surf:1.0.1
docker push fnndsc/pl-surf:1.0.1

If the user's input for dock_image ends with :latest instead, then show the warning

The :latest tag is discouraged. Please tag your Docker image by version.

Input validation code is found here

// If all the fields are empty in submission
if (errors.length === 3 && missingRepresentationString !== '') {
return this.handleError('All fields are required.');
// If one fields is empty
} else if (errors.length === 1) {
return this.handleError(`Please ${missingRepresentationString}enter
the ${errors[0]}`);
// If two fields are empty
} else if (errors.length === 2) {
return this.handleError(`Please ${missingRepresentationString}enter
the ${errors[0]} and ${errors[1]}`);
// If more than Plugin Representation or two fields are empty or
}
// If only the Plugin Representation is missing
if (errors.length === 0) {
return this.handleError('Please upload the plugin representation');
}
const lastError = errors.pop();
return this.handleError(`Please ${missingRepresentationString}enter
the ${errors.join(', ')}, and ${lastError}`);

from chris_store_ui.

DivyanshiSingh avatar DivyanshiSingh commented on September 13, 2024

Ok, I got it @jennydaman.
I was moving in the wrong direction...This is a great help. Thank you

from chris_store_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.