diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index b940d7b5..3052d471 100644
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -157,6 +157,7 @@ const AngularWorkflow = (props) => {
const [apps, setApps] = React.useState([]);
const [filteredApps, setFilteredApps] = React.useState([]);
+ const [prioritizedApps, setPrioritizedApps] = React.useState([]);
const [firstrequest, setFirstrequest] = React.useState(true)
//const [apps, setApps] = React.useState(appdata);
//const [filteredApps, setFilteredApps] = React.useState();
@@ -794,15 +795,20 @@ const AngularWorkflow = (props) => {
});
}
+ const internalIds = [
+ "80a1fdd2-95c2-49ab-81f6-e05689beb745", // Shuffle tools
+ "39c5f8fa-a088-4cdc-826f-19e2e61cb284", // Testing
+ ]
+
const getApps = () => {
fetch(globalUrl+"/api/v1/workflows/apps", {
- method: 'GET',
- headers: {
- 'Content-Type': 'application/json',
- 'Accept': 'application/json',
- },
- credentials: "include",
- })
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json',
+ },
+ credentials: "include",
+ })
.then((response) => {
if (response.status !== 200) {
console.log("Status not 200 for apps :O!")
@@ -819,6 +825,9 @@ const AngularWorkflow = (props) => {
setApps(responseJson)
setFilteredApps(responseJson)
getAppAuthentication()
+
+
+ setPrioritizedApps(responseJson.filter(app => internalIds.includes(app.id)))
})
.catch(error => {
alert.error(error.toString())
@@ -2206,6 +2215,54 @@ const AngularWorkflow = (props) => {
setFilteredApps(apps.filter(app => app.name.toLowerCase().includes(event.target.value.trim().toLowerCase())))
}
+ const ParsedAppPaper = (props) => {
+ const app = props.app
+
+ // FIXME - add label to apps, as this might be slow with A LOT of apps
+ var newAppname = app.name
+ newAppname = newAppname.replace("_", " ").charAt(0).toUpperCase()+newAppname.substring(1)
+ const maxlen = 24
+ if (newAppname.length > maxlen) {
+ newAppname = newAppname.slice(0, maxlen)+".."
+ }
+
+ const image = "url("+app.large_image+")"
+
+ return (
+ {newAppname}
+