-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Workflow frontend overhaul #16706
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
Workflow frontend overhaul #16706
Conversation
|
Doing make or |
Run in in the main folder. We have all the apps using the same webpack config else we'd be updating 14 apps all the time instead of just 1 folder |
|
Some additional points: |
Automated Tagging. |
81ff4db to
b91a184
Compare
7ada0e5 to
5724f59
Compare
|
@jancborchardt I've fixed a bunch of design issues we have discussed and added some screenshots of the current state to the 1st post. Feedback is welcome |
|
Looking at the screenshots and using the app again, it seems that there’s a loooot of horizontal whitespace we can’t really do much about with a list-type layout. It’s all a bit floating in the air. It seems that vertical boxes for the actions would fit better, as we thought about for mobile @juliushaertl? It would have the maximum width of the 3 inputs which are in the "When" condition.
So then two or even three of these blocks could be next to each other on desktop. |
I don't think that would be a good idea, since the height of the entry is variable to how many and conditions are used and if the operation provide additional options (e.g. automated tagging provides an input field for the list of tags, but this could by anything that needs to be configurable) How about just reducing the height a bit by using a more condensed styling for the operation like this: |
|
@juliushaertl ok, already looks a bit better! :) |
d2b0bca to
162f184
Compare
3cdcbba to
2afcbca
Compare
ChristophWurst
left a comment
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.
Some nitpicks from the fraction of code I've reviewed :)
apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
Outdated
Show resolved
Hide resolved
apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
Show resolved
Hide resolved
apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
Outdated
Show resolved
Hide resolved
apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
Outdated
Show resolved
Hide resolved
209a276 to
1cc6f34
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
2afcbca to
7683208
Compare
| } | ||
| }, | ||
| computed: { | ||
| Checks() { |
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.
| Checks() { | |
| checks() { |
|
|
||
| <template> | ||
| <MultiselectTag v-model="newValue" :multiple="false" | ||
| label="Select a tag" |
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.
l10n
apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
Show resolved
Hide resolved
| */ | ||
|
|
||
| const getApiUrl = (url) => { | ||
| const scopeValue = OCP.InitialState.loadState('workflowengine', 'scope') === 0 ? 'global' : 'user' |
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.
you could move this up to the module initialization block so it only runs once. OCP should be ready before the app's code
| */ | ||
|
|
||
| const validateRegex = function(string) { | ||
| var regexRegex = /^\/(.*)\/([gui]{0,3})$/ |
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.
move this and the other regexes out of the functions so they are only created once
and use const :)
blizzz
left a comment
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.
good base (mentioned smaller things for follow ups)
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>

This PR still requires quite some cleanup and polishing, once the backend changes are ready to be integrated from #16682
TODO
.icon-close(❌) is a better icon for removing the current line than the "Delete" trash..actions__itemelement could do with acursor: pointer, but because our reset hascursor: defaulton div and h3 we need to set it on those elements too.ToDo in a follow up PR
Extending the frontend
Registering a new check
Check with custom validate/placeholder
Check with custom vue component
Registering a new operation in the frontend
Screenshots