Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "launch on REANA" badge and launcher URL creator #361

Merged

Conversation

giuseppe-steduto
Copy link
Member

  • launch: display parameters in table
    Change the launch page so that the optional parameters are displayed
    in a table, where each row correspond to a parameter, and the value of
    each of them is displayed in its JSON-serialized version.
    This allows to correctly show even complex parameters like objects and
    lists.

  • launch: add launcher URL and badge creator page

  • client: fix no-anonymous-default-export linting warning

Closes #324.

@giuseppe-steduto giuseppe-steduto force-pushed the launch-on-reana-badge-creator branch 3 times, most recently from f712d6a to 8bf640e Compare October 25, 2023 14:18
Copy link
Member

@mdonadoni mdonadoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this a lot! 🤩

PS: a rebase is needed

Comment on lines 9 to 27
import { useState } from "react";
import {
Button,
Form,
Input,
Grid,
Segment,
Divider,
Container,
Icon,
Popup,
} from "semantic-ui-react";

import styles from "~/pages/badgeCreator/BadgeLaunchCreator.module.scss";
import { CodeSnippet, Title } from "~/components";
import { LAUNCH_ON_REANA_BADGE_URL } from "~/config";
import BasePage from "~/pages/BasePage";
import { triggerNotification } from "~/actions";
import { useDispatch } from "react-redux";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: maybe let's reorganize the imports a bit, at least by moving react-redux to the first part of the imports, and possibly also ordering them in alphabetical order?

(related to this: VSCode has an action to organize imports, and probably other editors have too. Maybe we should enforce import ordering somehow, both for python and js sources?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can use this eslint plugin?

@giuseppe-steduto giuseppe-steduto force-pushed the launch-on-reana-badge-creator branch 3 times, most recently from 0f06616 to 861a118 Compare November 7, 2023 16:58
@giuseppe-steduto giuseppe-steduto force-pushed the launch-on-reana-badge-creator branch 2 times, most recently from eb3d01e to c4071ce Compare November 15, 2023 18:14
Copy link
Member

@mdonadoni mdonadoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The PR just needs to be rebased

Change the launch page so that the optional parameters are displayed
in a table, where each row correspond to a parameter, and the value of
each of them is displayed in its JSON-serialized version.
This allows to correctly show even complex parameters like objects and
lists.
@giuseppe-steduto giuseppe-steduto force-pushed the launch-on-reana-badge-creator branch from c4071ce to aa77618 Compare November 16, 2023 09:35
@mdonadoni mdonadoni merged commit aa77618 into reanahub:master Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

launch: badge/URL generator
2 participants