opencast-editor
opencast-editor copied to clipboard
Fix alignment of workflow title
If the workflow selection is shown because there are more than one workflow tagged editor
in Opencast, the workflow title is slightly misaligned with the radio button. A few pixels of top padding should fix that:
Hello, I would like to work on this issue. Can you assign this to me?
Sure. Thanks for taking this up.
Please unassign yourself and/or let us know if you don't want to work on this after all, so that someone else can take this up.
Can you guide me which file it actually was?
Should be in src/main/WorkflowSelection.tsx
Hi, Can i work on this issue. Is it still open?
Hey, yes it is still open. I assigned you.
Please unassign yourself and/or let us know if you don't want to work on this after all, so that someone else can take this up.
Lets do this!
REACT_APP_GIT_SHA' is not recognized as an internal or external command, operable program or batch file. It says this when i started to run the project locally. Also i can't find the solution, Arnei can you help me out with this.
That is strange o.O, haven't seen that one before.
Just to make sure the basics are covered: Command-line git
and npm
are set up on your device, and you ran npm ci
(or somesuch) before running npm start
?
No nothing works. I think i should be unassigned. Thank you
That is unfortunate, thank you very much for trying though.
HI @Arnei , can I work on this ?
You absolutely can @Dhananjay-12
Hi, @Arnei how to reach that workflow option. I only see these three for now.
Hi @Dhananjay-12,
On the screen you posted, click on the "Start processing" button to get to the workflow selection.
However, there will only be some text, because per default there is only one workflow. To get the radio menu to show up, you'll need at least to workflows. Now you could set up your own Opencast and configure it with multiple workflows for the editor, but it is probably way easier to temporarily hack some workflows into the frontend somehow.
Btw the file you'll likely be looking at is src/main/WorkflowSelection.tsx
Hi @Arnei, can you give me a hint on how to increase workflows , I could just come up with this dumb idea and it didn't work
In src/main/WorkflowSelection.tsx
:
// Initialite redux states
let workflows = useSelector(selectWorkflows)
// Need to make copy to handle undefined displayOrder values
workflows = [...workflows].sort((a, b) => {
return (b.displayOrder - a.displayOrder)
})
workflows.push({id: "1324", name: "name", description: "description", displayOrder: 42})
Hi @Arnei , is this good ?
Oops @Arnei , I think prettier made too many changes with the formatting, creating another PR