-
Notifications
You must be signed in to change notification settings - Fork 42
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
Set State Modal #465
Set State Modal #465
Conversation
This is looking really nice @ThatGalNatalie, 2 initial requests before code review:
|
src/components/SetStateDialog.vue
Outdated
<v-card flat :loading="markAsLoading"> | ||
<div style="padding: 20px;"> | ||
<v-card-title class="headline word-break-normal mb-3" primary-title> | ||
Change the state of {{ taskRun ? taskRun.task.name : flowRun.name }} |
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.
Let's differentiate the task run/flow run name here. Also I think this will read:
Change the state of
for task runs without names, so we should add a check for that and use the task name with something like "run of <>" if it's not available.
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.
okay so something like this?
Change the run of
{{
taskRun
? taskRun.task.name
: taskRun && !taskRun.task.name
? taskRun.name
: flowRun.name
}}
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.
Hm I think this:
<span v-if="taskRun && taskRun.name">
Change the state of
{{ taskRun.name }}
</span>
<span v-else-if="taskRun">
Change the state of this run of
{{ taskRun.task.name }}
</span>
<span v-else>{{ flowRun.name }}</span>
with added checks if there are points where those might loading
Okay I think it's good to go now unless there was something else? @znicholasbrown |
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.
This looks great - really like the new design @ThatGalNatalie One suggestion (possibly cutting some of the tooltip wording) and one requested change (the css that affects other components) from me.
src/components/SetStateDialog.vue
Outdated
Please be aware that clicking on confirm will set the state of | ||
your | ||
{{ dialogType }} | ||
{{ | ||
taskRun && taskRun.name | ||
? taskRun.name | ||
: taskRun | ||
? taskRun.task.name | ||
: flowRun.name | ||
}} | ||
to | ||
<span class="font-weight-black pb-8"> {{ selectedState }}.</span> |
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.
Suggestion - I actually think we could take all of this out. I know it was in the old version and the tooltip is a great addition for the necessary warnings about child and downstream tasks but I'm not sure this section/warning adds much and possibly detracts from the more important warnings.
src/components/SetStateDialog.vue
Outdated
margin-top: -20px; | ||
} | ||
/* stylelint-disable */ | ||
.v-btn__loader { |
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.
Editing this vuetify class risks affecting every button loader in the app (same for the theme light subheader above). You can see the affect of this in the flow tile if you delete a label from this branch - the loader is not visible (but is in dev). Elsewhere we get around this issue by placing the Vuetify class inside of a parent class - Happy to pair on this if you're not sure what I mean putting it in inside a parent class (or there's examples in other places e.g. the flow summary tile.)
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 @ThatGalNatalie - I'll let @znicholasbrown give final approval.
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 @ThatGalNatalie 👍
PR Checklist:
CHANGELOG.md
Describe this PR
Changes the design of the Set State modal to match the design of the other forms