-
Notifications
You must be signed in to change notification settings - Fork 32
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
add "launch on REANA" badge and launcher URL creator #361
Conversation
f712d6a
to
8bf640e
Compare
There was a problem hiding this 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
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"; |
There was a problem hiding this comment.
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?)
There was a problem hiding this comment.
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?
0f06616
to
861a118
Compare
reana-ui/src/pages/badgeCreator/LauncherBadgeCreator.module.scss
Outdated
Show resolved
Hide resolved
eb3d01e
to
c4071ce
Compare
There was a problem hiding this 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.
c4071ce
to
aa77618
Compare
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.